The OpenD Programming Language

FTFontFace.this

Creates a new font face for the FreeType font backend from a pre-opened FreeType face. This font can then be used with Context.setFontFace() or new ScaledFont(). The ScaledFont returned from new ScaledFont() is also for the FreeType backend and can be used with functions such as $(FTScaledFont.lockFace()). Note that Cairo may keep a reference to the FT_Face alive in a font-cache and the exact lifetime of the reference depends highly upon the exact usage pattern and is subject to external factors. You must not call FT_Done_Face() before the FTFontFace has been disposed / collected.

TODO: translate example from cairo API docs; What abou the cairo_font_face_set_user_data part?

  1. this(cairo_font_face_t* ptr)
  2. this(FT_Face face, int loadFlags)
    class FTFontFace
    this
    (
    FT_Face face
    ,)

Meta