[Client-sife] CEF custom fonts

Recommended Posts

Hey there.

I started developing a client-side user interface, and I had problems with custom fonts. I included my custom fonts in the CSS file:

@font-face {
    font-family: Gabriela;
    src: url(../Fonts/Gabriela-Regular.ttf);

@font-face {
    font-family: FontAwesome;
    src: url(../Fonts/fontawesome-webfont.ttf);

* {
    font-family: Gabriela;

.dws-input::before {
    font-family: FontAwesome;
    content: "\f007";
    position: absolute;
    font-size: 30px;
    padding: 25px 0 0 0px;
    color: white;

In the browser, all the fonts look great, but when I started the game, all the fonts changed to standard ones.  What have I done wrong? Maybe I incorrectly connected fonts?

Thanks in advance

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.