PgFontMetrics

A PangoFontMetrics structure holds the overall metric information for a font.

The information in a PangoFontMetrics structure may be restricted to a script. The fields of this structure are private to implementations of a font backend. See the documentation of the corresponding getters for documentation of their meaning.

Constructors

this
this(PangoFontMetrics* pangoFontMetrics, bool ownedRef)

Sets our main struct and passes it to the parent class.

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

doref
alias doref = ref_
Undocumented in source.

Functions

getApproximateCharWidth
int getApproximateCharWidth()

Gets the approximate character width for a font metrics structure.

getApproximateDigitWidth
int getApproximateDigitWidth()

Gets the approximate digit width for a font metrics structure.

getAscent
int getAscent()

Gets the ascent from a font metrics structure.

getDescent
int getDescent()

Gets the descent from a font metrics structure.

getHeight
int getHeight()

Gets the line height from a font metrics structure.

getPgFontMetricsStruct
PangoFontMetrics* getPgFontMetricsStruct(bool transferOwnership)

Get the main Gtk struct

getStrikethroughPosition
int getStrikethroughPosition()

Gets the suggested position to draw the strikethrough.

getStrikethroughThickness
int getStrikethroughThickness()

Gets the suggested thickness to draw for the strikethrough.

getStruct
void* getStruct()

the main Gtk struct as a void*

getUnderlinePosition
int getUnderlinePosition()

Gets the suggested position to draw the underline.

getUnderlineThickness
int getUnderlineThickness()

Gets the suggested thickness to draw for the underline.

ref_
PgFontMetrics ref_()

Increase the reference count of a font metrics structure by one.

unref
void unref()

Decrease the reference count of a font metrics structure by one. If the result is zero, frees the structure and any associated memory.

Static functions

getType
GType getType()

Variables

ownedRef
bool ownedRef;
Undocumented in source.
pangoFontMetrics
PangoFontMetrics* pangoFontMetrics;

the main Gtk struct

Meta