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

--- Comment #3 from Rafael Lima <rafael.palma.l...@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.

Reply via email to