X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=DWMTfeWWSv7Yvd00ihkqBMACWDbr+9bvCeMZy/5n310=; b=AIINwsCoXwqm1cSA7DwG0u2/du5UqFph9b5vNNCT7ax/fzNaZ7Z57pMnFhMasV+wGS 1xGSIPqDeT0mVaoNxbz6ceXT1d7V7T91BA2YWDAyshcYuHO+ngX4DeJ79yMMNbjKfHza g8be/7tkLuYRDE3Rsx9oy0em/+7fshjmEScZ94m4elQzL8beCFeQqeBO0nFhEV8JAmiS VkGonZ2NKCZ3oYqZBsJ8yYgvfx3YOs8D4beCWd5yia9o1GPqsFKhn2zMKIxWJLft0CAW bBijNET5Szi1gBCXxo/2qpM/gkb3JSRNU+YuhvL7XTpsGEb1huWFXqATofteH6G4a2TK pM1Q== MIME-Version: 1.0 X-Received: by 10.50.66.234 with SMTP id i10mr10850845igt.34.1411342680371; Sun, 21 Sep 2014 16:38:00 -0700 (PDT) In-Reply-To: <20140921211901.14093.qmail@stuge.se> References: <20140921211901 DOT 14093 DOT qmail AT stuge DOT se> Date: Mon, 22 Sep 2014 09:08:00 +0930 Message-ID: Subject: Re: [geda-user] 16x16 bdf bitmap -> PCB symbol tool From: Erich Heinzle To: geda-user Content-Type: multipart/alternative; boundary=047d7bdc1a6c1eb68605039bd3ab 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 Precedence: bulk --047d7bdc1a6c1eb68605039bd3ab Content-Type: text/plain; charset=UTF-8 http://gerblook.org/pcb/Wsyir35rMFisgENKgKhwDK these are the 27 most complicated CJK glyphs amongst the full 16x16 CJK glyph set I could find, exported in the gerber shown above. Here's a representative symbol from the one's depicted, as produced by the utility: #gEDA PCB compatible symbol with drawn elements depicting uni6570 Symbol['uni6570' 1200] ( #the horizontal elements SymbolLine[1000 4200 6600 4200 800] SymbolLine[8200 4200 12200 4200 800] SymbolLine[4200 5000 5000 5000 800] SymbolLine[7400 5000 8200 5000 800] SymbolLine[1800 8200 6600 8200 800] SymbolLine[3400 10600 5800 10600 800] SymbolLine[10600 10600 11400 10600 800] SymbolLine[11400 11400 12200 11400 800] SymbolLine[1800 12200 3400 12200 800] SymbolLine[12200 12200 13000 12200 800] #the vertical elements SymbolLine[2600 1800 2600 2600 800] SymbolLine[2600 4200 2600 5000 800] SymbolLine[3400 8200 3400 9000 800] SymbolLine[4200 1000 4200 5800 800] SymbolLine[4200 7400 4200 8200 800] SymbolLine[4200 10600 4200 11400 800] SymbolLine[5000 4200 5000 5000 800] SymbolLine[5000 9800 5000 10600 800] SymbolLine[5800 8200 5800 9000 800] SymbolLine[6600 1000 6600 1800 800] SymbolLine[8200 1000 8200 8200 800] SymbolLine[10600 4200 10600 9000 800] SymbolLine[11400 3400 11400 4200 800] SymbolLine[11400 10600 11400 11400 800] SymbolLine[12200 11400 12200 12200 800] #diagonal elements, strokes going downwards and leftwards SymbolLine[2600 5000 1000 6600 800] SymbolLine[6600 1800 5800 2600 800] SymbolLine[5000 5000 4200 5800 800] SymbolLine[3400 9000 2600 9800 800] SymbolLine[6600 8200 5000 9800 800] SymbolLine[4200 11400 3400 12200 800] SymbolLine[10600 9000 7400 12200 800] #diagonal elements, strokes going downwards and rightwards SymbolLine[2600 9800 4200 11400 800] SymbolLine[5000 9800 7400 12200 800] SymbolLine[4200 4200 6600 6600 800] SymbolLine[8200 8200 12200 12200 800] SymbolLine[1800 1000 2600 1800 800] SymbolLine[11400 10600 13000 12200 800] SymbolLine[6600 4200 7400 5000 800] SymbolLine[11400 3400 12200 4200 800] ) #end symbol 'uni6570' The comments get stripped by pcb when the symbol is first used. Cheers, Erich On Mon, Sep 22, 2014 at 6:49 AM, Peter Stuge wrote: > Erich Heinzle wrote: > > http://users.on.net/~esh/geda/pcb/src/fonts/pcbGlyphTool-v1.0.c > > > > This more polished version of the code fixes a boundary condition > affecting > > 2 or 3 glyphs in the Firefly CJK 16x16 font set with pixels along edges. > > Do you have a screenshot? > > > > I make no claims as to the code's elegance or fitness for purpose... > > And even if prettier fonts are where we want to go, it's perhaps > useful for someone to have less pretty versions of the characters > meanwhile. > > > //Peter > --047d7bdc1a6c1eb68605039bd3ab Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
= these are the 27 most complicated CJK glyphs amongst the full 16x16 CJK gly= ph set I could find, exported in the gerber shown above.

= Here's a representative symbol from the one's depicted, as produced= by the utility:

