summaryrefslogtreecommitdiff
path: root/include/unotools/fontdefs.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-20 11:17:56 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-20 11:53:18 +0100
commite12ba2eddc827e39444f5efe6107d8afe1f7aaff (patch)
tree4510c21ddbe5da9d948e9ef3253e5321a3234d9f /include/unotools/fontdefs.hxx
parenteb7aa9f1fa58ff43d4a974aec868f627755ce152 (diff)
Resolves: fdo#85006 limit script stripping to known suffixes
Change-Id: I276535b007bbb55555148d5937076b86da5de825
Diffstat (limited to 'include/unotools/fontdefs.hxx')
-rw-r--r--include/unotools/fontdefs.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/unotools/fontdefs.hxx b/include/unotools/fontdefs.hxx
index 7ac715eb829b..e0601063ac4b 100644
--- a/include/unotools/fontdefs.hxx
+++ b/include/unotools/fontdefs.hxx
@@ -83,6 +83,15 @@ UNOTOOLS_DLLPUBLIC OUString GetNextFontToken( const OUString& rTokenStr, sal_Int
UNOTOOLS_DLLPUBLIC OUString GetEnglishSearchFontName( const OUString& rName );
+/** Strip any "script font suffix" from the font name
+
+ Related: fdo#49271 RTF files often contain weird-ass
+ Win 3.1/Win95 style fontnames which attempt to put the
+ charset encoding into the filename
+ http://www.webcenter.ru/~kazarn/eng/fonts_ttf.htm
+*/
+UNOTOOLS_DLLPUBLIC OUString StripScriptFromName(const OUString& rName);
+
/** Determine if the font is the special Star|Open Symbol font
@param rFontName