[Libreoffice-commits] core.git: offapi/com
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Oct 18 12:46:45 UTC 2018
offapi/com/sun/star/rendering/XTextLayout.idl | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
New commits:
commit c2545303f7c0c18c4b65e50006bcedb5fe31aa4c
Author: Mark Hung <marklh9 at gmail.com>
AuthorDate: Sat Oct 6 15:23:18 2018 +0800
Commit: Mark Hung <marklh9 at gmail.com>
CommitDate: Thu Oct 18 14:45:36 2018 +0200
offapi: document queryLogicalAdvancements() for XTextLayout.
Based on implementation, explain the definition of logical
advancements for RTL and LTR case and remove incorrect part.
Logical advancements are distances to the edge instead of
widths of characters, so summing all do not yield the
total.
Change-Id: I437f490e5025c2124238e8cad506a966d7bc792c
Reviewed-on: https://gerrit.libreoffice.org/61461
Tested-by: Jenkins
Reviewed-by: Mark Hung <marklh9 at gmail.com>
diff --git a/offapi/com/sun/star/rendering/XTextLayout.idl b/offapi/com/sun/star/rendering/XTextLayout.idl
index c19fbaba26ad..dc71f857e2cf 100644
--- a/offapi/com/sun/star/rendering/XTextLayout.idl
+++ b/offapi/com/sun/star/rendering/XTextLayout.idl
@@ -113,10 +113,14 @@ interface XTextLayout : ::com::sun::star::uno::XInterface
This method returns a sequence of advancements, one for each
character in the input string (<em>not</em> for every
glyph. There might be multiple glyphs per input character, or
- multiple input characters per glyph). Adding up all
- advancements yields the total advancement of this layout. To
- manipulate the layout of a string on the level of characters,
- this method can be used to query for the layout's default
+ multiple input characters per glyph).
+
+ An advancement value is the distance of the glyph to the beginning
+ edge, which is left for LTR text and is right for RTL text. The
+ maximum of the advancements can be deemed as the width of the whole
+ text layout.
+
+ This method can be used to query for the layout's default
advancements, which can subsequently be changed and applied to
the layout via
XTextLayout::applyLogicalAdvancements().<p>
More information about the Libreoffice-commits
mailing list