Using fonts with DrawText

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by TerryHough.

I understand the code shown here:

fsize10 = LoadFont(10, "Arial", 10) ; set a ID for the font
DrawingFont(fsize10)
Locate( 20, 10) : DrawText("Name")
Locate( 20, 40) : DrawText("Address")
Locate( 20, 70) : DrawText("City, ST Zip")

but I need to be able to using Bold or Italic or StrikeOut
in many instances.

I can't find a way to do that with PureBasic commands.

To me, it seems that the LoadFont command should allow for
these selections with flags. Certainly this must be
controllable in a simple manner. Any suggestions?

Thanks
Terry