I need someone to double check me to make sure I do not have an OS problem with our systems. When I run this under CVI 7.1.1 on a WinXP SP2 system it returns
"NI7SEG" not the expected "NI7SegMetaFont" in fontName.
{
int hIndicator;
int fontNameWidth;
char *fontName=NULL;
int status;
// create a numeric indicator
hIndicator= NewCtrl(panel, CTRL_NUMERIC_LS, "Numeric Ctrl", 10, 10);
SetCtrlAttribute(panel, hIndicator, ATTR_CTRL_MODE, VAL_INDICATOR);
SetCtrlAttribute(panel, hIndicator, ATTR_DATA_TYPE, VAL_INTEGER);
status=SetCtrlAttribute(panel, hIndicator, ATTR_TEXT_FONT, VAL_7SEG_META_FONT);
SetCtrlAttribute(panel, hIndicator, ATTR_TEXT_POINT_SIZE, 30);
SetCtrlAttribute(panel, hIndicator, ATTR_TEXT_JUSTIFY, VAL_RIGHT_JUSTIFIED);
// get the font
GetCtrlAttribute (panel, hIndicator, ATTR_TEXT_FONT_NAME_LENGTH, &fontNameWidth);
fontName=malloc((1+fontNameWidth)*sizeof(char));
status=GetCtrlAttribute (panel, hIndicator, ATTR_TEXT_FONT, fontName);
// expected "NI7SegMetaFont", but found "NI7SEG"
if(fontName)
free(fontName);
}
Thanks in advance for any insight into what is going on here.