Hi, first of all HAPPY NEW YEAR to ALL
I need help for Text
I have three letter (in vector vstring$) printed on screen with Arial.ttf font
they are printed one every 100 pixel and are printed with color black,
this is an example code.
vstring$[1]="A"
vstring$[2]="i"
vstring$[3]="C"
font=LoadFont("Arial.ttf")
for u= 1 to 3
tx2[u] = createtext(vstring$[u])
SetTextColor(tx2[u],0,0,0,255)
SetTextFont(tx2[u], font)
SetTextSize(tx2[u], 80)
SetTextPosition(tx2[u],100 * u ,500)
next
now I answer this:
in this example the position X of the letter is Known
but in my real code is not known because it is parametric and non fixed
how I can know the position of 3 letter ? AppGameKit have SetTextPosition but not a command GetTextPosition
I need to know in pixel the initial position of the 3 single letter .
thank you