Hi, (my webmailer is to blame for the top-post, sorry) with the method | virtual long PoDoFo::PdfFontMetrics::GetGlyphId | ( | long | lUnicode | ) | const |
you can get the Glyph ID for a given Unicode character value, according to the documentation (are you using the newest PoDoFo?Getting it from SVN could be best.) I think this means you give it the codepoint (so no specific encoding) and get the Glyph ID if itwas found in the current font (otherwise 0 is returned). Additionally, for Base14 fonts (the standard-defined ones) you can't use names. Hope this helps, mabri From: Domonic Tom <abdom...@hotmail.com> To: "podofo-users@lists.sourceforge.net" <podofo-users@lists.sourceforge.net> Sent: Friday, 18 September 2015, 5:37 AM UTC Subject: [Podofo-users] Glyph Names? (PoDoFo::PdfFontMetrics::GetGlyphWidth) <!--#yiv1699495677 .yiv1699495677hmmessage P{margin:0px;padding:0px;}#yiv1699495677 body.yiv1699495677hmmessage{font-size:12pt;font-family:Calibri;}-->I was hoping that Podofo provided some kind of a link between characters and Glyph Names. Is there any way to do this in Podofo? I'm using the function: PoDoFo::PdfFontMetrics::GetGlyphWidth and PoDoFo::PdfFontMetrics::GetGlyphWidth ( int nGlyphId ). Obviously I will need the Glyph ID or the Glyph Name but don't know how to find either using Podofo? Is this something I will need to find using external methods or does Podofo provide a way of doing this? ------------------------------------------------------------------------------ _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users
------------------------------------------------------------------------------
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users