| Top |
| hb_face_t * | hb_directwrite_face_create () |
| hb_face_t * | hb_directwrite_face_create_from_file_or_fail () |
| hb_face_t * | hb_directwrite_face_create_from_blob_or_fail () |
| IDWriteFontFace * | hb_directwrite_face_get_dw_font_face () |
| hb_font_t * | hb_directwrite_font_create () |
| IDWriteFontFace * | hb_directwrite_font_get_dw_font_face () |
| void | hb_directwrite_font_set_funcs () |
hb_face_t *
hb_directwrite_face_create (IDWriteFontFace *dw_face);
Constructs a new face object from the specified DirectWrite IDWriteFontFace.
The face for dw_face
, or hb_face_get_empty() if dw_face
is NULL or the HarfBuzz face cannot be allocated.
Since: 2.4.0
hb_face_t * hb_directwrite_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 DirectWrite library for loading the font file.
The new face object, or NULL if
the file cannot be read, no face is found at the specified index,
or the HarfBuzz face cannot be allocated.
[transfer full]
Since: 11.0.0
hb_face_t * hb_directwrite_face_create_from_blob_or_fail (hb_blob_t *blob,unsigned int index);
Creates an hb_face_t face object from the specified blob and face index.
This is similar in functionality to hb_face_create_or_fail(),
but uses the DirectWrite library for loading the font data.
The new face object, or NULL if
the blob cannot be read, no face is found at the specified index,
or the HarfBuzz face cannot be allocated.
[transfer full]
Since: 11.0.0
IDWriteFontFace *
hb_directwrite_face_get_dw_font_face (hb_face_t *face);
Gets the DirectWrite IDWriteFontFace associated with face
.
Since: 10.4.0
hb_font_t *
hb_directwrite_font_create (IDWriteFontFace *dw_face);
Constructs a new font object from the specified DirectWrite IDWriteFontFace.
The font for dw_face
, or hb_font_get_empty() if the
HarfBuzz font object cannot be allocated.
Since: 11.0.0
IDWriteFontFace *
hb_directwrite_font_get_dw_font_face (hb_font_t *font);
Gets the DirectWrite IDWriteFontFace associated with font
.
Since: 11.0.0
void
hb_directwrite_font_set_funcs (hb_font_t *font);
Configures the font-functions structure of the specified hb_font_t font object to use DirectWrite font functions.
In particular, you can use this function to configure an
existing hb_face_t face object for use with DirectWrite 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 DirectWrite font functions.
Since: 11.0.0