[Podofo-users] String width is incorrect when using font loaded from pdf

2018-11-28 Thread Michal Sudolsky
PdfFontMetricsObject::UnicodeCharWidth returns width for CID instead of unicode char (like does PdfFontMetricsFreetype and PdfFontMetricsBase14). Maybe it can be fixed by converting unicode char into CID using m_pEncoding->GetCIDValue (after few modifications). And implement also

[Podofo-users] Font CID widths are written as floats instead of ints

2018-11-28 Thread Michal Sudolsky
Patch attached. I changes it to way as it is used in other places like WidthExporter::update (which is seems used for font subset). In pdf reference is stated that default width (DW key) is integer, then also widths (W key) should be array of integers. But main purpose of this is that object of