diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-20 11:17:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-20 11:53:18 +0100 |
commit | e12ba2eddc827e39444f5efe6107d8afe1f7aaff (patch) | |
tree | 4510c21ddbe5da9d948e9ef3253e5321a3234d9f /include | |
parent | eb7aa9f1fa58ff43d4a974aec868f627755ce152 (diff) |
Resolves: fdo#85006 limit script stripping to known suffixes
Change-Id: I276535b007bbb55555148d5937076b86da5de825
Diffstat (limited to 'include')
-rw-r--r-- | include/unotools/fontdefs.hxx | 9 |
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 |