diff options
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2019-07-01 16:58:53 +0900 |
---|---|---|
committer | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2019-07-01 16:58:53 +0900 |
commit | 6cabb698f99a6b9e931cdac7347b18c44fde6041 (patch) | |
tree | eaccdb78e9ca1103e55afc0939c93fc665f44700 /src/w32uniscribe.c | |
parent | fd9ea1e511ba3b1f5d338c3fc8faf0b85df951f9 (diff) | |
download | emacs-6cabb698f99a6b9e931cdac7347b18c44fde6041.tar.gz |
Implement the otf_capability method for HarfBuzz
* src/hbfont.c: Include hb-ot.h.
[HAVE_NTGUI]: Add DEF_DLL_FN and #define for hb_tag_to_string,
hb_font_get_face, hb_ot_layout_table_get_script_tags,
hb_ot_layout_table_get_feature_tags, hb_ot_layout_script_get_language_tags,
and hb_ot_layout_language_get_feature_tags.
(hbfont_init_w32_funcs) [HAVE_NTGUI]: Add LOAD_DLL_FN for them.
(hbfont_otf_features, hbfont_otf_capability): New functions.
* src/font.h (hbfont_otf_capability) [HAVE_HARFBUZZ]: Add extern.
* src/ftcrfont.c (syms_of_ftcrfont_for_pdumper) [HAVE_HARFBUZZ]:
* src/ftfont.c (syms_of_ftfont_for_pdumper) [HAVE_HARFBUZZ]:
* src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper) [HAVE_HARFBUZZ]:
* src/xftfont.c (syms_of_xftfont_for_pdumper) [HAVE_HARFBUZZ]: Populate
otf_capability method with hbfont_otf_capability.
Diffstat (limited to 'src/w32uniscribe.c')
-rw-r--r-- | src/w32uniscribe.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/w32uniscribe.c b/src/w32uniscribe.c index d59d564abb4..aa6bebdc024 100644 --- a/src/w32uniscribe.c +++ b/src/w32uniscribe.c @@ -1540,6 +1540,7 @@ syms_of_w32uniscribe_for_pdumper (void) harfbuzz_font_driver.list = w32hb_list; harfbuzz_font_driver.match = w32hb_match; harfbuzz_font_driver.encode_char = w32hb_encode_char; + harfbuzz_font_driver.otf_capability = hbfont_otf_capability, harfbuzz_font_driver.shape = hbfont_shape; harfbuzz_font_driver.get_variation_glyphs = w32hb_get_variation_glyphs; harfbuzz_font_driver.combining_capability = hbfont_combining_capability; |