>
>
> 1. I would need to know the horizontal displacement of a glyph and I am
> using GetGlyphWidth(), if that is correct what about the vertical
> displacement?
>
If I am not wrong fonts in pdf have defined only widths. But I guess height
could be in font file or can be calculated from glyph vector
representation. Would not be enough to use font size as general height?
> 2. What is the correct way to determine, given the PdfString, the
> GlyphId(s) contained within it ?
>
>
If you mean that you have PdfString with some text for example obtained in
this way from utf8:
PdfString text(reinterpret_cast<const pdf_utf8*>("Abc"));
And you have instance of PdfEncoding and PdfFont then in order to get
glyphs can be called
PdfEncoding::ConvertToEncoding( const PdfString & rString, const PdfFont*
pFont )
This is used in PdfFont::WriteStringToStream to generate hex encoded
parameter for Tj operator and is used for example in PdfPainter::DrawText.
But using PdfEncoding and PdfFont loaded from pdf has still some bugs:
https://sourceforge.net/p/podofo/mailman/message/36484599/
https://sourceforge.net/p/podofo/mailman/message/36488037/
> Thanks,
> Pietro.
>
>
>
>
>
>
> _______________________________________________
> Podofo-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/podofo-users
>
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users