IUP: Driver Font Interface

IUP - Portable User Interface

Driver Font Interface
[Driver Interface]


Detailed Description

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


Functions

void iupdrvGetCharSize (Ihandle *ih, int *charwidth, int *charheight)
void iupdrvStringSize (Ihandle *ih, const char *str, int *w, int *h)
void iupdrvMultiLineStringSize (Ihandle *ih, const char *str, int *w, int *h)
char * iupdrvGetSystemFont (void)
int iupdrvSetNativeFontAttrib (Ihandle *ih, const char *value)
char * iupGetFontAttrib (Ihandle *ih)
int iupSetFontAttrib (Ihandle *ih, const char *value)
int iupFontParsePango (const char *value, char *typeface, int *size, int *bold, int *italic, int *underline, int *strikeout)
int iupFontParseWin (const char *value, char *fontname, int *height, int *bold, int *italic, int *underline, int *strikeout)
int iupFontParseX (const char *value, char *fontname, int *height, int *bold, int *italic, int *underline, int *strikeout)

Function Documentation

void iupdrvGetCharSize Ihandle *  ih,
int *  charwidth,
int *  charheight
 

Retrieve the character size for the selected font.

void iupdrvStringSize Ihandle *  ih,
const char *  str,
int *  w,
int *  h
 

Retrieve the string size for the selected font.

void iupdrvMultiLineStringSize Ihandle *  ih,
const char *  str,
int *  w,
int *  h
 

Retrieve the multi-lined string size for the selected font.

char* iupdrvGetSystemFont void   ) 
 

Returns the System default font.

int iupdrvSetNativeFontAttrib Ihandle *  ih,
const char *  value
 

NATIVEFONT attribute set function.

char* iupGetFontAttrib Ihandle *  ih  ) 
 

FONT attribute get function.

int iupSetFontAttrib Ihandle *  ih,
const char *  value
 

FONT attribute set function.

int iupFontParsePango const char *  value,
char *  typeface,
int *  size,
int *  bold,
int *  italic,
int *  underline,
int *  strikeout
 

Parse the common font format description. Returns a non zero value if successful.

int iupFontParseWin const char *  value,
char *  fontname,
int *  height,
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 *  fontname,
int *  height,
int *  bold,
int *  italic,
int *  underline,
int *  strikeout
 

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