diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/arabic/arabic-x.c | 4 | ||||
-rw-r--r-- | modules/arabic/arabic.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/modules/arabic/arabic-x.c b/modules/arabic/arabic-x.c index 385ac217..a90561c4 100644 --- a/modules/arabic/arabic-x.c +++ b/modules/arabic/arabic-x.c @@ -130,18 +130,20 @@ find_unic_font (PangoFont *font,char* charsets[],PangoXSubfont* rfonts) { rfonts[0] = subfonts[i]; result = 2; + break; } if ( pango_x_has_glyph /* Shadda+Kasra */ (font,PANGO_X_MAKE_GLYPH(subfonts[i],0xFC62))) { result = 3; /* extra vowels in font, hopefully */ + break; } if ( pango_x_has_glyph /* Lam-Min alone */ (font,PANGO_X_MAKE_GLYPH(subfonts[i],0xFC42))) { result = 4; /* extra ligatures in font, hopefully */ + break; } - break; } } diff --git a/modules/arabic/arabic.c b/modules/arabic/arabic.c index 385ac217..a90561c4 100644 --- a/modules/arabic/arabic.c +++ b/modules/arabic/arabic.c @@ -130,18 +130,20 @@ find_unic_font (PangoFont *font,char* charsets[],PangoXSubfont* rfonts) { rfonts[0] = subfonts[i]; result = 2; + break; } if ( pango_x_has_glyph /* Shadda+Kasra */ (font,PANGO_X_MAKE_GLYPH(subfonts[i],0xFC62))) { result = 3; /* extra vowels in font, hopefully */ + break; } if ( pango_x_has_glyph /* Lam-Min alone */ (font,PANGO_X_MAKE_GLYPH(subfonts[i],0xFC42))) { result = 4; /* extra ligatures in font, hopefully */ + break; } - break; } } |