From 0e89a49f67f58e0942ed4aea393ac37e22d9e12d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 5 Jun 2013 15:59:50 +0100 Subject: [PATCH] Related: rhbz#968892 discard impossible languages for oriya script fallback Change-Id: I2fa1a127fbd2f905a89f0c30898ad56099fa8df1 --- vcl/generic/fontmanager/fontconfig.cxx | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/vcl/generic/fontmanager/fontconfig.cxx b/vcl/generic/fontmanager/fontconfig.cxx index ff471fa..a305095 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; -- 1.8.1.4