ToyFontFace

Cairo toy font api's FontFace

Constructors

this
this(cairo_font_face_t* ptr)

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

this
this(string family, FontSlant slant, FontWeight weight)

Creates a font face from a triplet of family, slant, and weight. These font faces are used in implementation of the the cairo "toy" font API.

Members

Aliases

family
alias family = getFamily

convenience alias

slant
alias slant = getSlant

convenience alias

weight
alias weight = getWeight

convenience alias

Functions

getFamily
string getFamily()

Gets the familly name of a toy font.

getSlant
FontSlant getSlant()

Gets the slant a toy font.

getWeight
FontWeight getWeight()

Gets the weight of a toy font.

Inherited Members

From FontFace

__anonymous
mixin CairoCountedClass!(cairo_font_face_t*, "cairo_font_face_")
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

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.

getType
FontType getType()

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

type
alias type = getType

convenience alias

Meta