delorie.com/archives/browse.cgi   search  
Mail Archives: geda-help/2011/10/15/16:24:50

X-Authentication-Warning: delorie.com: mail set sender to geda-help-bounces using -f
X-Recipient: geda-help AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=date:from:to:subject:message-id:mail-followup-to:references
:mime-version:content-type:content-disposition
:content-transfer-encoding:in-reply-to:user-agent;
bh=2hiebVhJXQyDvsG0AkqFVvvzCwf7u5tqNiKCDjgl7+Y=;
b=NFfcsr9SVepIw+54gdAzUfcHVE+V+ErLYfakuXape1k3weisBNt7rLI5YpNLkP68qw
8sTpujZDepKmmvv2oJSwreJZbhoRMHKbxQDRQrUfhyrBAzVDBS0hf+d6PT25WOX8yX6W
vf8/jGc0mLMfq64mo9dJwbys92uQxRSKbnLJU=
Date: Sat, 15 Oct 2011 23:58:43 +0400
From: Vladimir Zhbanov <vzhbanov AT gmail DOT com>
To: geda-help AT delorie DOT com
Subject: Re: [geda-help] Special Characters and Encapsulated Postscript Export
Message-ID: <20111015195843.GA21915@localhost.localdomain>
Mail-Followup-To: geda-help AT delorie DOT com
References: <CAFFzj2nH5pHtF+TUBAdgrP2Of4hed6djYy7XSMmqwj0n6YWbtA AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CAFFzj2nH5pHtF+TUBAdgrP2Of4hed6djYy7XSMmqwj0n6YWbtA@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Reply-To: geda-help AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-help AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sat, Oct 15, 2011 at 06:58:02PM +0200, Julian Brost wrote:
> Hi.
> 
> I'm trying to draw some Circuits using gschem and everything works
> fine until I want to export an EPS file for embedding it into a LaTeX
> document. I use characters like µF or Ω but these don't show up in the
> exported EPS. Any recommendations how to fix this?
> 
> Julian
> 

It's probably an issue with fonts. Do you know that fonts for printing
and displaying are different? Linux printing tool is ghostscript and
there is a bunch of fonts for it. Different fonts are using different
character sets. Default printing font in gschem is Helvetica.
(Encapsulated) Postscript file which gschem outputs is a text file and
you can look at its content and edit it. There are many symbols used in
UTF-8 to output Ω (/Omega, /Omega1, /Omegagreek, etc) and a couple of
them for µ (/mu, /mugreek). Open your eps-file and try to find them.
There are also a lot of fonts. Therefore it's not easy to find a working
combination. /mu, /Omega and Verdana work for me. So the solution could
be the following:

- open your eps-file in a text editor and look for /UTFEncoding line.
  Then you can find a charset description. There should be strings
  like /Omegagreek and /mugreek.
- change them to /Omega and /mu and look at your document in your
  postscript viewer
- if it isn't working, try to find the string:
    /gEDAFont UTFencoding /Helvetica RE
  and change Helvetica to Verdana (or maybe some other fontname)

This is the same but a bit quicker:
sed -i 's/Helvetica/Verdana/; s/Omegagreek/Omega/; s/mugreek/mu/' schematic1.eps schematic2.eps ...

You could try to find other fonts, or to install fonts from M$ (Arial or
some others).

BTW
There is also Peter C.'s gschem branch (cairo printing). Is it working?

-- 
VZh

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019