hi,
I want to center a word on my screen , I have written this code , but the word is no centered on X position of the screen , Y position instead is fixed at 400 pixel.
I want to use a .ttf font ARIAL and I think that the unit of measure of the font is different from pixel
can you help me to correct the code ?
SetWindowSize( 1280, 800, 1 )
SetVirtualResolution( 1280, 800 )
font=LoadFont("Arial.ttf")
parola$="ALL"
tx=Createtext(parola$)
SetTextFont(tx, font)
SetTextSize(tx, 100)
parlen = len(parola$) * 100
pospar = (1280 - parlen ) / 2
SetTextPosition(tx, pospar , 400)
Do
Sync()
loop