Jump to content
RAGE Multiplayer Community

[Client-sife] CEF custom fonts


blumi
 Share

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

Link to comment
Share on other sites

  • 1 year later...
  • 2 weeks later...
Quote

@font-face {
    font-family: "gtaFont";
    src: url(../font/pricedownbl.ttf);
}

Quote

.textChar {
    position: fixed;
    margin-left: 5px;
    font-family: "gtaFont";
    color: #313131;
    font-size: 20px;
    text-shadow: 1px 1px #cfcfcf;
}

my .css example

Link to comment
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
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...