For Programmers: Free Programming Magazines  


Home > Archive > PostScript > January 2006 > Ghostscript & central European characters









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Ghostscript & central European characters
ivan.svaljek@gmail.com

2006-01-09, 9:30 pm

Hello, I've got a bit of a problem: I'm trying to display non-roman
characters in a postscript program. I've added "/arial (arial.ttf) ;"
to fontmap (arial supports ce characters), but when I use 'show' it
displays the text with all the ce characters replaced by squares.

Is there a solution ?

Helge Blischke

2006-01-09, 9:30 pm

ivan.svaljek@gmail.com wrote:
>
> Hello, I've got a bit of a problem: I'm trying to display non-roman
> characters in a postscript program. I've added "/arial (arial.ttf) ;"
> to fontmap (arial supports ce characters), but when I use 'show' it
> displays the text with all the ce characters replaced by squares.
>
> Is there a solution ?


AFAIK. Ghostscript converts TT fonts to the Type42 format when loading
(which is essentially the TT program wrapped by some PostScript code).
Thus, you either need to re-encode the encoding vector (in case the TT font
supplies a glyph table which contains the glyph names) or you have to establisch
a proper CMAP to map the glyph indices to character codes.

Helge

--
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de
Andreas Prilop

2006-01-09, 9:30 pm

On 21 Dec 2005 ivan.svaljek@gmail.com wrote:

> Hello, I've got a bit of a problem: I'm trying to display non-roman
> characters in a postscript program.


Name your operating system and your program!

> I've added "/arial (arial.ttf) ;"
> to fontmap (arial supports ce characters),


What happens when you write "/arialmt" or "/arialce"?

> but when I use 'show' it
> displays the text with all the ce characters replaced by squares.


What happens with the characters "ä ö ü"?
How are the characters written in your text? UTF-8? "\nnn"?

Give more details!

ivan.svaljek@gmail.com

2006-01-09, 9:30 pm

I'm writing a small postscrtipt program which is interpreted by a
ghostscript on a winxp machine.

Letters =E4 =F6 =FC work just fine.

I'm writing the program using notepad and I'm saving it as ANSI txt.
(Tried unicode and utf-8, but it throws errors)

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com