summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMark Hung <marklh9@gmail.com>2021-05-02 15:12:46 +0800
committerMark Hung <marklh9@gmail.com>2021-05-05 16:06:15 +0200
commitdd0d0b44fd1c6c0292d7b2eb3f5cf2baa21e4481 (patch)
tree4acf78cce5976019116b99cfa4830074eea223ce /chart2
parentbb9a3f1cd2912b836deb9f73c2010bf03a1438c9 (diff)
vcl: adjust LayoutText() for vertical writing.
Revert 58af692e2814 "tdf#111967 translate offsets so it is relative to vorigin", which use hb_font_add_glyph_origin_for_direction to change the origin for vertical writing. This caused major problem in Y-axis. For X-axis, align the baseline of the vertical run to the center of the rotated horizontal run, by adding "(ascender + descener) / 2. Besides the alignment mentioned above, underlying text rendering code should be able to render properly based on the positions that Harfbuzz API creates. Change-Id: Ic1ef1f734686d0e61c4b2a6bf7feb7c870bba84f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115014 Tested-by: Jenkins Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'chart2')
0 files changed, 0 insertions, 0 deletions