IUP: Driver Font Interface

From IUP - Portable User Interface

Driver Font Interface
[Driver Interface]


Detailed Description

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


Data Structures

struct  _Ifontmap

Typedefs

typedef _Ifontmap Ifontmap

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

Typedef Documentation

typedef struct _Ifontmap Ifontmap
 

Map between IUP Font and Native Font descriptions.


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

Font attribute set function.

Ifontmap* iupdrvFontMapTable (  void   ) 
 

Returns the map table between IUP Font and Native Font descriptions.