diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-10-22 18:38:44 +0000 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-10-23 00:20:25 +0200 |
commit | c766a05ae0354f1bc9763b725f91069975b37bd3 (patch) | |
tree | c0cef4bff8708c925a45a957c5f690c81f6ae059 /vcl/inc | |
parent | 6d3843a415bb74a00a40f312b7771db27060cf0b (diff) |
Antialias drawing is part of the font selection
At least on Windows antialias-drawing has to be selected via
LOGFONTW.lfQuality passed to CreateFont, so InitFont is too late.
Change-Id: Ie81c5f0074fdbcf1f0e74fbff31a5df663a67884
Reviewed-on: https://gerrit.libreoffice.org/62200
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/fontselect.hxx | 4 | ||||
-rw-r--r-- | vcl/inc/impfontcache.hxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/vcl/inc/fontselect.hxx b/vcl/inc/fontselect.hxx index 51f70997ac53..e021f7a0c775 100644 --- a/vcl/inc/fontselect.hxx +++ b/vcl/inc/fontselect.hxx @@ -37,8 +37,8 @@ class Size; class VCL_DLLPUBLIC FontSelectPattern : public FontAttributes { public: - FontSelectPattern( const vcl::Font&, const OUString& rSearchName, - const Size&, float fExactHeight ); + FontSelectPattern(const vcl::Font&, const OUString& rSearchName, + const Size&, float fExactHeight, bool bNonAntialias = false); #ifdef _WIN32 FontSelectPattern( const PhysicalFontFace&, const Size&, float fExactHeight, int nOrientation, bool bVertical ); diff --git a/vcl/inc/impfontcache.hxx b/vcl/inc/impfontcache.hxx index ee39883f2199..25bc970c97a9 100644 --- a/vcl/inc/impfontcache.hxx +++ b/vcl/inc/impfontcache.hxx @@ -82,8 +82,8 @@ public: ImplFontCache(); ~ImplFontCache(); - rtl::Reference<LogicalFontInstance> GetFontInstance( PhysicalFontCollection const *, - const vcl::Font&, const Size& rPixelSize, float fExactHeight); + rtl::Reference<LogicalFontInstance> GetFontInstance(PhysicalFontCollection const *, + const vcl::Font&, const Size& rPixelSize, float fExactHeight, bool bNonAntialias = false); rtl::Reference<LogicalFontInstance> GetGlyphFallbackFont( PhysicalFontCollection const *, FontSelectPattern&, LogicalFontInstance* pLogicalFont, int nFallbackLevel, OUString& rMissingCodes ); |