[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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.