Hello All,
I already asked this question few times, and even talked to Cincom support at some point -- I did not get much help so far. For number of years we were relying on using the PostScriptPrinter classes in VW to produce the PS ( eps) files. Those files later could be converted into the PDF, Jpeg or even directly imported into the applications such as Excel. It works great for the US and Western Europe, but ... Now we have a Huge problems with the users who uses non Latin based alphabets, like Cyrillic for example. When a text like "Некорректное отображение шрифта «кириллица» в формате PDF...." being sent to the PostScriptPrinter and later converted by Adobe distiller, resulting PDF file displays a series of the black boxes instead of letters. When I try to print to the Windows host printer and select "Adobe PDF printer" as an output the PDF files look just fine. That is very serious problem to our non English speaking users. Does anyone know what to do ? Many Thanks, --Mark ____________________________________________________________ Woman is 57 But Looks 27 Mom publishes simple facelift trick that angered doctors... http://thirdpartyoffers.netzero.net/TGL3241/503f9953d84721952404bst04duc _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
On a general level: make sure that the FontDescription you are supplying, and the resulting ImplementationFont (PostScriptPrinterFont), has the right encoding. That applies to any font selection for any graphics device: the characters in the font are in a different order from those in VW (i.e. at different indexes), and the encoding maps the VW indexes to the font indexes. If the encoding is wrong, you get either the wrong characters output or a black rectangle meaning there is no character at that index in that font. You may also be getting an ImplementationFont that simply does not contain Cyrillic glyphs, in which case you need to change the family etc. used in the FontDescription to pick one that does, and preferably one that supports the full Unicode range of glyphs.
I've not dealt specifically with encoding of PostScript fonts, but it looks like they are tricky:
I wouldn't be surprised if the VW PostScript printing doesn't take encoding into account properly, in which case you either need to fix that, or then find an alternate approach. I believe PDFCreator when used as a Host Printer on VW may give you more luck.
Cheers,
Steve
From: [hidden email] on behalf of Mark Pirogovsky Sent: Thu 30/08/2012 19:48 To: vwnc Subject: [vwnc] Problem with Cyrillic characters and VW PostScriptPrinter Hello All, _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Mark Pirogovsky-3
I think it may have to do with the glyph encoding for Type-1 fonts. Character codes are mapped to character names (see PostScriptFontBody>>encodeSymbolic:) by which PostScript finds the glyph. There is an authoritative mapping from Adobe which has encodings for all character occurring in the 14 Standard Adobe fonts. VW only uses only 564 out of the defined 4482 characters (see PostScriptFontBody class>>psCodes).
I fixed this problem for my PDF library as part of the font support. The easiest way to get the fix would be to load the package [Fonts Basics] from the public Cincom Store. It has some additional stuff not related to this, but it is light weight, has no prerequisites and does not change any other aspect of the system. This should work for up to 7.8.1, but I have not looked at 7.9 and don’t know if any of my suggestions concerning this to Cincom from over a year ago were incorporated. Mind you, there are other bugs of the VW PostScript font support (f.ex. wrong standard fonts) which are not fixed by this package. I would be interested if this solves the problem - please report back. If anybody is interested in more details about this fonts business, please ask. Christian > -----Ursprüngliche Nachricht----- > Von: [hidden email] [mailto:[hidden email]] Im > Auftrag von Mark Pirogovsky > Gesendet: Donnerstag, 30. August 2012 20:31 > An: vwnc > Betreff: [vwnc] Problem with Cyrillic characters and VW PostScriptPrinter > > Hello All, > > I already asked this question few times, and even talked to Cincom support > at some point -- I did not get much help so far. > > For number of years we were relying on using the PostScriptPrinter classes in > VW to produce the PS ( eps) files. Those files later could be converted into > the PDF, Jpeg or even directly imported into the applications such as Excel. > > It works great for the US and Western Europe, but ... > > Now we have a Huge problems with the users who uses non Latin based > alphabets, like Cyrillic for example. > > When a text like "Некорректное отображение шрифта «кириллица» в > формате PDF...." being sent to the PostScriptPrinter and later converted by > Adobe distiller, resulting PDF file displays a series of the black boxes instead > of letters. > > > When I try to print to the Windows host printer and select "Adobe PDF > printer" as an output the PDF files look just fine. > > That is very serious problem to our non English speaking users. > > Does anyone know what to do ? > > Many Thanks, > > --Mark > __________________________________________________________ > __ > Woman is 57 But Looks 27 > Mom publishes simple facelift trick that angered doctors... > http://thirdpartyoffers.netzero.net/TGL3241/503f9953d84721952404bst04du > c > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |