![]() |
![]() |
![]() |
Cairo: A Vector Graphics Library | ![]() |
---|---|---|---|---|
typedef cairo_font_face_t; cairo_font_face_t* cairo_font_face_reference (cairo_font_face_t *font_face); void cairo_font_face_destroy (cairo_font_face_t *font_face); cairo_status_t cairo_font_face_status (cairo_font_face_t *font_face); void* cairo_font_face_get_user_data (cairo_font_face_t *font_face, const cairo_user_data_key_t *key); cairo_status_t cairo_font_face_set_user_data (cairo_font_face_t *font_face, const cairo_user_data_key_t *key, void *user_data, cairo_destroy_func_t destroy); enum cairo_font_type_t; cairo_font_type_t cairo_font_face_get_type (cairo_font_face_t *font_face);
typedef struct _cairo_font_face cairo_font_face_t;
A cairo_font_face_t specifies all aspects of a font other
than the size or font matrix (a font matrix is used to distort
a font by sheering it or scaling it unequally in the two
directions) . A font face can be set on a cairo_t by using
cairo_set_font_face()
; the size and font matrix are set with
cairo_set_font_size()
and cairo_set_font_matrix()
.
cairo_font_face_t* cairo_font_face_reference (cairo_font_face_t *font_face);
void* cairo_font_face_get_user_data (cairo_font_face_t *font_face, const cairo_user_data_key_t *key);
cairo_status_t cairo_font_face_set_user_data (cairo_font_face_t *font_face, const cairo_user_data_key_t *key, void *user_data, cairo_destroy_func_t destroy);
typedef enum _cairo_font_type { CAIRO_FONT_TYPE_TOY, CAIRO_FONT_TYPE_FT, CAIRO_FONT_TYPE_WIN32, CAIRO_FONT_TYPE_ATSUI } cairo_font_type_t;
Since 1.2
cairo_font_type_t cairo_font_face_get_type (cairo_font_face_t *font_face);
Since 1.2