On Thu, Oct 29, 2020 at 10:13 AM Dmytro Tristan <tristan...@outlook.com> wrote: > > I’m not sure that I have explained correctly. I use version 0.9.6. Previous > ones I have mentioned as examples of issues I have found. Am I understand > correctly that I should try to CreateFontSubset?
This was a problem of older version - 0,9,4 for sure. When you used identity encoding, which you had to when various scripts (cyrilic / latin) was used, included font did not contain width table, resulting in garbage. There is a discussion re identity encoding on the list, the problem was fixed few years ago, so try to get last version of PoDoFo. Regards, Peter Bozek > > Thank you. > > > Best, > > Mitia > > Sent from my IPhone > ________________________________ > От: Michal Sudolsky <sudols...@gmail.com> > Отправлено: Wednesday, October 28, 2020 10:55:22 PM > Кому: Dmytro Tristan <tristan...@outlook.com> > Копия: podofo-us...@lists.sf.net <podofo-us...@lists.sf.net> > Тема: Re: [Podofo-users] IdentityEncoding issue with Cyrillic alphabet > > > > On Wed, Oct 28, 2020 at 7:15 AM Dmytro Tristan <tristan...@outlook.com> wrote: > > Hi Guys, > > I'm waiving an issue with drawing Cyrillic text in pdf document, which i > create using PdfStreamedDocument class. > > I searched via mailing list archive and had found couple similar threads. > First (https://sourceforge.net/p/podofo/mailman/message/36872812/) propose to > build and install version from trunk, what I had tried, but i think solution > is outdated as trunk was updated since then. > > > No, it is not outdated. For a truetype font subset is needed to be used > CreateFontSubset with some newer podofo in which it is working. I personally > doubt that anyone will try to fix old versions of podofo. Looking at your pdf > the problem is probably due to missing some pdf font structures compared to a > pdf generated by the latest podofo and font is probably treated as if it has > single-byte encoding and effect of this are these mentioned extra spaces. > > Second (https://sourceforge.net/p/podofo/mailman/message/36238386/) basically > shows that issue starts from 0.9.4 version. I had tested that with 0.9.3 and > can confirm that in last one issue is not reproduced. > > The problem is that when I create font with Identity encoding the text prints > with extra space between characters, the same as in mentioned threads. Like > [l i k e] (no matter Cyrillic or Latin characters). I enclose example of PDF. > In this PDf I use two fonts - Arial Nova Cond and Arial Nova Cond-Bold. First > created with Identity encoding, the second with WinAnsiEncoding. > > > I have tried different fonts with different encoding, the Cyrillic character > either is not printed at all, either all text is printed with spaces; > > The obvious way is to check what was changed when upgrading to 0.9.4 and had > did that, but there are a lot of changes and I do not know even where to > start digging. > > Will appreciated any help with this issue. > > Thank you. > > Mitia Tristan > > > _______________________________________________ > 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 -- -- Peter Bozek _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users