summaryrefslogtreecommitdiff
path: root/vcl/generic/fontmanager/fontmanager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/generic/fontmanager/fontmanager.cxx')
-rw-r--r--vcl/generic/fontmanager/fontmanager.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/generic/fontmanager/fontmanager.cxx b/vcl/generic/fontmanager/fontmanager.cxx
index 636528a6eff6..945899763f21 100644
--- a/vcl/generic/fontmanager/fontmanager.cxx
+++ b/vcl/generic/fontmanager/fontmanager.cxx
@@ -451,8 +451,7 @@ bool PrintFontManager::PrintFont::readAfmMetrics( MultiAtomProvider* pProvider,
{
int nLen = aFamily.getLength();
if( nLen > 2 &&
- aFamily.getStr()[ nLen-2 ] == 'G' &&
- aFamily.getStr()[ nLen-1 ] == 'B' &&
+ aFamily.endsWith("GB") &&
pInfo->numOfChars > 255 )
{
m_aEncoding = RTL_TEXTENCODING_GBK;