mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 17:18:42 +02:00
Implement cairo_scaled_font_get_type
This commit is contained in:
parent
5a3c30eafe
commit
1769830e6e
5 changed files with 11 additions and 0 deletions
|
|
@ -664,6 +664,7 @@ _cairo_atsui_font_old_show_glyphs (void *abstract_font,
|
|||
}
|
||||
|
||||
const cairo_scaled_font_backend_t cairo_atsui_scaled_font_backend = {
|
||||
CAIRO_FONT_TYPE_ATSUI,
|
||||
_cairo_atsui_font_create_toy,
|
||||
_cairo_atsui_font_fini,
|
||||
_cairo_atsui_font_scaled_glyph_init,
|
||||
|
|
|
|||
|
|
@ -1901,6 +1901,7 @@ _cairo_ft_show_glyphs (void *abstract_font,
|
|||
}
|
||||
|
||||
const cairo_scaled_font_backend_t cairo_ft_scaled_font_backend = {
|
||||
CAIRO_FONT_TYPE_FT,
|
||||
_cairo_ft_scaled_font_create_toy,
|
||||
_cairo_ft_scaled_font_fini,
|
||||
_cairo_ft_scaled_glyph_init,
|
||||
|
|
|
|||
|
|
@ -118,6 +118,12 @@ _cairo_scaled_font_set_error (cairo_scaled_font_t *scaled_font,
|
|||
_cairo_error (status);
|
||||
}
|
||||
|
||||
cairo_font_type_t
|
||||
cairo_scaled_font_get_type (cairo_scaled_font_t *scaled_font)
|
||||
{
|
||||
return scaled_font->backend->type;
|
||||
}
|
||||
|
||||
/**
|
||||
* cairo_scaled_font_status:
|
||||
* @scaled_font: a #cairo_scaled_font_t
|
||||
|
|
|
|||
|
|
@ -1355,6 +1355,7 @@ CLEANUP_FONT:
|
|||
}
|
||||
|
||||
const cairo_scaled_font_backend_t cairo_win32_scaled_font_backend = {
|
||||
CAIRO_FONT_TYPE_WIN32,
|
||||
_cairo_win32_scaled_font_create_toy,
|
||||
_cairo_win32_scaled_font_fini,
|
||||
_cairo_win32_scaled_font_glyph_init,
|
||||
|
|
|
|||
|
|
@ -509,6 +509,8 @@ typedef enum _cairo_scaled_glyph_info {
|
|||
} cairo_scaled_glyph_info_t;
|
||||
|
||||
struct _cairo_scaled_font_backend {
|
||||
cairo_font_type_t type;
|
||||
|
||||
cairo_status_t
|
||||
(*create_toy) (cairo_toy_font_face_t *toy_face,
|
||||
const cairo_matrix_t *font_matrix,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue