diff options
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/misc/sampletext.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/svtools/source/misc/sampletext.cxx b/svtools/source/misc/sampletext.cxx index b3a96864e2fb..59da7c6ffd6e 100644 --- a/svtools/source/misc/sampletext.cxx +++ b/svtools/source/misc/sampletext.cxx @@ -103,12 +103,6 @@ static UScriptCode lcl_getHardCodedScriptNameForFont (const OutputDevice &rDevic return USCRIPT_INVALID_CODE; } -bool isOpenSymbolFont(const vcl::Font &rFont) -{ - return rFont.GetFamilyName().equalsIgnoreAsciiCase("starsymbol") || - rFont.GetFamilyName().equalsIgnoreAsciiCase("opensymbol"); -} - bool isSymbolFont(const vcl::Font &rFont) { return (rFont.GetCharSet() == RTL_TEXTENCODING_SYMBOL) || @@ -136,7 +130,7 @@ bool isSymbolFont(const vcl::Font &rFont) rFont.GetFamilyName().startsWith("STIXNonUnicode") || rFont.GetFamilyName().startsWith("STIXSize") || rFont.GetFamilyName().startsWith("STIXVariants") || - isOpenSymbolFont(rFont); + IsStarSymbol(rFont.GetFamilyName()); } bool canRenderNameOfSelectedFont(OutputDevice &rDevice) @@ -161,7 +155,7 @@ OUString makeShortRepresentativeSymbolTextForSelectedFont(OutputDevice &rDevice) return OUString(aImplAdobeSymbolText); } - const bool bOpenSymbol = isOpenSymbolFont(rDevice.GetFont()); + const bool bOpenSymbol = IsStarSymbol(rDevice.GetFont().GetFamilyName()); if (!bOpenSymbol) { |