January 28, 2020, 02:49:18 PM

Author Topic: PureBasic Text Size  (Read 370 times)

Offline Pfaber11

  • Sr. Member
  • ****
  • Posts: 476
  • Bonjour
    • FABERSGAMES
PureBasic Text Size
« on: November 04, 2019, 12:57:29 PM »
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 .

Celeron N3060 1.6 ghz duel core  4 Gb ram 32 gig storage  HD400 Graphics 160 gig external hard drive....

Offline Phil7

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

  • Sr. Member
  • ****
  • Posts: 476
  • Bonjour
    • FABERSGAMES
Re: PureBasic Text Size
« Reply #2 on: November 04, 2019, 02:10:56 PM »
Thanks for that will try it now .
Celeron N3060 1.6 ghz duel core  4 Gb ram 32 gig storage  HD400 Graphics 160 gig external hard drive....

Offline Pfaber11

  • Sr. Member
  • ****
  • Posts: 476
  • Bonjour
    • FABERSGAMES
Re: PureBasic Text Size
« Reply #3 on: November 04, 2019, 04:20:31 PM »
Thanks Phil loadfont() worked a treat .
Celeron N3060 1.6 ghz duel core  4 Gb ram 32 gig storage  HD400 Graphics 160 gig external hard drive....