Skip to main content
November 17, 2015
Question

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

  • November 17, 2015
  • 1 reply
  • 3647 views

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 has been closed for replies.

1 reply

Legend
November 18, 2015

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.

November 19, 2015

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?

Legend
November 19, 2015

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.