Jump to content

Recommended Posts

Posted

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

  • 1 year later...
  • 2 weeks later...
Posted
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

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.
×
×
  • Create New...