summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2016-11-24 01:12:17 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2017-12-06 20:41:30 -0500
commitc8faf047b50d0661e943f522b1a9777c1e81347d (patch)
treea8ba4d59cbe9f4e6dff8dc7623dce6ca887db958
parent32e1b1510665dba5d8a8548ec611fc41ff5966a6 (diff)
DisableGlyphProcessing flag is never set now
Change-Id: I4a56c5d7490dd78f5cb72f2b821fb43c93f64b2d Reviewed-on: https://gerrit.libreoffice.org/31223 Reviewed-by: Khaled Hosny <khaledhosny@eglug.org> Tested-by: Khaled Hosny <khaledhosny@eglug.org> (cherry picked from commit 8c173ce9ba4d90770cd85b148fe3122a097396a7)
-rw-r--r--include/vcl/outdev.hxx3
-rw-r--r--vcl/source/gdi/sallayout.cxx1
-rw-r--r--vcl/unx/generic/gdi/cairotextrender.cxx13
-rw-r--r--vcl/unx/generic/print/genpspgraphics.cxx18
4 files changed, 9 insertions, 26 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx
index d00260781468..5e71bf1dcab9 100644
--- a/include/vcl/outdev.hxx
+++ b/include/vcl/outdev.hxx
@@ -141,13 +141,12 @@ enum class SalLayoutFlags
EnableLigatures = 0x0200,
SubstituteDigits = 0x0400,
KashidaJustification = 0x0800,
- DisableGlyphProcessing = 0x1000,
ForFallback = 0x2000,
DrawBullet = 0x4000,
};
namespace o3tl
{
- template<> struct typed_flags<SalLayoutFlags> : is_typed_flags<SalLayoutFlags, 0x7f77> {};
+ template<> struct typed_flags<SalLayoutFlags> : is_typed_flags<SalLayoutFlags, 0x6f77> {};
}
typedef std::vector< Rectangle > MetricVector;
diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx
index 0034bca78b7a..92c5934b618e 100644
--- a/vcl/source/gdi/sallayout.cxx
+++ b/vcl/source/gdi/sallayout.cxx
@@ -77,7 +77,6 @@ std::ostream &operator <<(std::ostream& s, ImplLayoutArgs &rArgs)
TEST(EnableLigatures);
TEST(SubstituteDigits);
TEST(KashidaJustification);
- TEST(DisableGlyphProcessing);
TEST(ForFallback);
#undef TEST
s << "}";
diff --git a/vcl/unx/generic/gdi/cairotextrender.cxx b/vcl/unx/generic/gdi/cairotextrender.cxx
index ea5ab47d609e..5109470e8866 100644
--- a/vcl/unx/generic/gdi/cairotextrender.cxx
+++ b/vcl/unx/generic/gdi/cairotextrender.cxx
@@ -478,17 +478,12 @@ bool CairoTextRender::GetGlyphOutline( sal_GlyphId aGlyphId,
return false;
}
-SalLayout* CairoTextRender::GetTextLayout( ImplLayoutArgs& rArgs, int nFallbackLevel )
+SalLayout* CairoTextRender::GetTextLayout(ImplLayoutArgs& /*rArgs*/, int nFallbackLevel)
{
- SalLayout* pLayout = nullptr;
+ if (mpFreetypeFont[nFallbackLevel])
+ return new CommonSalLayout(*mpFreetypeFont[nFallbackLevel]);
- if( mpFreetypeFont[ nFallbackLevel ]
- && !(rArgs.mnFlags & SalLayoutFlags::DisableGlyphProcessing) )
- {
- pLayout = new CommonSalLayout(*mpFreetypeFont[nFallbackLevel]);
- }
-
- return pLayout;
+ return nullptr;
}
#if ENABLE_CAIRO_CANVAS
diff --git a/vcl/unx/generic/print/genpspgraphics.cxx b/vcl/unx/generic/print/genpspgraphics.cxx
index 43fd6e4554cf..9d0fc990b30b 100644
--- a/vcl/unx/generic/print/genpspgraphics.cxx
+++ b/vcl/unx/generic/print/genpspgraphics.cxx
@@ -946,22 +946,12 @@ bool GenPspGraphics::GetGlyphOutline( sal_GlyphId aGlyphId,
return false;
}
-SalLayout* GenPspGraphics::GetTextLayout( ImplLayoutArgs& rArgs, int nFallbackLevel )
+SalLayout* GenPspGraphics::GetTextLayout(ImplLayoutArgs& /*rArgs*/, int nFallbackLevel)
{
- if( nFallbackLevel > 0 )
- rArgs.mnFlags &= ~SalLayoutFlags::DisableGlyphProcessing;
-
- GenericSalLayout* pLayout = nullptr;
-
- if( m_pFreetypeFont[ nFallbackLevel ]
- && !(rArgs.mnFlags & SalLayoutFlags::DisableGlyphProcessing) )
- {
- pLayout = new PspCommonSalLayout(*m_pPrinterGfx, *m_pFreetypeFont[nFallbackLevel]);
- }
+ if (m_pFreetypeFont[nFallbackLevel])
+ return new PspCommonSalLayout(*m_pPrinterGfx, *m_pFreetypeFont[nFallbackLevel]);
else
- pLayout = new PspFontLayout( *m_pPrinterGfx );
-
- return pLayout;
+ return new PspFontLayout(*m_pPrinterGfx);
}
bool GenPspGraphics::CreateFontSubset(