diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-12 14:47:34 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-12 05:36:04 +0000 |
commit | b4b0cc2a5eef42434444e51fda4a13fc48183aa0 (patch) | |
tree | 1061efa135f480b37c90879d7c049872d0e738eb /vcl/unx/generic/gdi/cairotextrender.cxx | |
parent | vcl: change from Impl_Font to ImplFont (diff) | |
download | core-b4b0cc2a5eef42434444e51fda4a13fc48183aa0.tar.gz core-b4b0cc2a5eef42434444e51fda4a13fc48183aa0.zip |
vcl: resplit FontAttributes from ImplFontMetricData
The change I made in commit 7b974e056df3 ("vcl: merge
ImplFontMetricData with ImplFontAttributes") was... ill-advised. For
starters, there really needs to be this split as FontSelectPattern
needs it, and PhysicalFontFace only requires the font attributes, not
the metric data.
So the merge was unfortunately, in my mind, a failure and I'm manually
backing it out now.
Change-Id: Iac38f0815f984541e2f55099c965376dd88eeb43
Reviewed-on: https://gerrit.libreoffice.org/21380
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'vcl/unx/generic/gdi/cairotextrender.cxx')
-rw-r--r-- | vcl/unx/generic/gdi/cairotextrender.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/unx/generic/gdi/cairotextrender.cxx b/vcl/unx/generic/gdi/cairotextrender.cxx index 68081938d2cb..398b756f074f 100644 --- a/vcl/unx/generic/gdi/cairotextrender.cxx +++ b/vcl/unx/generic/gdi/cairotextrender.cxx @@ -32,6 +32,7 @@ #include "unx/fc_fontoptions.hxx" #include "PhysicalFontFace.hxx" #include "impfont.hxx" +#include "impfontmetricdata.hxx" #include <config_graphite.h> #if ENABLE_GRAPHITE @@ -454,7 +455,7 @@ FontConfigFontOptions* GetFCFontOptions( const FontAttributes& rFontAttributes, } void -CairoTextRender::GetFontAttributes( FontAttributes *pFontAttributes, int nFallbackLevel ) +CairoTextRender::GetFontMetric( ImplFontMetricData *pFontMetric, int nFallbackLevel ) { if( nFallbackLevel >= MAX_FALLBACK ) return; @@ -462,7 +463,7 @@ CairoTextRender::GetFontAttributes( FontAttributes *pFontAttributes, int nFallba if( mpServerFont[nFallbackLevel] != nullptr ) { long rDummyFactor; - mpServerFont[nFallbackLevel]->FetchFontAttributes( *pFontAttributes, rDummyFactor ); + mpServerFont[nFallbackLevel]->FetchFontMetric( *pFontMetric, rDummyFactor ); } } |