ToyFontFace.this - multiple declarations

Function ToyFontFace.this

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.

Prototype

this(
  cairo_font_face_t* ptr
);

Warning

ptr's reference count is not increased by this function! Adjust reference count before calling it if necessary

Only use this if you know what your doing! This function should not be needed for standard cairoD usage.

Function ToyFontFace.this

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.

If family is the zero-length string "", the platform-specific default family is assumed. The default family then can be queried using getFamily().

The Context.selectFontFace() function uses this to create font faces. See that function for limitations and other details of toy font faces.

Prototype

this(
  string family,
  cairo_font_slant_t slant,
  cairo_font_weight_t weight
);

Authors

Johannes Pfau cairoD
Andrej Mitrovic cairoD
cairo team cairo

Copyright

License

cairoD wrapper/bindings Boost License 1.0
cairo LGPL 2.1 / MPL 1.1