change text size?

Pixilang programming language
Post Reply
User avatar
AutumnCheney
Posts: 263
Joined: Sun Dec 29, 2019 8:16 am
Location: durant, ok, usa
Contact:

change text size?

Post by AutumnCheney » Sat May 29, 2021 10:24 am

i'm sure that this seems like a noob question, but is there any way i can change the text size with the print() function? i'm trying to work with larger screen sizes here and the default text size is too small
please check out my newgrounds account, i post music and talk to people here: https://autumncheney.newgrounds.com

i have a soundcloud and bandcamp too (just music here):
https://soundcloud.com/autumncheney
https://autumncheney.bandcamp.com

User avatar
NightRadio
Site Admin
Posts: 3517
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: change text size?

Post by NightRadio » Sun May 30, 2021 8:15 pm

There are at least two ways :)

1. Change pixel density for the whole window:

Code: Select all

set_pixel_size( WINDOW_XSIZE / DESIRED_WIDTH )
resize( get_screen(), WINDOW_XSIZE, WINDOW_YSIZE )
2. Use transformation:

Code: Select all

$scale = 2
t_scale( $scale, $scale, $scale )
print( txt )
t_reset()

User avatar
AutumnCheney
Posts: 263
Joined: Sun Dec 29, 2019 8:16 am
Location: durant, ok, usa
Contact:

Re: change text size?

Post by AutumnCheney » Mon May 31, 2021 7:06 pm

oh wow, i had no idea about the t_reset() function! i'm guessing you would use that to transform things individually in pixilang?

tysm!!
please check out my newgrounds account, i post music and talk to people here: https://autumncheney.newgrounds.com

i have a soundcloud and bandcamp too (just music here):
https://soundcloud.com/autumncheney
https://autumncheney.bandcamp.com

User avatar
NightRadio
Site Admin
Posts: 3517
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: change text size?

Post by NightRadio » Tue Jun 01, 2021 8:39 pm

Here is the full list:
https://warmplace.ru/soft/pixilang/manu ... sformation
You can rotate/scale/translate the whole Pixilang coordinate system

Post Reply