Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loading Fonts
#10
(01-13-2026, 01:34 AM)cage Wrote: _Font _LoadFont("DejaVuSansMono-Bold.ttf", 14, "monospace")
SCREEN _NEWIMAGE(800, 600, 32)

Yes thank you that works. What I have found is that QB64pe does not like an absolute path when loading fonts. Found this out using you snippet. It always returned font was missing with absolute paths.  It's something that worked in an older version but not in the new one. Now I only need to place the font into the same folder as the program and it works like it should. SMcNeill thank you very much for helping out this old man!

     I find that odd and not at all my experience.    I was loading fonts in a program today with absolute path's as I searched for the Best Linux font for Steve's little CONST reference project.    I'm using the very latest release of QB64PE too.      I strongly suspect that you are typing something in the path incorrectly !     If your on Linux or MAC just 1 letter will kill your absolute path since those file systems are case sensitive !      Windows is a little more forgiving !           I usually use string variables for filenames and I ALWAYS check with _FILEEXISTS first to make sure they are there BEFORE I do a _SNDOPEN or _LOADIMAGE or _LOADFont on an external file ! .
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)