• Issue with Custom Fonts
    3 replies, posted
Hello, I've been messing around with custom fonts, and I've come across a big problem and I really need some help. Basically, I'm creating a custom font and displaying it on the screen: [CODE] -- Creating my font surface.CreateFont("TestingFonts", {font = "Purista Semibold", size = 24, weight = 400}) [/CODE] [CODE] -- Testing it by writing it on the screen draw.SimpleText("0123456789AaBbCcDdEeFf", "TestingFonts", 1000, 500, Color(245,245,255,255), TEXT_ALIGN_RIGHT, TEXT_ALIGN_RIGHT) [/CODE] Now, this is displaying all my text as the default font and it just doesn't seem to be working at all! I've tried it with a bunch of other fonts. (I've put my fonts in 'resource/fonts/')
Anything in console?
Don't use the font's file name for the font name if you are. You'll have to open up the font file and use the name it specifies once you open it.
[QUOTE=brandonj4;42877281]Don't use the font's file name for the font name if you are. You'll have to open up the font file and use the name it specifies once you open it.[/QUOTE] Thanks, I just misinterpretted the wiki, I thought it meant don't include the file extension! Thanks for your help, it seems to work now!
Sorry, you need to Log In to post a reply to this thread.