diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-21 15:29:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-21 21:27:43 +0200 |
commit | 3a6f510c3e3bc269b2816cd6cca57f81eb7c4ae3 (patch) | |
tree | 58b10df9bb6f353230a5e7a64a858ae8dc90613c /vcl | |
parent | cd8dd48bf89d800c012afb04b16281ed8b261de9 (diff) |
use ImplDoSetFont instead of SetFont
i.e. the same pattern as CreateFontSubset and GetGlyphWidths
Change-Id: Ie90d7279c4debe47b4d2739e12cdae86f4e70517
Reviewed-on: https://gerrit.libreoffice.org/59403
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/win/gdi/salfont.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/win/gdi/salfont.cxx b/vcl/win/gdi/salfont.cxx index 7ea455715136..c471c0c3be1f 100644 --- a/vcl/win/gdi/salfont.cxx +++ b/vcl/win/gdi/salfont.cxx @@ -1777,7 +1777,10 @@ const void* WinSalGraphics::GetEmbedFontData(const PhysicalFontFace* pFont, long FontSelectPattern aIFSD( *pFont, Size(0,1000), 1000.0, 0, false ); ScopedFont aOldFont(*this); - SetFont( &aIFSD, 0 ); + + float fScale = 0.0; + HFONT hOldFont = nullptr; + ImplDoSetFont(&aIFSD, pFont, fScale, hOldFont); // get the raw font file data RawFontData aRawFontData( getHDC() ); |