Functions
cairo_win32_scaled_font_select_font ()
cairo_status_t
cairo_win32_scaled_font_select_font (cairo_scaled_font_t *scaled_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. This function is intended for use when using
layout APIs such as Uniscribe to do text layout with the
cairo font. After finishing using the device context, you must call
cairo_win32_scaled_font_done_font() to release any resources allocated
by this function.
See cairo_win32_scaled_font_get_metrics_factor() for converting logical
coordinates from the device context to font space.
Normally, calls to SaveDC() and RestoreDC() would be made around
the use of this function to preserve the original graphics state.
Since: 1.0
cairo_win32_scaled_font_get_metrics_factor ()
double
cairo_win32_scaled_font_get_metrics_factor
(cairo_scaled_font_t *scaled_font);
Gets a scale factor between logical coordinates in the coordinate
space used by cairo_win32_scaled_font_select_font() (that is, the
coordinate system used by the Windows functions to return metrics) and
font space coordinates.
Returns
factor to multiply logical units by to get font space
coordinates.
Since: 1.0
cairo_win32_scaled_font_get_logical_to_device ()
void
cairo_win32_scaled_font_get_logical_to_device
(cairo_scaled_font_t *scaled_font,
cairo_matrix_t *logical_to_device);
Gets the transformation mapping the logical space used by scaled_font
to device space.
Since: 1.4
cairo_win32_scaled_font_get_device_to_logical ()
void
cairo_win32_scaled_font_get_device_to_logical
(cairo_scaled_font_t *scaled_font,
cairo_matrix_t *device_to_logical);
Gets the transformation mapping device space to the logical space
used by scaled_font
.
Since: 1.4