Skip to main content
Nov 17, 2015 3:36 PM UTC
Question

How to print cyrillic (russian) characters sending to PostScript printer

I need to print cyrillic (russian) characters included into a string, sending it to a postscript printer.

So I reenconded using :


/reencodeCP1251 { dup

          dup findfont

          ....

          ....} def

/CP1251Encoding [

          /.notdef

          .....

          /afii10017 / ....

          ......

          ] def


But it seems that the afii codes are ignored by the printer that prints these chars as "blank".

- What's missing to print these characters?

This topic is closed to new replies. Start a new post to keep the conversation going.

5 replies

Legend
Nov 18, 2015 10:32 PM UTC

The glyph name you use must match the name actually used in the font program. Probably, this font doesn't use afii10017 as a glyph name. Or, the font does not contain cyrillic.

Translate
Nov 19, 2015 10:14 AM UTC

I know that are built in encoding StandardEncoding and ISOLatin1encoding only, and these do not include Cyrillic chars. So, how do I load or include cyrillic font?

Translate
Legend
Nov 19, 2015 11:01 AM UTC

You obtain a font in PostScript format, and embed it. The font should also have an AFM file listing the encodings used. The font will probably be in PFB format which cannot be directly embedded in PostScript, but which needs some minor processing.

Translate