PureBasic Text Size

Started by Pfaber11, November 04, 2019, 12:57:29

Previous topic - Next topic

Pfaber11

When using this method to draw text to the screen how do you alter the size of the text .
DrawText(100, 20, "THIS IS TEXT",#Green,#Black)

Looked through the documentation and couldn't find it in there but know there must be a way to do it . Thanks for reading .

HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz

Phil7

With LoadFont() you can specify the size of your font. It is used in the 2DDrawingAlpha.pb example.
If you want to see pixels of your font, I guess you have to draw your font to an image or sprite first and scale that up afterwards.

Pfaber11

Thanks for that will try it now .
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz

Pfaber11

Thanks Phil loadfont() worked a treat .
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz