how can i get a bigger font size ?

Just starting out? Need help? Post your questions and find answers here.
wimapon
Enthusiast
Enthusiast
Posts: 290
Joined: Thu Dec 16, 2010 2:05 pm
Location: Delfzijl ( The Netherlands )
Contact:

how can i get a bigger font size ?

Post by wimapon »

Hi folks,
i normaly use the ***** DrawText(xw,yw,"Hello world ") ***** command.
Is is possible to make the size of the signs bigger?
for example: twice the size?

Wim
User avatar
Caronte3D
Addict
Addict
Posts: 1362
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: how can i get a bigger font size ?

Post by Caronte3D »

Load a font with the desired size, then use it:

Code: Select all

LoadFont(0, "Arial", 24)
DrawingFont(FontID(0))
DrawText(xw,yw,"Hello world ")
wimapon
Enthusiast
Enthusiast
Posts: 290
Joined: Thu Dec 16, 2010 2:05 pm
Location: Delfzijl ( The Netherlands )
Contact:

Re: how can i get a bigger font size ?

Post by wimapon »

Hi Caronte 3D,
Yes, it works . thank you very much,
but what is the standard purebasic font, so that i can return to the normal text.

Wim
wombats
Enthusiast
Enthusiast
Posts: 718
Joined: Thu Dec 29, 2011 5:03 pm

Re: how can i get a bigger font size ?

Post by wombats »

wimapon wrote: Thu Mar 16, 2023 11:05 am Hi Caronte 3D,
Yes, it works . thank you very much,
but what is the standard purebasic font, so that i can return to the normal text.

Wim
To use the default system font, specify #PB_Default when using DrawingFont():

Code: Select all

DrawingFont(#PB_Default)
wimapon
Enthusiast
Enthusiast
Posts: 290
Joined: Thu Dec 16, 2010 2:05 pm
Location: Delfzijl ( The Netherlands )
Contact:

Re: how can i get a bigger font size ?

Post by wimapon »

Okay wombats and Caronte 3D
my problem is solved.
How simple can it be.

thank you very much

Wim Apon
Post Reply