Skip to main content
Participant
October 29, 2009
Question

Printing Swedish Character set with PS

  • October 29, 2009
  • 1 reply
  • 2768 views

Hi!

I have program that today generates PCL code for printing. The data to print is stored as 7-bit ASCII. When printing PCL I use the "Symbol Set Selection" parameter ESC(0S to tell the printer to use the "PCL ISO 11 Swedish" "Symbol set" to get the correct Swedish characters (åäöÅÄÖ) printed.

PCL ISO 11 Symbol set

I now want to write a PS code instead and wondering if there is any way to do the same with PS as with PCL.

Kind regards Daniel

This topic has been closed for replies.

1 reply

Participating Frequently
October 29, 2009

You need to reencode the fonts you are using, i. e. changing the encoding vector (which usually is,

for Type1 fonts, StandardEncoding) to ISOLatin1Encoding. An exsample how to do this

is listed in the PLRM (PostScript Language Reference Manual, 2nd or 3rd ed.).

Helge

DanlihAuthor
Participant
October 29, 2009

Best Helge!

Many thanks for the quick answer, I have looked thought the PostScript LANGUAGE REFERENCE third edition: http://www.adobe.com/devnet/postscript/pdfs/PLRM.pdf

But don't find any direct sample, could you pleas point me to the right page.

Kind regards Daniel

Participating Frequently
October 29, 2009

PLRM 3rd ed. Chapter 5.9.1, Changing the Encoding Vector: (p. 349)

Example 5.8

/Helvetica findfont

dup length dict begin

{ 1 index /FID ne

{def}

{pop pop}

ifelse

} forall

/Encoding ISOLatin1Encoding def

currentdict

end

/Helvetica-ISOLatin1 exch definefont pop

Helge