Jump to content

[HELP] What wrong with custom font?!


Recommended Posts

I don't understand why, but if i restart my script which contain a custom font, then the script show nonsense word instead of specified... Just a complete MTA restart fix it.

I'm talking about this problem:

Normally: spacer.png

After i restarted the script: spacer.png

No, I didn't change anything in the script, and the font added to meta.

This is the code:

local Roboto = dxCreateFont("Roboto.ttf",10)
local RobotoL = dxCreateFont("RobotoL.ttf",11)

dxDrawText("Kereszt #1", sx/2-65-10,sy/2-55/2+2, 0, sy/2-515/2+2+36, tocolor(255,255,255,255), 1, Roboto, "left", "center",false,false,false,true)
dxDrawText("Ár: 50.000 Ft", sx/2-65-10,sy/2+25/2+2, 0, sy/2-515/2+2+36, tocolor(255,255,255,255), 1, RobotoL, "left", "center",false,false,false,true)


Link to comment
  • Moderators
3 hours ago, Turbesz said:

No, I didn't change anything in the script, and the font added to meta.

It looks like something has happened during copying the font to the cache(server or client). ?

You could try to convert the font to OTF format. (there are websites that can convert fonts)

  • Thanks 1
Link to comment

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...