October 17, 2021, 10:37:23

Author Topic: PureBasic Text Size  (Read 1285 times)

Offline Pfaber11

  • Hero Member
  • *****
  • Posts: 814
  • Bonjour
PureBasic Text Size
« on: November 04, 2019, 12:57:29 »
When using this method to draw text to the screen how do you alter the size of the text .
Code: [Select]
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.

Offline Phil7

  • Jr. Member
  • **
  • Posts: 8
Re: PureBasic Text Size
« Reply #1 on: November 04, 2019, 14:06:42 »
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.

Offline Pfaber11

  • Hero Member
  • *****
  • Posts: 814
  • Bonjour
Re: PureBasic Text Size
« Reply #2 on: November 04, 2019, 14:10:56 »
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.

Offline Pfaber11

  • Hero Member
  • *****
  • Posts: 814
  • Bonjour
Re: PureBasic Text Size
« Reply #3 on: November 04, 2019, 16:20:31 »
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.

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal