![]() |
Functions | |
void | iupdrvFontGetCharSize (Ihandle *ih, int *charwidth, int *charheight) |
int | iupdrvFontGetStringWidth (Ihandle *ih, const char *str) |
void | iupdrvFontGetMultiLineStringSize (Ihandle *ih, const char *str, int *w, int *h) |
char * | iupdrvGetSystemFont (void) |
int | iupdrvSetStandardFontAttrib (Ihandle *ih, const char *value) |
char * | iupGetFontAttrib (Ihandle *ih) |
int | iupSetFontAttrib (Ihandle *ih, const char *value) |
int | iupGetFontInfo (const char *standardfont, char *fontface, int *size, int *is_bold, int *is_italic, int *is_underline, int *is_strikeout) |
int | iupFontParsePango (const char *value, char *fontface, int *size, int *bold, int *italic, int *underline, int *strikeout) |
int | iupFontParseWin (const char *value, char *fontface, int *size, int *bold, int *italic, int *underline, int *strikeout) |
int | iupFontParseX (const char *value, char *fontface, int *size, int *bold, int *italic, int *underline, int *strikeout) |
void iupdrvFontGetCharSize | ( | Ihandle * | ih, | |
int * | charwidth, | |||
int * | charheight | |||
) |
Retrieve the character size for the selected font. Should be used only to calculate the SIZE attribute.
int iupdrvFontGetStringWidth | ( | Ihandle * | ih, | |
const char * | str | |||
) |
Retrieve the string width for the selected font.
void iupdrvFontGetMultiLineStringSize | ( | Ihandle * | ih, | |
const char * | str, | |||
int * | w, | |||
int * | h | |||
) |
Retrieve the multi-lined string size for the selected font.
Width is the maximum line width.
Height is charheight*number_of_lines (this will avoid line size variations).
char* iupdrvGetSystemFont | ( | void | ) |
Returns the System default font.
int iupdrvSetStandardFontAttrib | ( | Ihandle * | ih, | |
const char * | value | |||
) |
STANDARDFONT attribute set function.
char* iupGetFontAttrib | ( | Ihandle * | ih | ) |
FONT attribute get function.
int iupSetFontAttrib | ( | Ihandle * | ih, | |
const char * | value | |||
) |
FONT attribute set function.
int iupGetFontInfo | ( | const char * | standardfont, | |
char * | fontface, | |||
int * | size, | |||
int * | is_bold, | |||
int * | is_italic, | |||
int * | is_underline, | |||
int * | is_strikeout | |||
) |
Parse the font format description. Returns a non zero value if successful.
int iupFontParsePango | ( | const char * | value, | |
char * | fontface, | |||
int * | size, | |||
int * | bold, | |||
int * | italic, | |||
int * | underline, | |||
int * | strikeout | |||
) |
Parse the Pango font format description. Returns a non zero value if successful.
int iupFontParseWin | ( | const char * | value, | |
char * | fontface, | |||
int * | size, | |||
int * | bold, | |||
int * | italic, | |||
int * | underline, | |||
int * | strikeout | |||
) |
Parse the old IUP Windows font format description. Returns a non zero value if successful.
int iupFontParseX | ( | const char * | value, | |
char * | fontface, | |||
int * | size, | |||
int * | bold, | |||
int * | italic, | |||
int * | underline, | |||
int * | strikeout | |||
) |
Parse the X-Windows font format description. Returns a non zero value if successful.