Functions

Driver Font Interface
[Driver Interface]

Collaboration diagram for Driver Font Interface:

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 iupdrvSetFontAttrib (Ihandle *ih, const char *value)
char * iupGetFontValue (Ihandle *ih)
int iupGetFontInfo (const char *font, char *typeface, int *size, int *is_bold, int *is_italic, int *is_underline, int *is_strikeout)
int iupFontParsePango (const char *value, char *typeface, int *size, int *bold, int *italic, int *underline, int *strikeout)
int iupFontParseWin (const char *value, char *typeface, int *size, int *bold, int *italic, int *underline, int *strikeout)
int iupFontParseX (const char *value, char *typeface, int *size, int *bold, int *italic, int *underline, int *strikeout)

Detailed Description

Each driver must export the symbols defined here.
See iup_drvfont.h

Function Documentation

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 iupdrvSetFontAttrib ( Ihandle *  ih,
const char *  value 
)

FONT attribute set function.

char* iupGetFontValue ( Ihandle *  ih  ) 

Compensates IupMatrix limitation in Get FONT.

int iupGetFontInfo ( const char *  font,
char *  typeface,
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 *  typeface,
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 *  typeface,
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 *  typeface,
int *  size,
int *  bold,
int *  italic,
int *  underline,
int *  strikeout 
)

Parse the X-Windows font format description. Returns a non zero value if successful.