On 17.5.2016 11:20, Dominik Seichter wrote: > I cannot retest font substitution at the moment, so I cannot reproduce this > right now. I did some changes regarding variable initializations in that > code, but I assume that should not break something. Still, this could be > the first hint, when analyzing this issue.
Hi, I found out that the change in revision 1714 broke it: http://sourceforge.net/p/podofo/code/1714 Namely this part: if (!m_differences.ContainsUnicodeValue(val, *pCur)) - *pCur = static_cast<const PdfSimpleEncoding *>(pEncoding)->GetUnicodeCharCode(val); + { + *pCur = static_cast<const PdfSimpleEncoding *>(pEncoding)->GetUnicodeCharCode(*pCur); + } The problem is when the m_differences doesn't contain the unicode value (variable 'val'), then it doesn't set *pCur, which leads to incorrect letters being written into the text (inside PdfPainter::DrawText for me). This looks like a typo and if no objection is given, I'll revert this chunk at the beginning of the next week. Bye, zyx -- http://www.litePDF.cz i...@litepdf.cz ------------------------------------------------------------------------------ Mobile security can be enabling, not merely restricting. Employees who bring their own devices (BYOD) to work are irked by the imposition of MDM restrictions. Mobile Device Manager Plus allows you to control only the apps on BYO-devices by containerizing them, leaving personal data untouched! https://ad.doubleclick.net/ddm/clk/304595813;131938128;j _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users