SyntaxBomb - Indie Coders

Languages & Coding => PureBasic => Topic started by: Pfaber11 on November 04, 2019, 12:57:29

Title: PureBasic Text Size
Post by: Pfaber11 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 .
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 .

Title: Re: PureBasic Text Size
Post by: Phil7 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.
Title: Re: PureBasic Text Size
Post by: Pfaber11 on November 04, 2019, 14:10:56
Thanks for that will try it now .
Title: Re: PureBasic Text Size
Post by: Pfaber11 on November 04, 2019, 16:20:31
Thanks Phil loadfont() worked a treat .