views:

555

answers:

1

Is there anyway to use unicode strings (most probably in UTF-8, but could be any encoding) in PostScript?

So far, i've been using this function to transforms fonts to Latin1 encoding:

/latinize {
  findfont
  dup length dict begin
  { 1 index /FID ne {def}{pop pop} ifelse }forall
  /Encoding ISOLatin1Encoding def
  currentdict
  end
  definefont pop
}bind def

/HelveLat /Helvetica latinize
/HelveLatbold /Helvetica-Bold latinize

but i really don't like it.

+2  A: 

Not really or in any simple "out of the box" way. See this FAQ entry for details.

Aaron Digulla
tks, it's really awkward, and something plaftorm-dependent (on top of font-dependent); but so far it's the only step in the right direction i've seen
Javier