Fnt

Font object to encapsulate the X font.

Constructors

this
this(Display* dpy, in string fontname)

Ctor. Creates a Fnt object wrapping the specified font for a given display.

Members

Functions

getexts
void getexts(in string text, Extnts* tex)

Get the font extents for a given string.

getexts_width
uint getexts_width(in string text)

Get the rendered width of a string for the wrapped font.

Static functions

free
void free(Display* dpy, Fnt* fnt)

Free the given font object associated with a display. This will release the GC allocated memory.

Variables

ascent
int ascent;

Ascent of the font

descent
int descent;

Descent of the font

h
uint h;

Height of the font. This equates to ascent + descent.

xfont
XFontStruct* xfont;

The X font we're covering.

Meta