summaryrefslogtreecommitdiff
path: root/vcl/quartz
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2015-12-31 14:30:49 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2015-12-31 11:11:55 +0000
commita74a04f98180edc577d31598bc88990d41ef02c7 (patch)
tree99398ef1ab9af05eb39d4a56d234f901d8368048 /vcl/quartz
parent23ae179392ace4d5b23b152675c60722beddfdab (diff)
vcl: create accessor functions for ImplDevFontAttributes
Change-Id: I0494a1db1a1e5c164bd5da2d0a221a8db6c494d6 Reviewed-on: https://gerrit.libreoffice.org/21016 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'vcl/quartz')
-rw-r--r--vcl/quartz/ctfonts.cxx10
-rw-r--r--vcl/quartz/salgdi.cxx4
2 files changed, 7 insertions, 7 deletions
diff --git a/vcl/quartz/ctfonts.cxx b/vcl/quartz/ctfonts.cxx
index a5882ca717d8..1b7fe09fb999 100644
--- a/vcl/quartz/ctfonts.cxx
+++ b/vcl/quartz/ctfonts.cxx
@@ -277,9 +277,9 @@ ImplDevFontAttributes DevFontFromCTFontDescriptor( CTFontDescriptorRef pFD, bool
{
// all CoreText fonts are device fonts that can rotate just fine
ImplDevFontAttributes rDFA;
- rDFA.mbOrientation = true;
- rDFA.mbDevice = true;
- rDFA.mnQuality = 0;
+ rDFA.SetOrientationFlag( true );
+ rDFA.SetBuiltInFontFlag( true );
+ rDFA.SetQuality( 0 );
// reset the font attributes
rDFA.SetFamilyType( FAMILY_DONTKNOW );
@@ -290,8 +290,8 @@ ImplDevFontAttributes DevFontFromCTFontDescriptor( CTFontDescriptorRef pFD, bool
rDFA.SetSymbolFlag( false );
// all scalable fonts on this platform are subsettable
- rDFA.mbEmbeddable = false;
- rDFA.mbSubsettable = true;
+ rDFA.SetEmbeddableFlag( false );
+ rDFA.SetSubsettableFlag( true );
// get font name
#ifdef MACOSX
diff --git a/vcl/quartz/salgdi.cxx b/vcl/quartz/salgdi.cxx
index 32bbb4fe61a1..f8b9fbff711e 100644
--- a/vcl/quartz/salgdi.cxx
+++ b/vcl/quartz/salgdi.cxx
@@ -694,9 +694,9 @@ void AquaSalGraphics::GetGlyphWidths( const PhysicalFontFace* pFontData, bool bV
rGlyphWidths.clear();
rUnicodeEnc.clear();
- if( !pFontData->IsSubsettable() )
+ if( !pFontData->CanSubset() )
{
- if( pFontData->IsEmbeddable() )
+ if( pFontData->CanEmbed() )
{
// get individual character widths
OSL_FAIL("not implemented for non-subsettable fonts!\n");