From e12ba2eddc827e39444f5efe6107d8afe1f7aaff Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 20 Oct 2014 11:17:56 +0100 Subject: Resolves: fdo#85006 limit script stripping to known suffixes Change-Id: I276535b007bbb55555148d5937076b86da5de825 --- include/unotools/fontdefs.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') 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 -- cgit