summaryrefslogtreecommitdiff
path: root/vcl/quartz
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-11-07 09:09:38 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-11-07 09:09:38 +0100
commit02cf121aaba00a4ef7f8fe44203838e0fa1cf738 (patch)
treecfbd7c9aeb4f83867e43265947e8400b493ea8f9 /vcl/quartz
parent3f7fc4e5d23c17848c247ad48c5ec579939093c6 (diff)
-Werror,-Wdeprecated-declarations
Change-Id: Ia54f11b799fefcddcbf3b9f49e806bfc0895773f
Diffstat (limited to 'vcl/quartz')
-rw-r--r--vcl/quartz/ctfonts.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/quartz/ctfonts.cxx b/vcl/quartz/ctfonts.cxx
index 735a30b689c9..20fba1f90f21 100644
--- a/vcl/quartz/ctfonts.cxx
+++ b/vcl/quartz/ctfonts.cxx
@@ -148,8 +148,12 @@ void CoreTextStyle::GetFontMetric( ImplFontMetricDataRef& rxFontMetric ) const
CGGlyph nKashidaGid = 0;
if (CTFontGetGlyphsForCharacters(aCTFontRef, &nKashidaCh, &nKashidaGid, 1))
{
+SAL_WNODEPRECATED_DECLARATIONS_PUSH
+ // 'kCTFontHorizontalOrientation' is deprecated: first deprecated in
+ // macOS 10.11
double nKashidaAdv = CTFontGetAdvancesForGlyphs(aCTFontRef,
kCTFontHorizontalOrientation, &nKashidaGid, nullptr, 1);
+SAL_WNODEPRECATED_DECLARATIONS_POP
rxFontMetric->SetMinKashida(lrint(nKashidaAdv));
}
}