diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-08 13:32:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-09 08:09:12 +0000 |
commit | eecf39c6e44e25a5a78aa7b435d07a9c53c628c4 (patch) | |
tree | 605763baadb6ab14ceae1b455cbae4e7890d5bcf /vcl/quartz | |
parent | 0e9fbe1db2bb5db6fefbea265dff1b0564bfbb7a (diff) |
convert FontType to scoped enum
Change-Id: Ieb8f90be8effde5f25bc872784c3ea2177b14bf9
Reviewed-on: https://gerrit.libreoffice.org/34056
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/quartz')
-rw-r--r-- | vcl/quartz/salgdicommon.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx index db14e3699e3e..b472a4966f79 100644 --- a/vcl/quartz/salgdicommon.cxx +++ b/vcl/quartz/salgdicommon.cxx @@ -208,13 +208,13 @@ bool AquaSalGraphics::CreateFontSubset( const OUString& rToFile, { // provide the raw-CFF data to the subsetter ByteCount nCffLen = aBuffer.size(); - rInfo.LoadFont( FontSubsetInfo::CFF_FONT, &aBuffer[0], nCffLen ); + rInfo.LoadFont( FontType::CFF_FONT, &aBuffer[0], nCffLen ); // NOTE: assuming that all glyphids requested on Aqua are fully translated // make the subsetter provide the requested subset FILE* pOutFile = fopen( aToFile.getStr(), "wb" ); - bool bRC = rInfo.CreateFontSubset( FontSubsetInfo::TYPE1_PFB, pOutFile, nullptr, + bool bRC = rInfo.CreateFontSubset( FontType::TYPE1_PFB, pOutFile, nullptr, pGlyphIds, pEncoding, nGlyphCount, pGlyphWidths ); fclose( pOutFile ); return bRC; @@ -234,7 +234,7 @@ bool AquaSalGraphics::CreateFontSubset( const OUString& rToFile, // get details about the subsetted font TTGlobalFontInfo aTTInfo; ::GetTTGlobalFontInfo( pSftFont, &aTTInfo ); - rInfo.m_nFontType = FontSubsetInfo::SFNT_TTF; + rInfo.m_nFontType = FontType::SFNT_TTF; rInfo.m_aPSName = OUString( aTTInfo.psname, std::strlen(aTTInfo.psname), RTL_TEXTENCODING_UTF8 ); rInfo.m_aFontBBox = Rectangle( Point( aTTInfo.xMin, aTTInfo.yMin ), |