blumi Posted February 6, 2019 Posted February 6, 2019 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
konvovden Posted September 20, 2020 Posted September 20, 2020 Faced with the same problem. Have any solutions?
Divinewings Posted September 29, 2020 Posted September 29, 2020 So if u not use webpack u need be sure you're related path is same in client resources
ozinhobr Posted October 1, 2020 Posted October 1, 2020 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now