|
Post by siread on Mar 9, 2005 22:18:42 GMT
FT_Text doesn't seem to center text. It has a centering parameter but appears to be missing any code to center the text.
|
|
|
Post by siread on Mar 9, 2005 22:40:33 GMT
Hmm... this seems to do the trick for x centering:
If centx length = 0 For f = 1 To Len(txt) scii = Asc(Mid(txt,f,1)) If scii<>32 length = length + FT_currfont\charwid[scii] + FT_currfont\spacing Else length = length + 0.5 * FT_currfont\blocksize EndIf Next x = x - (length/2) EndIf
|
|
|
Post by Beaker on Mar 12, 2005 1:44:21 GMT
Blimey, you are right. Sorry about that. At first I thought you meant the 3D library, then I realised you were refering to the 2D one.
Glad you got it sorted.
|
|
|
Post by mjhszxy on Jul 28, 2008 1:24:47 GMT
|
|