The OpenD Programming Language

FontFace

Base class for font faces

FontFace represents a particular font at a particular weight, slant, and other characteristic but no size, transformation, or size.

Font faces are created using font-backend-specific classes, typically of the form *FontFace, or implicitly using the toy text API by way of Context.selectFontFace(). The resulting face can be accessed using Context.getFontFace().

Constructors

this
this(cairo_font_face_t* ptr)

Create a FontFace from a existing cairo_font_face_t*. FontFace is a garbage collected class. It will call cairo_font_face_destroy when it gets collected by the GC or when dispose() is called.

Members

Aliases

type
alias type = getType

convenience alias

Functions

checkError
void checkError()

Method for use in subclasses. Calls cairo_font_face_status(nativePointer) and throws an exception if the status isn't CAIRO_STATUS_SUCCESS

getType
FontType getType()

This function returns the C type of a FontFace. See FontType for available types.

Mixins

__anonymous
mixin CairoCountedClass!(cairo_font_face_t*, "cairo_font_face_")

Static functions

createFromNative
FontFace createFromNative(cairo_font_face_t* ptr, bool adjRefCount)

The createFromNative method for the FontFace classes. See https://github.com/jpf91/cairoD/wiki/Memory-Management#createFromNative for more information.

Mixed In Members

From mixin CairoCountedClass!(cairo_font_face_t*, "cairo_font_face_")

_count
uint _count [@property getter]

Reference count. For use in child classes

_reference
void _reference()

Increase reference count. For use in child classes

_dereference
void _dereference()

Decrease reference count. For use in child classes

nativePointer
T nativePointer;

The underlying $(T) handle

debugging
bool debugging;

Enable / disable memory management debugging for this instance. Only available if both cairoD and the cairoD user code were compiled with "debug=RefCounted"

dispose
void dispose()

Explicitly drecrease the reference count.

~this
~this()

Destructor. Call dispose() if it hasn't been called manually.

Meta