www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2014/09/09/18:09:28

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: geda-user AT delorie DOT com
From: Rupert Swarbrick <rswarbrick AT gmail DOT com>
Subject: Re: [geda-user] Chinese glyph rendering in pcb as symbols
Date: Tue, 09 Sep 2014 08:50:48 +0100
Lines: 64
Message-ID: <o3o2eb-s8d.ln1@halibut.with-a-lisp.net>
References: <CAHUm0tMk1cQm_DPVt_swzTGDA+FRL-37fUougH_3hNaqwR_LOQ AT mail DOT gmail DOT com>
<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>
<540A02F4 DOT 2050900 AT xs4all DOT nl>
Mime-Version: 1.0
X-Complaints-To: usenet AT ger DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: host-92-16-150-139.as13285.net
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Reply-To: geda-user AT delorie DOT com

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Bert Timmerman <bert DOT timmerman AT xs4all DOT nl>
writes:
> DJ Delorie wrote:
>>> If the current version of pcb is only capable of addressing 255
>>> characters than that is the first hurdle to take.
>>>=20=20=20=20=20=20
>> The 255 is not official, either.  Officially we support 127
>> characters, plain ASCII, because our file format is plain ASCII.
>>
>>=20=20=20=20
>>> Being able to address 2^16 characters (65k) may be enough ?
>>>=20=20=20=20=20=20
>> UTF-8 is the way to go.  It's backwards-compatible with ASCII.  IMHO,
>> at this point it's foolish to contemplate anything else.
>>
>>=20=20=20=20
>>> One thing I can foresee is that pcb files with Chinese fonts will
>>> become larger.
>>>=20=20=20=20=20=20
>> We'd need a way to refer to an external font somehow, but then we have
>> the problem of PCB files no longer being idempotent.
>>
>> Embedding large fonts might only be practical if we switch to a binary
>> format that can embed the compressed font as-is, but we'd need a way
>> to convert to-from text format, or use a container like zip, to work
>> with existing tools that want a plain text file.
>>
>>=20=20=20=20
> Hmm,
>
> IMHO, it's better to embed the font in the pcb file and avoid the
> "symversion" pitfall as in gschem et al.

Alternatively, allow the name of the font to be a path. Then if I just
want to use a system font, I give the name of the font. If I want to
bundle the font along with my PCB project (and geda schematic and
everything else I've been working on), I can specify it as something
like

  ./my-font.ttf

No binary blobs in the PCB file, sensible version control and no
significant change to the file format.


Rupert

--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iJwEAQECAAYFAlQOsVgACgkQRtd/pJbYVoatmwQAtAoIw2nar7Tt2IDf6UMvJta5
ARNdVekhxs/T20hRjD20Lgq9EQRSaHTHd2GXTdwBFKliY9ArGuQWHSJSJVDWbzbw
2w9a4Rq5HwVSR+sZhtP2TaIqL8QMBQcld94QPmEruC9C5ZY6uFDCzzwol2Kr76yk
vaMGo2g04srTFEnb8OI=
=WWQu
-----END PGP SIGNATURE-----
--=-=-=--

- Raw text -


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