Hi,

Line spacing should be taken from under laying FreeType library,  because it
counts for linegap.

+#if 0
     m_dLineSpacing        = (static_cast<double>(m_pFace->ascender +
abs(m_pFace->descender))
                              / m_pFace->units_per_EM);
+#else
+    m_dLineSpacing        = (static_cast<double>(m_pFace->height) /
m_pFace->units_per_EM);
+#endif

For some monospaced fonts, (ae: "ocraext.ttf"), width array after reduction
can be empty, as all chars have same width.


Regards,
Nenad

Attachment: podofo-font.patch
Description: Binary data

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to