diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-21 09:12:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-21 21:35:55 +0200 |
commit | 232992fa65358e7bc493c9f19f724457eed4feb5 (patch) | |
tree | 5b4b4cf64c8848f9ee99c44b7fc88a3b473e1433 /vcl/win | |
parent | 99fc650d519f78e3866ce119c7d3640a070e88c5 (diff) |
can now use just FontSelectPatternAttributes
Change-Id: I1857afa0a9aff39118ba3c242134985f865e37c1
Reviewed-on: https://gerrit.libreoffice.org/59387
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/gdi/salfont.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/vcl/win/gdi/salfont.cxx b/vcl/win/gdi/salfont.cxx index a51a06a0d4c4..3fe7b6171453 100644 --- a/vcl/win/gdi/salfont.cxx +++ b/vcl/win/gdi/salfont.cxx @@ -179,10 +179,10 @@ bool WinGlyphFallbackSubstititution::HasMissingChars(PhysicalFontFace* pFace, OU FontCharMapRef xFontCharMap = pWinFont->GetFontCharMap(); if( !xFontCharMap.is() ) { - // construct a Size structure as the parameter of constructor of class FontSelectPattern + // construct a Size structure as the parameter of constructor of class FontSelectPatternAttributes const Size aSize( pFace->GetWidth(), pFace->GetHeight() ); - // create a FontSelectPattern object for getting s LOGFONT - const FontSelectPattern aFSD( *pFace, aSize, static_cast<float>(aSize.Height()), 0, false ); + // create a FontSelectPatternAttributes object for getting s LOGFONT + const FontSelectPatternAttributes aFSD( *pFace, aSize, static_cast<float>(aSize.Height()), 0, false ); // construct log font LOGFONTW aLogFont; ImplGetLogFontFromFontSelect( mhDC, &aFSD, pFace, aLogFont ); @@ -760,7 +760,7 @@ int CALLBACK SalEnumQueryFontProcExW( const LOGFONTW*, } void ImplGetLogFontFromFontSelect( HDC hDC, - const FontSelectPattern* pFont, + const FontSelectPatternAttributes* pFont, const PhysicalFontFace* pFontFace, LOGFONTW& rLogFont ) { @@ -842,7 +842,7 @@ void ImplGetLogFontFromFontSelect( HDC hDC, } } -HFONT WinSalGraphics::ImplDoSetFont(FontSelectPattern const & i_rFont, +HFONT WinSalGraphics::ImplDoSetFont(FontSelectPatternAttributes const & i_rFont, const PhysicalFontFace * i_pFontFace, float& o_rFontScale, HFONT& o_rOldFont) @@ -1647,10 +1647,10 @@ bool WinSalGraphics::CreateFontSubset( const OUString& rToFile, { // TODO: use more of the central font-subsetting code, move stuff there if needed - // create matching FontSelectPattern + // create matching FontSelectPatternAttributes // we need just enough to get to the font file data // use height=1000 for easier debugging (to match psprint's font units) - FontSelectPattern aIFSD( *pFont, Size(0,1000), 1000.0, 0, false ); + FontSelectPatternAttributes aIFSD( *pFont, Size(0,1000), 1000.0, 0, false ); // TODO: much better solution: move SetFont and restoration of old font to caller ScopedFont aOldFont(*this); @@ -1769,9 +1769,9 @@ bool WinSalGraphics::CreateFontSubset( const OUString& rToFile, const void* WinSalGraphics::GetEmbedFontData(const PhysicalFontFace* pFont, long* pDataLen) { - // create matching FontSelectPattern + // create matching FontSelectPatternAttributes // we need just enough to get to the font file data - FontSelectPattern aIFSD( *pFont, Size(0,1000), 1000.0, 0, false ); + FontSelectPatternAttributes aIFSD( *pFont, Size(0,1000), 1000.0, 0, false ); ScopedFont aOldFont(*this); @@ -1799,9 +1799,9 @@ void WinSalGraphics::GetGlyphWidths( const PhysicalFontFace* pFont, std::vector< sal_Int32 >& rWidths, Ucs2UIntMap& rUnicodeEnc ) { - // create matching FontSelectPattern + // create matching FontSelectPatternAttributes // we need just enough to get to the font file data - FontSelectPattern aIFSD( *pFont, Size(0,1000), 1000.0, 0, false ); + FontSelectPatternAttributes aIFSD( *pFont, Size(0,1000), 1000.0, 0, false ); // TODO: much better solution: move SetFont and restoration of old font to caller ScopedFont aOldFont(*this); |