VCL: How to know the width of a text to be drawn

Rodolfo rodolforg at gmail.com
Thu Jan 31 03:38:10 PST 2013


I'm drawing a comment control and I need to know two things:

1. The text width (to move text to right side in RTL systems)
2. The text line base (to align it to an horizontal arrow I draw)

By now, I only know how to draw a text with OutputDevice::DrawText(),
so I can't make
my hack properly.

Thank you in advance.

Rodolfo


More information about the LibreOffice mailing list