int GetTextDisplaySize (char text[], char metaFont[], int *height, int *width);
Returns the height and width of a string of text given the metafont you specify.
Input | ||||
Name | Type | Description | ||
text | string | Text string whose size is calculated.
|
||
metaFont | string | Metafont to use in calculating the display size of the text. metaFont can be one of the National Instrument metafonts or a user-defined metafont saved by a previous CreateMetaFont function call. Predefined metafonts—Contain typeface information, point size, and text styles such as bold, underline, italic, and strikeout. These metafonts are used in the LabWindows/CVI environment. Examples of predefined metafonts include VAL_MENU_META_FONT, VAL_DIALOG_META_FONT, VAL_EDITOR_META_FONT, and VAL_APP_META_FONT. LabWindows/CVI-supplied metafonts—Supplied with LabWindows/CVI and installed while LabWindows/CVI is running. These metafonts use typefaces that are not native to the operating systems. Examples of LabWindows/CVI-supplied metafonts are VAL_7SEG_META_FONT and VAL_SYSTEM_META_FONT. |
||
Output | ||||
Name | Type | Description | ||
height | integer | Height of the text in pixels. You can pass NULL. |
||
width | integer | Width of the text in pixels. You can pass NULL. |
Name | Type | Description | ||||
status | integer | Return value indicating whether the function was successful. A negative number indicates that an error occurred.
|