alignement

Previous topic - Next topic

bricky91

Hi! i have another question: is it possible to set the alignement of the text??
thanks bye :)

Moru

I'm affraid you have to align text yourself. Each character is a certain width, you can get the size of the font with the command:

GETFONTSIZE x, y

And with this command:

LEN(str$)

...you can find out how many characters there is in your string that you want to print. Use this to calculate the total size of the string in pixels and position it right, centered or left aligned. Left and right-justified text (both margins straight) is a bit trickier and not realy worth the work in my view :-)

Let us know if you want more hints :-)

Schranz0r

I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

bricky91

thanks moru, and thanks schranz0r! i saw the link to the other topic only now that i've already made it by myself... however, i'm happy to see that i did it like was explained in the topic, so it means i understood well how to do it! thanks again, guys! bye :)