diff options
author | Owen Taylor <otaylor@redhat.com> | 2000-06-29 20:36:45 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2000-06-29 20:36:45 +0000 |
commit | 4e005cf17476ee08c73e7a1a2fb1133d9008be15 (patch) | |
tree | a516e407fb12f0c397d4acbd25191d93785dd1a3 /modules/arabic/mulefont.c | |
parent | 0e6409a158d9dd76a31b9eccf7c4f26c5466d082 (diff) | |
download | pango-4e005cf17476ee08c73e7a1a2fb1133d9008be15.tar.gz |
New version from Karl Koehler merged with the changes for the GLib unicode
Thu Jun 29 16:35:41 2000 Owen Taylor <otaylor@redhat.com>
* modules/arabic/{*.c,Makefile.am}: New version from Karl
Koehler merged with the changes for the GLib unicode functions.
Diffstat (limited to 'modules/arabic/mulefont.c')
-rw-r--r-- | modules/arabic/mulefont.c | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/modules/arabic/mulefont.c b/modules/arabic/mulefont.c index 6766b7c1..6bfc6b0b 100644 --- a/modules/arabic/mulefont.c +++ b/modules/arabic/mulefont.c @@ -252,8 +252,35 @@ arabic_mule_recode(PangoXSubfont* subfont,int* glyph,PangoXSubfont* mulefonts) } else { - *subfont = mulefonts[1]; - *glyph = 0x26; /* we don't have this thing -- use a dot */ + switch(letter){ + /* Gaf */ + case 0xFB92: *subfont = mulefonts[2]; *glyph = 0x6B; break; + case 0xFB93: *subfont = mulefonts[2]; *glyph = 0x6E; break; + case 0xFB94: *subfont = mulefonts[2]; *glyph = 0x6C; break; + case 0xFB95: *subfont = mulefonts[2]; *glyph = 0x6D; break; + /* persian Kaf -- the first to forms are wrong ... */ + case 0xFB8E: *subfont = mulefonts[2]; *glyph = 0x55; break; + case 0xFB8F: *subfont = mulefonts[2]; *glyph = 0x58; break; + case 0xFB90: *subfont = mulefonts[2]; *glyph = 0x56; break; + case 0xFB91: *subfont = mulefonts[2]; *glyph = 0x57; break; + /* Tcheh */ + case 0xFB7A: *subfont = mulefonts[2]; *glyph = 0x67; break; + case 0xFB7B: *subfont = mulefonts[2]; *glyph = 0x6A; break; + case 0xFB7C: *subfont = mulefonts[2]; *glyph = 0x68; break; + case 0xFB7D: *subfont = mulefonts[2]; *glyph = 0x69; break; + /* Pe */ + case 0xFB56: *subfont = mulefonts[2]; *glyph = 0x65; break; + case 0xFB57: *subfont = mulefonts[2]; *glyph = 0x66; break; + case 0xFB58: *subfont = mulefonts[1]; *glyph = 0x66; break; + case 0xFB59: *subfont = mulefonts[1]; *glyph = 0x67; break; + /* farsi Jeh */ + case 0xFB8A: *subfont = mulefonts[1]; *glyph = 0x68; break; + case 0xFB8B: *subfont = mulefonts[1]; *glyph = 0x69; break; + default: + *subfont = mulefonts[1]; + *glyph = 0x26; /* we don't have this thing -- use a dot */ + break; + } } } |