Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loading Fonts
#8
As Tony mentioned above, you have to make your font call *AFTER* you set the screen or destination

_Font _LoadFont("DejaVuSansMono-Bold.ttf", 14, "monospace")
SCREEN _NEWIMAGE(800, 600, 32)

Such as the above, that's not going to work for you. The SCREEN command will create a completely new screen, with the default _FONT 16 in use. If you're using SCREEN or _DEST to change your display, you'll need to make certain that the proper font is in use after those calls.

If you'd share your actual code, it'd make it a lot easier to point exactly to whatever is wrong and help correct it for you.
Reply


Messages In This Thread
Loading Fonts - by cage - 01-12-2026, 12:41 AM
RE: Loading Fonts - by SMcNeill - 01-12-2026, 01:21 AM
RE: Loading Fonts - by cage - 01-12-2026, 03:25 AM
RE: Loading Fonts - by ahenry3068 - 01-12-2026, 03:30 AM
RE: Loading Fonts - by SMcNeill - 01-12-2026, 05:40 AM
RE: Loading Fonts - by cage - 01-12-2026, 07:33 PM
RE: Loading Fonts - by ahenry3068 - 01-12-2026, 07:54 PM
RE: Loading Fonts - by SMcNeill - 01-12-2026, 09:37 PM
RE: Loading Fonts - by cage - 01-13-2026, 01:34 AM
RE: Loading Fonts - by ahenry3068 - 01-13-2026, 04:10 AM
RE: Loading Fonts - by cage - 01-13-2026, 05:41 AM
RE: Loading Fonts - by a740g - 01-13-2026, 08:57 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Star Truckload of old CP437 compatible fonts mnrvovrfc 2 792 12-03-2023, 07:04 PM
Last Post: vividpixel
  Looking for sample code showing how to make use of different fonts hanness 6 1,227 05-03-2022, 11:00 PM
Last Post: Dav

Forum Jump:


Users browsing this thread: 1 Guest(s)