diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-13 08:59:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-13 09:06:00 +0000 |
commit | 5678e845cc58933964729b908d649e10a11c220a (patch) | |
tree | cf9db020498f0e077e5e68d7798486a6c8d4eb6e /vcl/generic | |
parent | 210177dc046e1817cb024d02fae08dd005667f6f (diff) |
callcatcher: update list, getXLFD is now unused
Diffstat (limited to 'vcl/generic')
-rw-r--r-- | vcl/generic/fontmanager/fontmanager.cxx | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/vcl/generic/fontmanager/fontmanager.cxx b/vcl/generic/fontmanager/fontmanager.cxx index 63145f987647..450a9cec2479 100644 --- a/vcl/generic/fontmanager/fontmanager.cxx +++ b/vcl/generic/fontmanager/fontmanager.cxx @@ -1734,82 +1734,6 @@ void PrintFontManager::getFontAttributesFromXLFD( PrintFont* pFont, const std::l // ------------------------------------------------------------------------- -OString PrintFontManager::getXLFD( PrintFont* pFont ) const -{ - if( pFont->m_eType == fonttype::Type1 ) - { - if( static_cast<Type1FontFile*>(pFont)->m_aXLFD.getLength() ) - return static_cast<Type1FontFile*>(pFont)->m_aXLFD; - } - if( pFont->m_eType == fonttype::TrueType ) - { - if( static_cast<TrueTypeFontFile*>(pFont)->m_aXLFD.getLength() ) - return static_cast<TrueTypeFontFile*>(pFont)->m_aXLFD; - } - - OStringBuffer aXLFD( 128 ); - - aXLFD.append( "-misc-" ); - ByteString aFamily(rtl::OUStringToOString(m_pAtoms->getString( ATOM_FAMILYNAME, pFont->m_nFamilyName ), RTL_TEXTENCODING_UTF8)); - aFamily.SearchAndReplaceAll( '-',' ' ); - aFamily.SearchAndReplaceAll( '?',' ' ); - aFamily.SearchAndReplaceAll( '*',' ' ); - aXLFD.append( OString( aFamily ) ); - aXLFD.append( '-' ); - switch( pFont->m_eWeight ) - { - case WEIGHT_THIN: aXLFD.append("thin");break; - case WEIGHT_ULTRALIGHT: aXLFD.append("ultralight");break; - case WEIGHT_LIGHT: aXLFD.append("light");break; - case WEIGHT_SEMILIGHT: aXLFD.append("semilight");break; - case WEIGHT_NORMAL: aXLFD.append("normal");break; - case WEIGHT_MEDIUM: aXLFD.append("medium");break; - case WEIGHT_SEMIBOLD: aXLFD.append("semibold");break; - case WEIGHT_BOLD: aXLFD.append("bold");break; - case WEIGHT_ULTRABOLD: aXLFD.append("ultrabold");break; - case WEIGHT_BLACK: aXLFD.append("black");break; - default: break; - } - aXLFD.append('-'); - switch( pFont->m_eItalic ) - { - case ITALIC_NONE: aXLFD.append('r');break; - case ITALIC_OBLIQUE: aXLFD.append('o');break; - case ITALIC_NORMAL: aXLFD.append('i');break; - default: break; - } - aXLFD.append('-'); - switch( pFont->m_eWidth ) - { - case WIDTH_ULTRA_CONDENSED: aXLFD.append("ultracondensed");break; - case WIDTH_EXTRA_CONDENSED: aXLFD.append("extracondensed");break; - case WIDTH_CONDENSED: aXLFD.append("condensed");break; - case WIDTH_SEMI_CONDENSED: aXLFD.append("semicondensed");break; - case WIDTH_NORMAL: aXLFD.append("normal");break; - case WIDTH_SEMI_EXPANDED: aXLFD.append("semiexpanded");break; - case WIDTH_EXPANDED: aXLFD.append("expanded");break; - case WIDTH_EXTRA_EXPANDED: aXLFD.append("extraexpanded");break; - case WIDTH_ULTRA_EXPANDED: aXLFD.append("ultraexpanded");break; - default: break; - } - aXLFD.append("-utf8-0-0-0-0-"); - aXLFD.append( pFont->m_ePitch == PITCH_FIXED ? "m" : "p" ); - aXLFD.append("-0-"); - const char* pEnc = rtl_getBestUnixCharsetFromTextEncoding( pFont->m_aEncoding ); - if( ! pEnc ) - { - if( pFont->m_aEncoding == RTL_TEXTENCODING_ADOBE_STANDARD ) - pEnc = "adobe-standard"; - else - pEnc = "iso8859-1"; - } - aXLFD .append( pEnc ); - - return aXLFD.makeStringAndClear(); -} - -// ------------------------------------------------------------------------- - OUString PrintFontManager::convertTrueTypeName( void* pRecord ) const { NameRecord* pNameRecord = (NameRecord*)pRecord; |