Dear Behdad,
I tried to use a language which is specified in a font but which isn't
defined by MS and found it didn't work. However, looking at the code, it
looks like it is intended for this to work (using
hb_buffer_set_language), but it required the attached patch to
hb_ot_tag_from_language.
cheers,
Keith
diff --git a/src/hb-ot-tag.c b/src/hb-ot-tag.c
index f3e0f1f..426fff7 100644
--- a/src/hb-ot-tag.c
+++ b/src/hb-ot-tag.c
@@ -631,7 +631,7 @@ hb_ot_tag_from_language (hb_language_t language)
lang_str = hb_language_to_string (language);
- if (0 == strcmp (lang_str, "x-hbot")) {
+ if (0 == strncmp (lang_str, "x-hbot", 6)) {
char tag[4];
int i;
lang_str += 6;
_______________________________________________
HarfBuzz mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/harfbuzz