Page 1 of 1
how can i get a bigger font size ?
Posted: Wed Mar 15, 2023 8:55 pm
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
Re: how can i get a bigger font size ?
Posted: Wed Mar 15, 2023 9:45 pm
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 ")
Re: how can i get a bigger font size ?
Posted: Thu Mar 16, 2023 11:05 am
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
Re: how can i get a bigger font size ?
Posted: Thu Mar 16, 2023 12:11 pm
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():
Re: how can i get a bigger font size ?
Posted: Thu Mar 16, 2023 4:09 pm
by wimapon
Okay wombats and Caronte 3D
my problem is solved.
How simple can it be.
thank you very much
Wim Apon