Font support for Microsoft Windows. More...
Static Public Member Functions | |
static RefPtr< Win32FontFace > | create (LOGFONTW* logfont) |
Creates a new font for the Win32 font backend based on a LOGFONT. | |
static RefPtr< Win32FontFace > | create (HFONT font) |
Creates a new font for the Win32 font backend based on a HFONT. | |
static RefPtr< Win32FontFace > | create (LOGFONTW* logfont, HFONT font) |
Creates a new font for the Win32 font backend based on a LOGFONT. | |
Protected Member Functions | |
Win32FontFace (LOGFONTW* logfont) | |
Win32FontFace (HFONT font) | |
Win32FontFace (LOGFONTW* logfont, HFONT font) |
Font support for Microsoft Windows.
Cairo::Win32FontFace::Win32FontFace | ( | LOGFONTW * | logfont | ) | [protected] |
Cairo::Win32FontFace::Win32FontFace | ( | HFONT | font | ) | [protected] |
Cairo::Win32FontFace::Win32FontFace | ( | LOGFONTW * | logfont, |
HFONT | font | ||
) | [protected] |
static RefPtr<Win32FontFace> Cairo::Win32FontFace::create | ( | LOGFONTW * | logfont | ) | [static] |
Creates a new font for the Win32 font backend based on a LOGFONT.
This font can then be used with Context::set_font_face() or Win32ScaledFont::create().
logfont | A LOGFONTW structure specifying the font to use. The lfHeight, lfWidth, lfOrientation and lfEscapement fields of this structure are ignored. |
static RefPtr<Win32FontFace> Cairo::Win32FontFace::create | ( | LOGFONTW * | logfont, |
HFONT | font | ||
) | [static] |
Creates a new font for the Win32 font backend based on a LOGFONT.
This font can then be used with Context::set_font_face() or Win32ScaledFont::create().
logfont | A LOGFONTW structure specifying the font to use. If hfont is null then the lfHeight, lfWidth, lfOrientation and lfEscapement fields of this structure are ignored. Otherwise lfWidth, lfOrientation and lfEscapement must be zero. |
font | An HFONT that can be used when the font matrix is a scale by -lfHeight and the CTM is identity. |
static RefPtr<Win32FontFace> Cairo::Win32FontFace::create | ( | HFONT | font | ) | [static] |
Creates a new font for the Win32 font backend based on a HFONT.
This font can then be used with Context::set_font_face() or Win32ScaledFont::create().
font | An HFONT structure specifying the font to use. |