I could have sworn that in Linux, if you use LoadFont() and supply the exact path to a .ttf file, the ttf file was loaded.
However, when I try this (using the free Bitstream Vera Sans Mono font in this case), I just get the default font that is loaded:
Code: Select all
InitSprite()
OpenWindow (0, 100, 100, 640, 480, "Test")
OpenWindowedScreen(WindowID(0), 0, 0, 640, 480, 0, 0, 0, #PB_Screen_WaitSynchronization)
If LoadFont(1, "/home/foz/Dropbox/VeraMono.ttf", 10) = #False
MessageRequester("Error", "Failed To load font!")
EndIf
Repeat
ClearScreen(0)
StartDrawing(ScreenOutput())
DrawingFont(FontID(1))
DrawText(0, 0, "This is a test!")
StopDrawing()
FlipBuffers()
Select WaitWindowEvent()
Case #PB_Event_CloseWindow
quit = #True
EndSelect
Until quit

