|
|
Re: TEXT.char_x, char_y
[Re: MMike]
#259667
04/07/09 07:55
04/07/09 07:55
|
Joined: Mar 2009
Posts: 112 Germany
KDuke
Member
|
Member
Joined: Mar 2009
Posts: 112
Germany
|
Hi guys! First of to get the horizontal size: str_width (STRING*, FONT*)
Returns the width of the string in a given font. A7.3
Parameters: STRING* - Pointer to a STRING or char array (3 or more chars; must not contain line feeds). FONT* - FONT pointer, or NULL for the default Arial font.
Returns: Horizontal size of the string in pixels.
Speed: Medium
Example:
temp = str_width("Hello ",NULL);
And for the height of one line of the text it is the point-value of the truetype in pixel! For example "Arial#24bi" would be 24 pixels tall! I hope that gets you further. greetings K-Duke
Using A7 Free Click and join the 3dgs irc community! Room: #3dgs
|
|
|
|