#gEDA PCB compatible symbol with drawn elements dep= icting uni6570
Symbol['uni6570' 1200]
(
#the horizontal el= ements
=C2=A0=C2=A0=C2=A0 SymbolLine[1000 4200 6600 4200 800]
=C2=A0= =C2=A0=C2=A0 SymbolLine[8200 4200 12200 4200 800]
=C2=A0=C2=A0=C2=A0 Sym= bolLine[4200 5000 5000 5000 800]
=C2=A0=C2=A0=C2=A0 SymbolLine[7400 5000= 8200 5000 800]
=C2=A0=C2=A0=C2=A0 SymbolLine[1800 8200 6600 8200 800]=C2=A0=C2=A0=C2=A0 SymbolLine[3400 10600 5800 10600 800]
=C2=A0=C2=A0= =C2=A0 SymbolLine[10600 10600 11400 10600 800]
=C2=A0=C2=A0=C2=A0 Symbol= Line[11400 11400 12200 11400 800]
=C2=A0=C2=A0=C2=A0 SymbolLine[1800 122= 00 3400 12200 800]
=C2=A0=C2=A0=C2=A0 SymbolLine[12200 12200 13000 12200= 800]
#the vertical elements
=C2=A0=C2=A0=C2=A0 SymbolLine[2600 1800 = 2600 2600 800]
=C2=A0=C2=A0=C2=A0 SymbolLine[2600 4200 2600 5000 800]=C2=A0=C2=A0=C2=A0 SymbolLine[3400 8200 3400 9000 800]
=C2=A0=C2=A0=C2= =A0 SymbolLine[4200 1000 4200 5800 800]
=C2=A0=C2=A0=C2=A0 SymbolLine[42= 00 7400 4200 8200 800]
=C2=A0=C2=A0=C2=A0 SymbolLine[4200 10600 4200 114= 00 800]
=C2=A0=C2=A0=C2=A0 SymbolLine[5000 4200 5000 5000 800]
=C2=A0= =C2=A0=C2=A0 SymbolLine[5000 9800 5000 10600 800]
=C2=A0=C2=A0=C2=A0 Sym= bolLine[5800 8200 5800 9000 800]
=C2=A0=C2=A0=C2=A0 SymbolLine[6600 1000= 6600 1800 800]
=C2=A0=C2=A0=C2=A0 SymbolLine[8200 1000 8200 8200 800]=C2=A0=C2=A0=C2=A0 SymbolLine[10600 4200 10600 9000 800]
=C2=A0=C2=A0= =C2=A0 SymbolLine[11400 3400 11400 4200 800]
=C2=A0=C2=A0=C2=A0 SymbolLi= ne[11400 10600 11400 11400 800]
=C2=A0=C2=A0=C2=A0 SymbolLine[12200 1140= 0 12200 12200 800]
#diagonal elements, strokes going downwards and leftw= ards
=C2=A0=C2=A0=C2=A0 SymbolLine[2600 5000 1000 6600 800]
=C2=A0=C2= =A0=C2=A0 SymbolLine[6600 1800 5800 2600 800]
=C2=A0=C2=A0=C2=A0 SymbolL= ine[5000 5000 4200 5800 800]
=C2=A0=C2=A0=C2=A0 SymbolLine[3400 9000 260= 0 9800 800]
=C2=A0=C2=A0=C2=A0 SymbolLine[6600 8200 5000 9800 800]
= =C2=A0=C2=A0=C2=A0 SymbolLine[4200 11400 3400 12200 800]
=C2=A0=C2=A0=C2= =A0 SymbolLine[10600 9000 7400 12200 800]
#diagonal elements, strokes go= ing downwards and rightwards
=C2=A0=C2=A0=C2=A0 SymbolLine[2600 9800 420= 0 11400 800]
=C2=A0=C2=A0=C2=A0 SymbolLine[5000 9800 7400 12200 800]
= =C2=A0=C2=A0=C2=A0 SymbolLine[4200 4200 6600 6600 800]
=C2=A0=C2=A0=C2= =A0 SymbolLine[8200 8200 12200 12200 800]
=C2=A0=C2=A0=C2=A0 SymbolLine[= 1800 1000 2600 1800 800]
=C2=A0=C2=A0=C2=A0 SymbolLine[11400 10600 13000= 12200 800]
=C2=A0=C2=A0=C2=A0 SymbolLine[6600 4200 7400 5000 800]
= =C2=A0=C2=A0=C2=A0 SymbolLine[11400 3400 12200 4200 800]
)=C2=A0=C2=A0 #= end symbol 'uni6570'



The comme= nts get stripped by pcb=C2=A0 when the symbol is first used.


Cheers,

Erich

On Mon, Sep 22, 2014 at 6:49 AM, Pete= r Stuge <peter AT stuge DOT se> wrote:
Erich Heinzle wrote:
> http://users.on.net/~esh/geda/pcb/src/fonts/pcbGlyp= hTool-v1.0.c
>
> This more polished version of the code fixes a boundary condition affe= cting
> 2 or 3 glyphs in the Firefly CJK 16x16 font set with pixels along edge= s.

Do you have a screenshot?


> I make no claims as to the code's elegance or fitness for purpose.= ..

And even if prettier fonts are where we want to go, it's perhaps=
useful for someone to have less pretty versions of the characters
meanwhile.


//Peter

--047d7bdc1a6c1eb68605039bd3ab--