aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2010-02-26 21:40:46 +0900
committerKenichi Handa2010-02-26 21:40:46 +0900
commitf88cc4d6dd9ca8cfbae25aa1d8f1912d54444aca (patch)
tree38e85e04327f47e615cf2abc5ba920a849bb0425 /src
parent06aac9016fc074f856a4b374572024a68784e630 (diff)
downloademacs-f88cc4d6dd9ca8cfbae25aa1d8f1912d54444aca.tar.gz
emacs-f88cc4d6dd9ca8cfbae25aa1d8f1912d54444aca.zip
Fix Myanmar OTF support
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/ftfont.c18
2 files changed, 11 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 36e056b786d..f60b400b930 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12010-02-26 Kenichi Handa <handa@m17n.org> 12010-02-26 Kenichi Handa <handa@m17n.org>
2 2
3 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4
3 * xdisp.c (reseat_to_string): Fix previous change. 5 * xdisp.c (reseat_to_string): Fix previous change.
4 6
52010-02-26 David Reitter <david.reitter@gmail.com> 72010-02-26 David Reitter <david.reitter@gmail.com>
diff --git a/src/ftfont.c b/src/ftfont.c
index 492d03bb8bf..f4fe5b8e5c0 100644
--- a/src/ftfont.c
+++ b/src/ftfont.c
@@ -663,19 +663,19 @@ ftfont_get_open_type_spec (Lisp_Object otf_spec)
663 else 663 else
664 spec->script_tag = 0x44464C54; /* "DFLT" */ 664 spec->script_tag = 0x44464C54; /* "DFLT" */
665 otf_spec = XCDR (otf_spec); 665 otf_spec = XCDR (otf_spec);
666 val = XCAR (otf_spec); 666 spec->langsys_tag = 0;
667 if (! NILP (val)) 667 if (! NILP (otf_spec))
668 OTF_SYM_TAG (val, spec->langsys_tag); 668 {
669 else 669 val = XCAR (otf_spec);
670 spec->langsys_tag = 0; 670 if (! NILP (val))
671 OTF_SYM_TAG (val, spec->langsys_tag);
672 otf_spec = XCDR (otf_spec);
673 }
671 spec->nfeatures[0] = spec->nfeatures[1] = 0; 674 spec->nfeatures[0] = spec->nfeatures[1] = 0;
672 for (i = 0; i < 2; i++) 675 for (i = 0; i < 2 && ! NILP (otf_spec); i++, otf_spec = XCDR (otf_spec))
673 { 676 {
674 Lisp_Object len; 677 Lisp_Object len;
675 678
676 otf_spec = XCDR (otf_spec);
677 if (NILP (otf_spec))
678 break;
679 val = XCAR (otf_spec); 679 val = XCAR (otf_spec);
680 if (NILP (val)) 680 if (NILP (val))
681 continue; 681 continue;