Help, someone who knows to use a downloaded font in a script, i’ve tryied but only importing a google font one works
Do you mean using a font locally in the NUI? with css?
Yes, for example, using a babas neue dowloaded to add it on a menu
I’ve tryied some ways and it worked but only in my browser, not in the server
something like this should work, try
@font-face {
font-family: BebasNeueBold;
src: url( /uri_to_font/BebasNeue Bold.ttf);
font-style: normal;
font-display: block;
}
.text{
color: #00f8b9;
font-family: bebasNeueBold;
font-style: normal;
}
cfx-server-data/resources
comes with an example where it imports a streamed font.
1 Like
it worked, thanks