struct font_driver const ftcrfont_driver =
{
- type: LISPSYM_INITIALLY (Qftcr),
- get_cache: ftfont_get_cache,
- list: ftcrfont_list,
- match: ftcrfont_match,
- list_family: ftfont_list_family,
- open: ftcrfont_open,
- close: ftcrfont_close,
- has_char: ftfont_has_char,
- encode_char: ftfont_encode_char,
- text_extents: ftcrfont_text_extents,
- draw: ftcrfont_draw,
- get_bitmap: ftfont_get_bitmap,
- anchor_point: ftfont_anchor_point,
+ .type = LISPSYM_INITIALLY (Qftcr),
+ .get_cache = ftfont_get_cache,
+ .list = ftcrfont_list,
+ .match = ftcrfont_match,
+ .list_family = ftfont_list_family,
+ .open = ftcrfont_open,
+ .close = ftcrfont_close,
+ .has_char = ftfont_has_char,
+ .encode_char = ftfont_encode_char,
+ .text_extents = ftcrfont_text_extents,
+ .draw = ftcrfont_draw,
+ .get_bitmap = ftfont_get_bitmap,
+ .anchor_point = ftfont_anchor_point,
#ifdef HAVE_LIBOTF
- otf_capability: ftfont_otf_capability,
+ .otf_capability = ftfont_otf_capability,
#endif
#if defined HAVE_M17N_FLT && defined HAVE_LIBOTF
- shape: ftfont_shape,
+ .shape = ftfont_shape,
#endif
#ifdef HAVE_OTF_GET_VARIATION_GLYPHS
- get_variation_glyphs: ftfont_variation_glyphs,
+ .get_variation_glyphs = ftfont_variation_glyphs,
#endif
- filter_properties: ftfont_filter_properties,
- combining_capability: ftfont_combining_capability,
+ .filter_properties = ftfont_filter_properties,
+ .combining_capability = ftfont_combining_capability,
};
void
static struct font_driver const ftfont_driver =
{
/* We can't draw a text without device dependent functions. */
- type: LISPSYM_INITIALLY (Qfreetype),
- get_cache: ftfont_get_cache,
- list: ftfont_list,
- match: ftfont_match,
- list_family: ftfont_list_family,
- open: ftfont_open,
- close: ftfont_close,
- has_char: ftfont_has_char,
- encode_char: ftfont_encode_char,
- text_extents: ftfont_text_extents,
- get_bitmap: ftfont_get_bitmap,
- anchor_point: ftfont_anchor_point,
+ .type = LISPSYM_INITIALLY (Qfreetype),
+ .get_cache = ftfont_get_cache,
+ .list = ftfont_list,
+ .match = ftfont_match,
+ .list_family = ftfont_list_family,
+ .open = ftfont_open,
+ .close = ftfont_close,
+ .has_char = ftfont_has_char,
+ .encode_char = ftfont_encode_char,
+ .text_extents = ftfont_text_extents,
+ .get_bitmap = ftfont_get_bitmap,
+ .anchor_point = ftfont_anchor_point,
#ifdef HAVE_LIBOTF
- otf_capability: ftfont_otf_capability,
+ .otf_capability = ftfont_otf_capability,
#endif
#if defined HAVE_M17N_FLT && defined HAVE_LIBOTF
- shape: ftfont_shape,
+ .shape = ftfont_shape,
#endif
#ifdef HAVE_OTF_GET_VARIATION_GLYPHS
- get_variation_glyphs: ftfont_variation_glyphs,
+ .get_variation_glyphs = ftfont_variation_glyphs,
#endif
- filter_properties: ftfont_filter_properties,
- combining_capability: ftfont_combining_capability,
+ .filter_properties = ftfont_filter_properties,
+ .combining_capability = ftfont_combining_capability,
};
void
struct font_driver const ftxfont_driver =
{
/* We can't draw a text without device dependent functions. */
- type: LISPSYM_INITIALLY (Qftx),
- get_cache: ftfont_get_cache,
- list: ftxfont_list,
- match: ftxfont_match,
- list_family: ftfont_list_family,
- open: ftxfont_open,
- close: ftxfont_close,
- has_char: ftfont_has_char,
- encode_char: ftfont_encode_char,
- text_extents: ftfont_text_extents,
- draw: ftxfont_draw,
- get_bitmap: ftfont_get_bitmap,
- anchor_point: ftfont_anchor_point,
+ .type = LISPSYM_INITIALLY (Qftx),
+ .get_cache = ftfont_get_cache,
+ .list = ftxfont_list,
+ .match = ftxfont_match,
+ .list_family = ftfont_list_family,
+ .open = ftxfont_open,
+ .close = ftxfont_close,
+ .has_char = ftfont_has_char,
+ .encode_char = ftfont_encode_char,
+ .text_extents = ftfont_text_extents,
+ .draw = ftxfont_draw,
+ .get_bitmap = ftfont_get_bitmap,
+ .anchor_point = ftfont_anchor_point,
#ifdef HAVE_LIBOTF
- otf_capability: ftfont_otf_capability,
+ .otf_capability = ftfont_otf_capability,
#endif
- end_for_frame: ftxfont_end_for_frame,
+ .end_for_frame = ftxfont_end_for_frame,
#if defined HAVE_M17N_FLT && defined HAVE_LIBOTF
- shape: ftfont_shape,
+ .shape = ftfont_shape,
#endif
#ifdef HAVE_OTF_GET_VARIATION_GLYPHS
- get_variation_glyphs: ftfont_variation_glyphs,
+ .get_variation_glyphs = ftfont_variation_glyphs,
#endif
- filter_properties: ftfont_filter_properties,
- combining_capability: ftfont_combining_capability,
+ .filter_properties = ftfont_filter_properties,
+ .combining_capability = ftfont_combining_capability,
};
void
static struct font_driver const macfont_driver =
{
- type: LISPSYM_INITIALLY (Qmac_ct),
- get_cache: macfont_get_cache,
- list: macfont_list,
- match: macfont_match,
- list_family: macfont_list_family,
- free_entity: macfont_free_entity,
- open: macfont_open,
- close: macfont_close,
- has_char: macfont_has_char,
- encode_char: macfont_encode_char,
- text_extents: macfont_text_extents,
- draw: macfont_draw,
- shape: macfont_shape,
- get_variation_glyphs: macfont_variation_glyphs,
- filter_properties: macfont_filter_properties,
+ .type = LISPSYM_INITIALLY (Qmac_ct),
+ .get_cache = macfont_get_cache,
+ .list = macfont_list,
+ .match = macfont_match,
+ .list_family = macfont_list_family,
+ .free_entity = macfont_free_entity,
+ .open = macfont_open,
+ .close = macfont_close,
+ .has_char = macfont_has_char,
+ .encode_char = macfont_encode_char,
+ .text_extents = macfont_text_extents,
+ .draw = macfont_draw,
+ .shape = macfont_shape,
+ .get_variation_glyphs = macfont_variation_glyphs,
+ .filter_properties = macfont_filter_properties,
};
static Lisp_Object
struct font_driver const nsfont_driver =
{
- type: LISPSYM_INITIALLY (Qns),
- case_sensitive: true,
- get_cache: nsfont_get_cache,
- list: nsfont_list,
- match: nsfont_match,
- list_family: nsfont_list_family,
- open: nsfont_open,
- close: nsfont_close,
- has_char: nsfont_has_char,
- encode_char: nsfont_encode_char,
- text_extents: nsfont_text_extents,
- draw: nsfont_draw,
+ .type = LISPSYM_INITIALLY (Qns),
+ .case_sensitive = true,
+ .get_cache = nsfont_get_cache,
+ .list = nsfont_list,
+ .match = nsfont_match,
+ .list_family = nsfont_list_family,
+ .open = nsfont_open,
+ .close = nsfont_close,
+ .has_char = nsfont_has_char,
+ .encode_char = nsfont_encode_char,
+ .text_extents = nsfont_text_extents,
+ .draw = nsfont_draw,
};
void
struct font_driver const xfont_driver =
{
- type: LISPSYM_INITIALLY (Qx),
- get_cache: xfont_get_cache,
- list: xfont_list,
- match: xfont_match,
- list_family: xfont_list_family,
- open: xfont_open,
- close: xfont_close,
- prepare_face: xfont_prepare_face,
- has_char: xfont_has_char,
- encode_char: xfont_encode_char,
- text_extents: xfont_text_extents,
- draw: xfont_draw,
- check: xfont_check,
+ .type = LISPSYM_INITIALLY (Qx),
+ .get_cache = xfont_get_cache,
+ .list = xfont_list,
+ .match = xfont_match,
+ .list_family = xfont_list_family,
+ .open = xfont_open,
+ .close = xfont_close,
+ .prepare_face = xfont_prepare_face,
+ .has_char = xfont_has_char,
+ .encode_char = xfont_encode_char,
+ .text_extents = xfont_text_extents,
+ .draw = xfont_draw,
+ .check = xfont_check,
};
void
struct font_driver const xftfont_driver =
{
/* We can't draw a text without device dependent functions. */
- type: LISPSYM_INITIALLY (Qxft),
- get_cache: xfont_get_cache,
- list: xftfont_list,
- match: xftfont_match,
- list_family: ftfont_list_family,
- open: xftfont_open,
- close: xftfont_close,
- prepare_face: xftfont_prepare_face,
- done_face: xftfont_done_face,
- has_char: xftfont_has_char,
- encode_char: xftfont_encode_char,
- text_extents: xftfont_text_extents,
- draw: xftfont_draw,
- get_bitmap: ftfont_get_bitmap,
- anchor_point: ftfont_anchor_point,
+ .type = LISPSYM_INITIALLY (Qxft),
+ .get_cache = xfont_get_cache,
+ .list = xftfont_list,
+ .match = xftfont_match,
+ .list_family = ftfont_list_family,
+ .open = xftfont_open,
+ .close = xftfont_close,
+ .prepare_face = xftfont_prepare_face,
+ .done_face = xftfont_done_face,
+ .has_char = xftfont_has_char,
+ .encode_char = xftfont_encode_char,
+ .text_extents = xftfont_text_extents,
+ .draw = xftfont_draw,
+ .get_bitmap = ftfont_get_bitmap,
+ .anchor_point = ftfont_anchor_point,
#ifdef HAVE_LIBOTF
- otf_capability: ftfont_otf_capability,
+ .otf_capability = ftfont_otf_capability,
#endif
- end_for_frame: xftfont_end_for_frame,
+ .end_for_frame = xftfont_end_for_frame,
#if defined HAVE_M17N_FLT && defined HAVE_LIBOTF
- shape: xftfont_shape,
+ .shape = xftfont_shape,
#endif
#ifdef HAVE_OTF_GET_VARIATION_GLYPHS
- get_variation_glyphs: ftfont_variation_glyphs,
+ .get_variation_glyphs = ftfont_variation_glyphs,
#endif
- filter_properties: ftfont_filter_properties,
- cached_font_ok: xftfont_cached_font_ok,
- combining_capability: ftfont_combining_capability,
- drop_xrender_surfaces: xftfont_drop_xrender_surfaces,
+ .filter_properties = ftfont_filter_properties,
+ .cached_font_ok = xftfont_cached_font_ok,
+ .combining_capability = ftfont_combining_capability,
+ .drop_xrender_surfaces = xftfont_drop_xrender_surfaces,
};
void