diff options
author | Mark Hung <marklh9@gmail.com> | 2018-01-20 23:35:44 +0800 |
---|---|---|
committer | Mark Hung <marklh9@gmail.com> | 2018-01-21 08:43:14 +0100 |
commit | d1bc14b318c9a412a761d243085da0895a1aed4a (patch) | |
tree | ea4dbeaf9c053974e690dc8b856fb4b66638ffe5 /include/tools/svborder.hxx | |
parent | 121f6f3c79ea2dceb7cc3d61a56f5a56a1cb0d0d (diff) |
tdf#35301 Formatting ruby text on right side.
* BuildMultiPortion(): preserve room for the ruby text by
increasing the width of the last portion of the base text.
This allows the ruby portion to be selected with the base
text so that they seemd like attached to each other.
* CalcSize(): we need to be careful because the width and
height of the base text line is swapped.
* PaintMultiPortion(): render the base text on top of the
preserved room mentioned above, by shifting the position
back.
* SwRubyPortion(): RubyPortion::RIGHT is designed for
horizontal writing mode only. In vertical writing
mode it fallback to RubyPortion::ABOVE.
Change-Id: I5291e32221b6b2fc1c3e152b3a5defe857428163
Reviewed-on: https://gerrit.libreoffice.org/48244
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'include/tools/svborder.hxx')
0 files changed, 0 insertions, 0 deletions