summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-06-05 15:59:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-06-05 16:04:05 +0100
commit0e89a49f67f58e0942ed4aea393ac37e22d9e12d (patch)
tree617ab820714615f6b6a098c1fcbad52ebafc6bc6
parent830cc95abb7911f5f6f0ba8c71ef46f3ca8ef383 (diff)
Related: rhbz#968892 discard impossible languages for oriya script fallback
Change-Id: I2fa1a127fbd2f905a89f0c30898ad56099fa8df1
-rw-r--r--vcl/generic/fontmanager/fontconfig.cxx28
1 files changed, 18 insertions, 10 deletions
diff --git a/vcl/generic/fontmanager/fontconfig.cxx b/vcl/generic/fontmanager/fontconfig.cxx
index ff471fae8c94..a305095240e7 100644
--- a/vcl/generic/fontmanager/fontconfig.cxx
+++ b/vcl/generic/fontmanager/fontconfig.cxx
@@ -860,19 +860,27 @@ namespace
OUString sLang = rLangTag.getLanguage();
switch (eScript)
{
+ //http://en.wiktionary.org/wiki/Category:Oriya_script_languages
+ case USCRIPT_ORIYA:
+ bIsImpossible =
+ sLang != "or" &&
+ sLang != "kxv";
+ break;
+ //http://en.wiktionary.org/wiki/Category:Telugu_script_languages
case USCRIPT_TELUGU:
- bIsImpossible = sLang != "te";
+ bIsImpossible =
+ sLang != "te" &&
+ sLang != "gon" &&
+ sLang != "kfc";
break;
+ //http://en.wiktionary.org/wiki/Category:Bengali_script_languages
case USCRIPT_BENGALI:
- bIsImpossible = sLang != "bn" &&
- sLang != "as" && sLang != "mkb" &&
- sLang != "kfv" && sLang != "ccp" &&
- sLang != "tnv" && sLang != "ctg" &&
- sLang != "haj" && sLang != "ksy" &&
- sLang != "rkt" && sLang != "rjs" &&
- sLang != "rhg" && sLang != "syl" &&
- sLang != "kyv" && sLang != "zrg" &&
- sLang != "nhh";
+ bIsImpossible =
+ sLang != "bn" &&
+ sLang != "as" &&
+ sLang != "bpy" &&
+ sLang != "ctg" &&
+ sLang != "sa";
break;
default:
break;