[Libreoffice-bugs] [Bug 144542] [DOCUMENTATION] Please describe line spacing in detail

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Sep 29 22:24:23 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=144542

--- Comment #3 from Rafael Lima <rafael.palma.lima at gmail.com> ---
@Regina, can this information be found anywhere using a macro? Which property
of a Paragraph or TextPortion would store this information? I did my best
trying to find it, but was not successful.

I was trying to instantiate the Canvas service [1] to get a "XCanvasFont"
object [2] and call its getFontMetrics() object. Maybe this would reveal the
desired information.

This would return a FontMetrics struct [3] which contains information about
leading. However, I was not successful instantiating the Canvas service through
a macro, so the method was unreachable.

[1]
https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1rendering_1_1Canvas.html

[2]
https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1rendering_1_1XCanvasFont.html

[3]
https://api.libreoffice.org/docs/idl/ref/structcom_1_1sun_1_1star_1_1rendering_1_1FontMetrics.html

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210929/fe944871/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list