Fnd_SVG
2 shared methods.
Fnd_SVG_GetStringHeight
Fnd_SVG_GetStringHeight (text; font; size {; style}) --> height
Returns the height of text in pixels for the supplied font settings.
4D constants may be used for the style parameter.
| Parameter | Type | Direction | Description |
|---|---|---|---|
inTxt | Text | in | The text to measure |
txt | Text | in | The font used to display the text |
lon | Integer | in | The font size |
inLon | Integer | in | The font style (optional) |
Result | Real | out | The text height in pixels |
Fnd_SVG_GetStringWidth
Fnd_SVG_GetStringWidth (text; font; size {; style}) --> width
Returns the width of text in pixels for the supplied font settings.
4D constants may be used for the style parameter.
| Parameter | Type | Direction | Description |
|---|---|---|---|
inTxt | Text | in | The text to measure |
txt | Text | in | The font used to display the text |
lon | Integer | in | The font size |
inLon | Integer | in | The font style (optional) |
Result | Real | out | The text width in pixels |