X11workbench Toolkit  1.0
WBFont Struct Reference

An allocated structure containing XFontStruct, XFontInfo, and XftFont [as applicable] for a specified font. More...

#include <font_helper.h>

Data Fields

struct WBFontpShareNext
 RESERVED - next in a chain of WB_FONTs that share the same "stuff", NULL if this is a stand-alone copy.
 
struct WBFontpSharePrev
 RESERVED - previous in a chain of WB_FONTs that share the same "stuff", NULL if this is a stand-alone copy.
 
int iAscent
 RESERVED - cached font ascent (-1 if not valid). do not access this directly.
 
int iDescent
 RESERVED - cached font descent (-1 if not valid). do not access this directly.
 
int iHeight
 RESERVED - cached font height (-1 if not valid). do not access this directly.
 
int iAvgCharWidth
 RESERVED - cached average character width (-1 if not valid). do not access this directly.
 
int iMaxCharWidth
 RESERVED - cached max character width (-1 if not valid). do not access this directly.
 
XCharStruct max_bounds
 RESERVED - cached max bounds (all 0's if not valid). do not access this directly.
 
Display * pDisplay
 The Display pointer associated with this font (to be used internally)
 
XFontStruct * pFontStruct
 legacy 'XFontStruct' for X11 raster fonts
 
XFontSet fsFont
 legacy 'XFontSet' for X11 raster fonts (UTF-8)
 

Detailed Description

An allocated structure containing XFontStruct, XFontInfo, and XftFont [as applicable] for a specified font.

typedef struct WBFont
{
struct WBFont *pShareChain; // RESERVED - next in a chain of WB_FONTs that share the same "stuff", NULL if this is a stand-alone copy
struct WBFont *pSharePrev; // RESERVED - previous in a chain of WB_FONTs that share the same "stuff", NULL if this is a stand-alone copy
int iAscent; // RESERVED - cached font ascent (-1 if not valid). do not access this directly
int iDescent; // RESERVED - cached font descent (-1 if not valid). do not access this directly
int iHeight; // RESERVED - cached font descent (-1 if not valid). do not access this directly
int iAvgCharWidth; // RESERVED - cached average character width (-1 if not valid). do not access this directly
int iMaxCharWidth; // RESERVED - cached max character width (-1 if not valid). do not access this directly
XCharStruct max_bounds; // RESERVED - cached max bounds (all 0's if not valid). do not access this directly
Display *pDisplay; // The Display pointer associated with this font (to be used internally)
XftFont *pxftFont; // general font info (only valid when Xft library is installed)
XftFontInfo *pxftFontInfo; // used by lib like a handle, assign to 'None' when not in use (only valid when Xft library is installed)
XFontStruct *pFontStruct; // legacy 'XFontStruct' for X11 raster fonts
XFontSet fsFont; // legacy 'XFontSet' for X11 raster fonts (UTF-8)
} * WB_FONT; // WB_FONT will always point to this struct, allocated using WBAlloc

Definition at line 152 of file font_helper.h.


The documentation for this struct was generated from the following file: