summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2014-08-12 19:25:21 +0300
committerKhaled Hosny <khaledhosny@eglug.org>2014-08-12 19:29:43 +0300
commit56dc7aecc3194dac8012ebc252fb893125f64ebc (patch)
tree5603455333a0d046abac184fc4ca25ad080d1dad
parent13d4f7b800a9f35717ed91f330b38513e0db4bc6 (diff)
Related: fdo#82259 not all STIX are symbol fonts
The new "STIX" and "STIX Math" are regular fonts, as well as the old "STIXGeneral", so narrow the match a bit. Change-Id: I82341c3e9e5dd4e0323bf76096cba8890a82f0c7
-rw-r--r--svtools/source/misc/sampletext.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/svtools/source/misc/sampletext.cxx b/svtools/source/misc/sampletext.cxx
index dd26f807c28d..b09996063d00 100644
--- a/svtools/source/misc/sampletext.cxx
+++ b/svtools/source/misc/sampletext.cxx
@@ -42,7 +42,10 @@ bool isSymbolFont(const Font &rFont)
rFont.GetName().equalsIgnoreAsciiCase("MusiSync") ||
rFont.GetName().equalsIgnoreAsciiCase("stmary10") ||
rFont.GetName().equalsIgnoreAsciiCase("Symbol") ||
- rFont.GetName().startsWith("STIX") ||
+ rFont.GetName().startsWith("STIXIntegrals") ||
+ rFont.GetName().startsWith("STIXNonUnicode") ||
+ rFont.GetName().startsWith("STIXSize") ||
+ rFont.GetName().startsWith("STIXVariants") ||
isOpenSymbolFont(rFont);
}