The OpenD Programming Language

Win32FontFace.this

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

This font can then be used with Context.setFontFace() or new ScaledFont(). The ScaledFont returned from new ScaledFont() is also for the Win32 backend and can be used with functions such as Win32ScaledFont.selectFont().

  1. this(cairo_font_face_t* ptr)
  2. this(LOGFONTW* logfont)
  3. this(HFONT font)
  4. this(LOGFONTW* logfont, HFONT font)
    class Win32FontFace
    this
    (
    LOGFONTW* logfont
    ,
    HFONT font
    )

Parameters

logfont LOGFONTW*

A LOGFONTW structure specifying the font to use. If font is NULL then the lfHeight, lfWidth, lfOrientation and lfEscapement fields of this structure are ignored. Otherwise lfWidth, lfOrientation and lfEscapement must be zero.

font HFONT

An HFONT that can be used when the font matrix is a scale by -lfHeight and the CTM is identity.

Meta