On Wed, Oct 28, 2020 at 11:00 PM Dmytro Tristan <[email protected]> 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? > > I consider 0.9.6 as an old version. I noticed that fonts in your pdf are both truetype font subsets. I am not sure how you are creating fonts but seems that CreateFont cannot be used to do this in version of podofo which I am using. Although there is option eFontCreationFlags_Type1Subsetting I suppose it is intended to work only for type1 fonts. So if you have CreateFontSubset in your version you can try it (or newer podofo). Thank you. > > > Best, > > Mitia > > Sent from my IPhone > ------------------------------ > *От:* Michal Sudolsky <[email protected]> > *Отправлено:* Wednesday, October 28, 2020 10:55:22 PM > *Кому:* Dmytro Tristan <[email protected]> > *Копия:* [email protected] <[email protected]> > *Тема:* Re: [Podofo-users] IdentityEncoding issue with Cyrillic alphabet > > > > On Wed, Oct 28, 2020 at 7:15 AM Dmytro Tristan <[email protected]> > 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/ > <https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsourceforge.net%2Fp%2Fpodofo%2Fmailman%2Fmessage%2F36872812%2F&data=04%7C01%7C%7C014ea77d982b49b4e71708d87b83d0ae%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637395153347803086%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=VjfHB4rT8%2BR5vsHFpmEWF2yjl4dYRPfZ5FRtBzZGUng%3D&reserved=0>) > 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/ > <https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsourceforge.net%2Fp%2Fpodofo%2Fmailman%2Fmessage%2F36238386%2F&data=04%7C01%7C%7C014ea77d982b49b4e71708d87b83d0ae%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637395153347803086%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=zPo7V755Ut28CgZ9nxlE799GbVg0iF5k7rNngH12VK8%3D&reserved=0>) > 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 > [email protected] > https://lists.sourceforge.net/lists/listinfo/podofo-users > <https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fpodofo-users&data=04%7C01%7C%7C014ea77d982b49b4e71708d87b83d0ae%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637395153347813081%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=LomokKT1oQZ%2FCMyIULyp4IevalpIF9MPVV03Rr%2FlkBY%3D&reserved=0> > >
_______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
