diff options
author | Ebrahim Byagowi <ebrahim@gnu.org> | 2020-07-29 07:15:59 +0430 |
---|---|---|
committer | Ebrahim Byagowi <ebrahim@gnu.org> | 2020-07-29 07:16:04 +0430 |
commit | d7c66dd4387fb6c3e79d87a35264b99e7f21a477 (patch) | |
tree | cbfc9e4fdb4cd78e94c60d4bad252b16b5e800fe /pango/pango-ot-tag.c | |
parent | e07fbc24f4b49b2fb466e54060a83d3ed3d24ff7 (diff) | |
download | pango-d7c66dd4387fb6c3e79d87a35264b99e7f21a477.tar.gz |
Remove hb-glib use
glib isn't hard dependency to harfbuzz so we like to make embedders be able
to compile harfbuzz for Pango without hb-glib now that hb_glib_get_unicode_funcs
use is gone releases ago.
Diffstat (limited to 'pango/pango-ot-tag.c')
-rw-r--r-- | pango/pango-ot-tag.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pango-ot-tag.c b/pango/pango-ot-tag.c index c4f337e8..5f50b77c 100644 --- a/pango/pango-ot-tag.c +++ b/pango/pango-ot-tag.c @@ -49,7 +49,7 @@ pango_ot_tag_from_script (PangoScript script) unsigned int count = 1; hb_tag_t tags[1]; - hb_ot_tags_from_script_and_language (hb_glib_script_to_script ((GUnicodeScript)script), + hb_ot_tags_from_script_and_language ((hb_script_t) g_unicode_script_to_iso15924 ((GUnicodeScript) script), HB_LANGUAGE_INVALID, &count, tags, @@ -84,7 +84,7 @@ pango_ot_tag_from_script (PangoScript script) PangoScript pango_ot_tag_to_script (PangoOTTag script_tag) { - return (PangoScript) hb_glib_script_from_script (hb_ot_tag_to_script ((hb_tag_t) script_tag)); + return (PangoScript) g_unicode_script_from_iso15924 (hb_ot_tag_to_script ((hb_tag_t) script_tag)); } |