cairomm 1.18.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Cairo::Win32ScaledFont Class Reference

Scaled Font implementation for Microsoft Windows fonts. More...

#include <cairomm/win32_font.h>

Inheritance diagram for Cairo::Win32ScaledFont:
Inheritance graph
[legend]

Public Member Functions

void select_font (HDC hdc)
 Selects the font into the given device context and changes the map mode and world transformation of the device context to match that of the font.
 
void done_font ()
 Releases any resources allocated by select_font()
 
double get_metrics_factor () const
 Gets a scale factor between logical coordinates in the coordinate space used by select_font() (that is, the coordinate system used by the Windows functions to return metrics) and font space coordinates.
 
void get_logical_to_device (Matrix &logical_to_device) const
 Gets the transformation mapping the logical space used by this scaled font to device space.
 
void get_device_to_logical (Matrix &device_to_logical) const
 Gets the transformation mapping device space to the logical space used by this scaled font.
 
- Public Member Functions inherited from Cairo::ScaledFont
cobjectcobj ()
 Provides acces to the underlying C cairo object.
 
const cobjectcobj () const
 Provides acces to the underlying C cairo object.
 
 ScaledFont (cobject *cobj, bool has_reference=false)
 Create a C++ wrapper object from the C instance.
 
 ScaledFont (const ScaledFont &)=delete
 
ScaledFontoperator= (const ScaledFont &)=delete
 
virtual ~ScaledFont ()
 
void get_extents (FontExtents &extents) const
 Gets the metrics for a ScaledFont.
 
void get_text_extents (const std::string &utf8, TextExtents &extents) const
 Gets the extents for a string of text.
 
void get_glyph_extents (const std::vector< Glyph > &glyphs, TextExtents &extents) const
 Gets the extents for an array of glyphs.
 
RefPtr< FontFaceget_font_face () const
 The FontFace with which this ScaledFont was created.
 
void get_font_options (FontOptions &options) const
 Gets the FontOptions with which the ScaledFont was created.
 
void get_font_matrix (Matrix &font_matrix) const
 Gets the font matrix with which the ScaledFont was created.
 
void get_ctm (Matrix &ctm) const
 Gets the CTM with which the ScaledFont was created.
 
FontType get_type () const
 Gets the type of scaled Font.
 
void text_to_glyphs (double x, double y, const std::string &utf8, std::vector< Glyph > &glyphs, std::vector< TextCluster > &clusters, TextClusterFlags &cluster_flags)
 
void get_scale_matrix (Matrix &scale_matrix) const
 Stores the scale matrix of this scaled font into matrix.
 

Static Public Member Functions

static RefPtr< Win32ScaledFontcreate (const RefPtr< Win32FontFace > &font_face, const Matrix &font_matrix, const Matrix &ctm, const FontOptions &options=FontOptions())
 Creates a scaled font for the given Win32FontFace.
 
- Static Public Member Functions inherited from Cairo::ScaledFont
static RefPtr< ScaledFontcreate (const RefPtr< FontFace > &font_face, const Matrix &font_matrix, const Matrix &ctm, const FontOptions &options=FontOptions())
 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.
 

Protected Member Functions

 Win32ScaledFont (const RefPtr< Win32FontFace > &font_face, const Matrix &font_matri