diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2016-12-08 04:39:16 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2016-12-11 00:21:15 +0000 |
commit | 57d248bcec3c6ae3fa1a943a9fd92c566239787f (patch) | |
tree | 1bcd3c6e4a4f4799bfb0442f2877a3e06d61cee6 /vcl/unx/generic/gdi/cairotextrender.cxx | |
parent | Remove superfluous jargon from user visible string (diff) | |
download | core-57d248bcec3c6ae3fa1a943a9fd92c566239787f.tar.gz core-57d248bcec3c6ae3fa1a943a9fd92c566239787f.zip |
Don’t encode the vertical flag in the glyph id
Change-Id: I00485dd4d42004e4eaa163a9e6ad0a43cf98a30a
Reviewed-on: https://gerrit.libreoffice.org/31816
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
Diffstat (limited to 'vcl/unx/generic/gdi/cairotextrender.cxx')
-rw-r--r-- | vcl/unx/generic/gdi/cairotextrender.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/vcl/unx/generic/gdi/cairotextrender.cxx b/vcl/unx/generic/gdi/cairotextrender.cxx index 3d7ca1547eb5..a188ad398212 100644 --- a/vcl/unx/generic/gdi/cairotextrender.cxx +++ b/vcl/unx/generic/gdi/cairotextrender.cxx @@ -183,15 +183,10 @@ void CairoTextRender::DrawTextLayout(const CommonSalLayout& rLayout) aGlyph.y = aPos.Y(); cairo_glyphs.push_back(aGlyph); - switch (pGlyph->maGlyphId & GF_ROTMASK) - { - case GF_ROTL: // left - glyph_extrarotation.push_back(1); - break; - default: - glyph_extrarotation.push_back(0); - break; - } + if (pGlyph->IsVertical()) + glyph_extrarotation.push_back(1); + else + glyph_extrarotation.push_back(0); } if (cairo_glyphs.empty()) |