Hi, Dharma!

Font alignment algorithm uses cap height as top border and baseline as bottom border (https://en.wikipedia.org/wiki/Typeface#Font_metrics). Try printing something like "HELLO, WORLD" and I think it will be aligned in the way
you are expecting it to be.
Also, to disable letters descent parts (as bottom part of 'g' in your case) cropping you can use "bClip" parameter
of DrawMultilineText (it should be present in more recent PoDoFo versions).

Best Regards,
cybevnm

On 05/30/2013 11:54 AM, dharma teja wrote:
Hi,
has anybody faced vertical alignment problem with PoDoFo::PdfPainter::DrawMultiLineText(), this is what I get.
I think this is some how not working correctly:
text in bottom alignment is cropped,
text is not in center for center alignment and
text is not on top for top alignment as it can be seen in the figure below which I have cropped from pdf.
 
Inline image 2
Is it just me or is anybody else is facing this.

Thanks for help.

Regards,
Dharma
 


------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1


_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users


------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to