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=sl3v4J2y87/vhFEp6M7otAqvGXnMAhnz3K7JW6wMllg=; b=kgxSRK1c+qunfFO7KyqkPxKvtRrgvkp+5y9NeiBYGKKptecxE8y6K7rf2mZcXlGMXI QZ/MrRZVg0RlZpFRemQxynvdlw4avLU1C0Wti21zl2PwaCurjbTsare1j0IlFgNSEH0N P3zkfOERnKid8uhc3nfd7WnOvUk5Mja1LCKu1+8YC4MDRPqdvHguCGViUXkCbjW6ajbO F/To7W4m8i1nGIR2gujjB9d8MsGcU4oIa0eUujwV/sutanpd9Ym0jnSErSr6w6FTZh4i DMen7zq/Gqz7f4hSkfq+qlfi7bNMkpJoZ5ly2lBZ/ojz5Th8ypl2GytB8Kscf85f2tAg RR+A== MIME-Version: 1.0 X-Received: by 10.220.175.17 with SMTP id v17mr14429301vcz.0.1409984915739; Fri, 05 Sep 2014 23:28:35 -0700 (PDT) In-Reply-To: <201409060538.s865cSmr017110@envy.delorie.com> References: <201409051618 DOT s85GIdb8024685 AT envy DOT delorie DOT com> <5409F1C2 DOT 3090406 AT xs4all DOT nl> <201409051752 DOT s85Hqnr2027362 AT envy DOT delorie DOT com> <20140905184829 DOT GH3196 AT cicely7 DOT cicely DOT de> <20140905204312 DOT GJ3196 AT cicely7 DOT cicely DOT de> <540A22EF DOT 5030701 AT estechnical DOT co DOT uk> <201409052113 DOT s85LDfxf001064 AT envy DOT delorie DOT com> <201409060357 DOT s863vvBL013729 AT envy DOT delorie DOT com> <201409060459 DOT s864xXhR015788 AT envy DOT delorie DOT com> <201409060538 DOT s865cSmr017110 AT envy DOT delorie DOT com> Date: Sat, 6 Sep 2014 15:58:35 +0930 Message-ID: Subject: Re: [geda-user] Chinese glyph rendering in pcb as symbols From: Erich Heinzle To: geda-user Content-Type: multipart/alternative; boundary=047d7b3a7ebe0a97c005025fb2a9 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 --047d7b3a7ebe0a97c005025fb2a9 Content-Type: text/plain; charset=UTF-8 > > But to do a bitmap font, we'd need to convert each pixel into a > separate polygon (square). > > The gerbers for either solution would be huge, though. Simple stroked > fonts (like pcb's default) are pretty gerber-friendly. > My parsing code turns contiguous vertical, diagonal and horizontal pixels in the 16x16 bitmap stored in a bdf format into pcb strokes. That is how the example I attached yesterday was done. The example attachment also showed a "dot matrix" version of the glyphs for comparison, if the bitmap is done without conversion into strokes. Converting bitmap pixels to strokes as I have done is more evolved than dot matrix, and less evolved than outline fonts, but it scales without losing legibility and relies on gerber friendly strokes only. Polygons would enable perfect rendering of outline fonts, but would be less compact, and the symbol rendering code then has to be extended to support polygons as well. It seems the gnu project have released the unifont, which includes the chinese characters, as a bdf.tar.gz file at http://unifoundry.com/unifont.html which, with the right parsing code, could generate stroked pcb symbols for any of the unifont bitmaps. Anyway, perhaps a native chinese speaker/reader/user is needed to opine on the utility of bitmapped fonts or the need for more elegant outline fonts. Cheers, Erich. --047d7b3a7ebe0a97c005025fb2a9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

=

But to do a bitmap font, we'd need to convert each pixel into a
separate polygon (square).

The gerbers for either solution would be huge, though.=C2=A0 Simple stroked=
fonts (like pcb's default) are pretty gerber-friendly.

My parsing code tur= ns contiguous vertical, diagonal and horizontal pixels in the 16x16 bitmap = stored in a bdf format into pcb strokes. That is how the example I attached= yesterday was done.

The example attachment also showed a "dot = matrix" version of the glyphs for comparison, if the bitmap is done wi= thout conversion into strokes. Converting bitmap pixels to strokes as I hav= e done is more evolved than dot matrix, and less evolved than outline fonts= , but it scales without losing legibility and relies on gerber friendly str= okes only.

Polygons would enable pe= rfect rendering of outline fonts, but would be less compact, and the symbol= rendering code then has to be extended to support polygons as well.
It seems the gnu project have released the unifont, which includes the chi= nese characters, as a bdf.tar.gz file at
=C2=A0
http://unifoundry.com/unifont.html

which, with the right parsing code, could gen= erate stroked pcb symbols for any of the unifont bitmaps.

Anyway, perhaps a native chinese speaker/reader/user= is needed to opine on the utility of bitmapped fonts or the need for more = elegant outline fonts.

Cheers,
<= br>Erich.
--047d7b3a7ebe0a97c005025fb2a9--