jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: Quartz (CGFont) Fonts: Cairo: A Vector Graphics Library jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68:
jpayne@68:
jpayne@68:
jpayne@68: jpayne@68: jpayne@68:
jpayne@68:

Quartz (CGFont) Fonts

jpayne@68:

Quartz (CGFont) Fonts — Font support via CGFont on OS X

jpayne@68:
jpayne@68:
jpayne@68:

Functions

jpayne@68:
jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68:
jpayne@68: cairo_font_face_t * jpayne@68: jpayne@68: cairo_quartz_font_face_create_for_cgfont () jpayne@68:
jpayne@68: cairo_font_face_t * jpayne@68: jpayne@68: cairo_quartz_font_face_create_for_atsu_font_id () jpayne@68:
jpayne@68:
jpayne@68:
jpayne@68:

Types and Values

jpayne@68:
jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68:
#defineCAIRO_HAS_QUARTZ_FONT
jpayne@68:
jpayne@68:
jpayne@68:

Description

jpayne@68:

The Quartz font backend is primarily used to render text on Apple jpayne@68: MacOS X systems. The CGFont API is used for the internal jpayne@68: implementation of the font backend methods.

jpayne@68:
jpayne@68:
jpayne@68:

Functions

jpayne@68:
jpayne@68:

cairo_quartz_font_face_create_for_cgfont ()

jpayne@68:
cairo_font_face_t *
jpayne@68: cairo_quartz_font_face_create_for_cgfont
jpayne@68:                                (CGFontRef font);
jpayne@68:

Creates a new font for the Quartz font backend based on a jpayne@68: CGFontRef. This font can then be used with jpayne@68: cairo_set_font_face() or cairo_scaled_font_create().

jpayne@68:
jpayne@68:

Parameters

jpayne@68:
jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68:

font

a CGFontRef obtained through a method external to cairo.

 
jpayne@68:
jpayne@68:
jpayne@68:

Returns

jpayne@68:

a newly created cairo_font_face_t. Free with jpayne@68: cairo_font_face_destroy() when you are done using it.

jpayne@68:
jpayne@68:

Since: 1.6

jpayne@68:
jpayne@68:
jpayne@68:
jpayne@68:

cairo_quartz_font_face_create_for_atsu_font_id ()

jpayne@68:
cairo_font_face_t *
jpayne@68: cairo_quartz_font_face_create_for_atsu_font_id
jpayne@68:                                (ATSUFontID font_id);
jpayne@68:

Creates a new font for the Quartz font backend based on an jpayne@68: ATSUFontID. This font can then be used with jpayne@68: cairo_set_font_face() or cairo_scaled_font_create().

jpayne@68:
jpayne@68:

Parameters

jpayne@68:
jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68: jpayne@68:

font_id

an ATSUFontID for the font.

 
jpayne@68:
jpayne@68:
jpayne@68:

Returns

jpayne@68:

a newly created cairo_font_face_t. Free with jpayne@68: cairo_font_face_destroy() when you are done using it.

jpayne@68:
jpayne@68:

Since: 1.6

jpayne@68:
jpayne@68:
jpayne@68:
jpayne@68:

Types and Values

jpayne@68:
jpayne@68:

CAIRO_HAS_QUARTZ_FONT

jpayne@68:
#define CAIRO_HAS_QUARTZ_FONT 1
jpayne@68: 
jpayne@68:

Defined if the Quartz font backend is available. jpayne@68: This macro can be used to conditionally compile backend-specific code.

jpayne@68:

Since: 1.6

jpayne@68:
jpayne@68:
jpayne@68:
jpayne@68:

See Also

jpayne@68:

cairo_font_face_t

jpayne@68:
jpayne@68:
jpayne@68: jpayne@68: jpayne@68: