The OpenD Programming Language

Win32FontFace

The Microsoft Windows font backend is primarily used to render text on Microsoft Windows systems.

static if(CAIRO_HAS_WIN32_SURFACE)
static if(CAIRO_HAS_WIN32_FONT)
class Win32FontFace : FontFace {}

Constructors

this
this(cairo_font_face_t* ptr)

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

this
this(LOGFONTW* logfont)

Creates a new font for the Win32 font backend based on a LOGFONT.

this
this(HFONT font)

Creates a new font for the Win32 font backend based on a HFONT.

this
this(LOGFONTW* logfont, HFONT font)

Creates a new font for the Win32 font backend based on a LOGFONT.

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