Top |
hb_face_t * | hb_coretext_face_create () |
hb_face_t * | hb_coretext_face_create_from_file_or_fail () |
hb_font_t * | hb_coretext_font_create () |
CGFontRef | hb_coretext_face_get_cg_font () |
CTFontRef | hb_coretext_font_get_ct_font () |
void | hb_coretext_font_set_funcs () |
#define | HB_CORETEXT_TAG_KERX |
#define | HB_CORETEXT_TAG_MORT |
#define | HB_CORETEXT_TAG_MORX |
hb_face_t *
hb_coretext_face_create (CGFontRef cg_font
);
Creates an hb_face_t face object from the specified CGFontRef.
Since: 0.9.10
hb_face_t * hb_coretext_face_create_from_file_or_fail (const char *file_name
,unsigned int index
);
Creates an hb_face_t face object from the specified font file and face index.
This is similar in functionality to hb_face_create_from_file_or_fail()
,
but uses the CoreText library for loading the font file.
The new face object, or NULL
if
no face is found at the specified index or the file cannot be read.
[transfer full]
Since: 10.1.0
hb_font_t *
hb_coretext_font_create (CTFontRef ct_font
);
Creates an hb_font_t font object from the specified CTFontRef.
The created font uses the default font functions implemented
navitely by HarfBuzz. If you want to use the CoreText font functions
instead (rarely needed), you can do so by calling
by hb_coretext_font_set_funcs()
.
Since: 1.7.2
CGFontRef
hb_coretext_face_get_cg_font (hb_face_t *face
);
Fetches the CGFontRef associated with an hb_face_t face object
Since: 0.9.10
CTFontRef
hb_coretext_font_get_ct_font (hb_font_t *font
);
Fetches the CTFontRef associated with the specified hb_font_t font object.
Since: 0.9.10
void
hb_coretext_font_set_funcs (hb_font_t *font
);
Configures the font-functions structure of the specified hb_font_t font object to use CoreText font functions.
In particular, you can use this function to configure an
existing hb_face_t face object for use with CoreText font
functions even if that hb_face_t face object was initially
created with hb_face_create()
, and therefore was not
initially configured to use CoreText font functions.
An hb_font_t object created with hb_coretext_font_create()
is preconfigured for CoreText font functions and does not
require this function to be used.
Since: 10.1.0
#define HB_CORETEXT_TAG_KERX HB_TAG('k','e','r','x')
The hb_tag_t tag for the kerx
(extended kerning) table, which
holds AAT kerning information.
For more information, see https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6kerx.html
#define HB_CORETEXT_TAG_MORT HB_TAG('m','o','r','t')
The hb_tag_t tag for the mort
(glyph metamorphosis) table,
which holds AAT features.
For more information, see https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6mort.html
#define HB_CORETEXT_TAG_MORX HB_TAG('m','o','r','x')
The hb_tag_t tag for the morx
(extended glyph metamorphosis)
table, which holds AAT features.
For more information, see https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6morx.html