summaryrefslogtreecommitdiff
path: root/vcl/inc/skia
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-03-17 11:53:26 +0100
committerLuboš Luňák <l.lunak@collabora.com>2020-03-18 10:48:35 +0100
commit11847cc5fd22c9b98fd9c2cf1389eee6e404a4fb (patch)
tree1ba38790388aead46a64a2371862604821e9f4b9 /vcl/inc/skia
parent271e8c99a2a1e28b7eb9fdc5fe16f8be1e8ee763 (diff)
fix glyph rotation for Skia text rendering on Windows
The makes the chart descriptions in tdf#114209 and e.g. Japanese from the document from tdf#126169 be rotated correctly, Change-Id: I09a739fea7629000f3f49e417531bc47ba99c68f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90610 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/inc/skia')
-rw-r--r--vcl/inc/skia/gdiimpl.hxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/vcl/inc/skia/gdiimpl.hxx b/vcl/inc/skia/gdiimpl.hxx
index a7de1cfc4872..630b7a138844 100644
--- a/vcl/inc/skia/gdiimpl.hxx
+++ b/vcl/inc/skia/gdiimpl.hxx
@@ -203,14 +203,20 @@ public:
void drawBitmap(const SalTwoRect& rPosAry, const SkBitmap& aBitmap,
SkBlendMode eBlendMode = SkBlendMode::kSrcOver);
- void drawGenericLayout(const GenericSalLayout& layout, Color textColor, const SkFont& font);
+ enum class GlyphOrientation
+ {
+ Apply,
+ Ignore
+ };
+ void drawGenericLayout(const GenericSalLayout& layout, Color textColor, const SkFont& font,
+ GlyphOrientation glyphOrientation);
protected:
// To be called before any drawing.
void preDraw();
// To be called after any drawing.
void postDraw();
- // The canvas to drawn to. Will be diverted to a temporary for Xor mode.
+ // The canvas to draw to. Will be diverted to a temporary for Xor mode.
SkCanvas* getDrawCanvas() { return mXorMode ? getXorCanvas() : mSurface->getCanvas(); }
virtual void createSurface();