delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/12/13/16:29:11

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to
:content-transfer-encoding;
bh=6GdJ0INotFoM1kdmGpV2OHG3qavXd3skaVoamp7H3vo=;
b=Xpie7Jdp55Uf0lMBfm4rp4kG9MaMah9T6XcM2FGRoQIkWZVdzTpNPi3WHu090syPle
URHC/HEwBcTeUeI6uyYiBC9+aU7L/salvBNxXNT19Vkm61tEa7xTCdCI50QJxX+Q98ws
voIL0H6tP9FvfKAFcpVFC3YBhlen2kxLWDSul4IJXgyJvd4VQsnjyhP7NKPxbxzmyT04
OJK2fFeRnepYiQIVhff45HQILXu/gCw/dc0gusDncrkwIsktI5aVHI5X40CSO6i6nZPf
SuLON40RAHajiYc1Tu3JS6IjKLP6UlP5gXRyee1zbq2jkXDc1cD/VWCWtP1WVebj4Tkw
jEGw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20130820;
h=x-gm-message-state:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-transfer-encoding;
bh=6GdJ0INotFoM1kdmGpV2OHG3qavXd3skaVoamp7H3vo=;
b=LXYSkBogDgdc0P2+ex1poUCAwjmzy7QlVlhqjIc7J8WK9h3pBAzsC9kaZaKrwJ7KxP
vnx098PU/QbEihmNmNuYpvfHnA3UwpcrW/I1c2h0liRPj2PA5v7smdCFHNhxgEE3pcWF
vpZH8HIraN007NnSVuFUdLL3v8Y0fy3HWeD6eFTwHon+coHNYHGhI/23NzfCf6zQvlk8
GjDB9l9JeZYyeQcOy12TthFwv0MY7M+p8WMsiowUOoERFUBLYc209vGNWWEXNEmGhco/
ypb31ehfSmoWbCNdpKnAbhVOO/nMg5jOuPmNr9oUP+g1QicDUuKIFAxUAzdGMNbumMNq
UD+g==
X-Gm-Message-State: AKaTC00zhgSbSHMINW00g9SrpEYhZcnCld1aSXEKe1+VQJtn27pE0m4ZGwtHRiwgiecpUcZOMZA6RnYuu+xkXA==
X-Received: by 10.202.215.85 with SMTP id o82mr47919871oig.145.1481664453234;
Tue, 13 Dec 2016 13:27:33 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <20161213135952.3756D81075A5@turkos.aspodata.se>
References: <CAHUm0tPyoT=u+i3N6mSjHmP9UMf-xdrjk1+kEP3PbBhVsbeKFQ AT mail DOT gmail DOT com>
<20161213135952 DOT 3756D81075A5 AT turkos DOT aspodata DOT se>
From: "Erich Heinzle (a1039181 AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Date: Wed, 14 Dec 2016 07:57:32 +1030
Message-ID: <CAHUm0tN+0S704XydhQAMH8Ut9VTXkYkuzzjQ1G+A7xT2Ub9zKQ@mail.gmail.com>
Subject: Re: [geda-user] A workflow for gEDA PCB font symbol/glyph creation
To: geda-user <geda-user AT delorie DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id uBDLRZBh019951
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

potrace is certainly useful for vectorising outlines, but cannot do
the offset paths that centerline/stroked/engraving fonts require.

I have already written code that can indirectly (via the Batik ttf2svg
utility) convert a TTF glyph into a set of silk lines, but this does
not achieve the needed offset paths for centerline/stroked/engraving
fonts.

I have made a bit of progress in automatically converting an outline
into a set of offset paths, but the end caps of the ascending and
descending limbs still need a bit of work, particularly for serif
fonts....






On Wed, Dec 14, 2016 at 12:29 AM,  <karl AT aspodata DOT se> wrote:
> Erich Heinzle:
>> I have had some success in converting graphical depictions of
>> lettering, i.e. from a simple picture, into gEDA PCB compatible font
>> glyphs with the following technique.
> ...
>> A .ppm format image with the glyphs/characters to be converted into a
>> stroked font compatible with gEDA PCB needs to be found, and its
>> dimensions in pixels, X, Y, noted
>>
>> PCB is then loaded, with the .ppm image selected for background display
>>
>> ./pcb-rnd --bg-image my_desired_symbols.ppm &
>>
>> the board width and height must then be made a multiple of X and Y, to
>> provide the correct aspect ratio for the exported symbols.
>>
>> For simple sans serif fonts, the centreline of the glyph can be
>> traced, to create a stroked, or centreline defined version of the
>> font. Once a set of silk lines has been generated for a glyph, they
>> can be selected, and copied into the paste buffer, being careful to
>> have the cursor suitably positioned at the lower left hand corner of
>> the glyph consistently for all glyphs processed, to ensure the
>> vertical alignment of glyphs is properly preserved in the resulting
>> font.
> ...
>
> Instead of traceing by hand, have you tried:
>
>  http://potrace.sourceforge.net/
>
> Regards,
> /Karl Hammar
>
> -----------------------------------------------------------------------
> Aspö Data
> Lilla Aspö 148
> S-742 94 Östhammar
> Sweden
> +46 173 140 57
>
>

- Raw text -


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