ScaledFont.this - multiple declarations

Function ScaledFont.this

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

Prototype

this(
  cairo_scaled_font_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 ScaledFont.this

Creates a ScaledFont object from a font face and matrices that describe the size of the font and the environment in which it will be used.

Prototype

this(
  FontFace font_face,
  Matrix font_matrix,
  Matrix ctm,
  FontOptions options
);

Parameters

NameDescription
font_matrix font space to user space transformation matrix for the font. In the simplest case of a N point font, this matrix is just a scale by N, but it can also be used to shear the font or stretch it unequally along the two axes. See Context.setFontMatrix().
ctm user to device transformation matrix with which the font will be used.

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