summaryrefslogtreecommitdiff
path: root/vcl/skia
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@aliftype.com>2022-10-29 11:37:06 +0200
committerخالد حسني <khaled@aliftype.com>2022-10-29 13:49:26 +0200
commit37d6dbd1b8f90604d58a782f7af0af1d5c8c1f89 (patch)
tree6c4a078cd4186ebc9cb09b8c83ed1ab43855a7fa /vcl/skia
parent31b5c24d6ddc4e53259d99709a0d77d19d3f35e5 (diff)
vcl: rename CoreTextStyle to CoreTextFont
Everywhere else we call them fonts. Change-Id: I70ef5957e9fb4fd03588cf23a255480ad021e083 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142010 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@aliftype.com>
Diffstat (limited to 'vcl/skia')
-rw-r--r--vcl/skia/osx/gdiimpl.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/skia/osx/gdiimpl.cxx b/vcl/skia/osx/gdiimpl.cxx
index fef8b54e3db4..604c297c6fdd 100644
--- a/vcl/skia/osx/gdiimpl.cxx
+++ b/vcl/skia/osx/gdiimpl.cxx
@@ -277,8 +277,8 @@ bool AquaSkiaSalGraphicsImpl::drawNativeControl(ControlType nType, ControlPart n
void AquaSkiaSalGraphicsImpl::drawTextLayout(const GenericSalLayout& rLayout,
bool bSubpixelPositioning)
{
- const CoreTextStyle& rStyle = *static_cast<const CoreTextStyle*>(&rLayout.GetFont());
- const vcl::font::FontSelectPattern& rFontSelect = rStyle.GetFontSelectPattern();
+ const CoreTextFont& rFont = *static_cast<const CoreTextFont*>(&rLayout.GetFont());
+ const vcl::font::FontSelectPattern& rFontSelect = rFont.GetFontSelectPattern();
int nHeight = rFontSelect.mnHeight;
int nWidth = rFontSelect.mnWidth ? rFontSelect.mnWidth : nHeight;
if (nWidth == 0 || nHeight == 0)
@@ -302,12 +302,12 @@ void AquaSkiaSalGraphicsImpl::drawTextLayout(const GenericSalLayout& rLayout,
}
CTFontRef pFont
- = static_cast<CTFontRef>(CFDictionaryGetValue(rStyle.GetStyleDict(), kCTFontAttributeName));
+ = static_cast<CTFontRef>(CFDictionaryGetValue(rFont.GetStyleDict(), kCTFontAttributeName));
sk_sp<SkTypeface> typeface = SkMakeTypefaceFromCTFont(pFont);
SkFont font(typeface);
font.setSize(nHeight);
- // font.setScaleX(rStyle.mfFontStretch); TODO
- if (rStyle.mbFauxBold)
+ // font.setScaleX(rFont.mfFontStretch); TODO
+ if (rFont.mbFauxBold)
font.setEmbolden(true);
SkFont::Edging ePreferredAliasing