delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/11/20/20:54:13

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:from:date:message-id:subject:to;
bh=yHRBmdbdYaaXaKlESfmDhRPRPkSlUjwWebudwMMOB/4=;
b=OIe+hZkYAOtGGvm47O47QM6a7FpkqFFdBDqOaMJVSPrc/bfz7St1m7HsgEcXSUko6x
t10/OiByxpV1XsDgvHV1DLQPMhWIiaM3AKQ61ambdpmnJu16axmB0ghWWHos5vvTTXrH
ya2ucL3EpZNSlHVSNemDUeduEHP1587zFBSqdtOrRrsm6/auOhjoaNbkemhIapHK4S/X
QruFH2Pu89c5XLqNoV5lIgzzzmoW0stesqpCk5anMO+w53vwn5XcWjOL295EW6qGfzOD
DJd5qDvkvuXjTlcQiK4jnZyCmI/5dJda7thPHoU6zjgSooKKPh5VEJjMN9jmrvKA8PBw
zDDQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20130820;
h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
bh=yHRBmdbdYaaXaKlESfmDhRPRPkSlUjwWebudwMMOB/4=;
b=IHnYinjor5VolaL3F6q5Fm7sjmyXXvYi3PKUcYaKMzzctBhPt/uRukqQ343kksFf6i
9jgy0rUjNpWD9OcZ6SadPvdSde4zt6yvlgJLBVRtCN/DqYam1IqyfX1vB5yQM3/gBqEp
+ehw2s3K8OnJvu6nda7+OoMcIy5Um5+q1e1sSE/7dhbeM0ol9CoQ6+xooBtUH0fAca9C
EDpMyDReBmBr7zD30AyaO644LQI6Q2tmIpJvWUhExV09NqxXL5xMgf0NKDiwbrGK7nGy
Nzyq06/p1BYAIIt1b6N1AgbVMXpxYhb7z4Bl2Ogzm3AskgT6cWe/LWWFfcTGsSZBZRBp
fy2g==
X-Gm-Message-State: AKaTC02xHv86HuRrhlC2hiz8oX9Eeku2WlT9WPuWtSnmyrLgE5GSgSBGeRnBWsZj/DW+35p0XUhcjfv4fp3MAg==
X-Received: by 10.176.71.134 with SMTP id v6mr4699361uac.174.1479692941553;
Sun, 20 Nov 2016 17:49:01 -0800 (PST)
MIME-Version: 1.0
From: "Chad Parker (parker DOT charles AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Date: Sun, 20 Nov 2016 20:49:00 -0500
Message-ID: <CAJZxidDN8Fy5hH6ozvab488R5bNy1oaQ4uZv6_CQtG16znVWiA@mail.gmail.com>
Subject: [geda-user] [pcb] Fonts!
To: geda-user AT delorie DOT com
Reply-To: geda-user AT delorie DOT com

--f403045eb67628752c0541c5dc91
Content-Type: text/plain; charset=UTF-8

All-

As I just inadvertently advertised, I've been working on a little
"get-to-know-pcb" project. In a few words, I've designed a font system that
allows multiple fonts to be used in a design. I'll describe it further in a
moment. This project has touched a lot of different areas of pcb, and I
think I've learned quite a lot about pcb in the process. It's been pretty
fun!

You can find the feature branch on git: home/cparker/font_fun. I hope that
some people will check it out and give me some feedback about what's good,
what's bad, what works like you expect, and what causes some surprise. I've
been using the fonts implemented by Erich:
http://users.on.net/~esh/geda/pcb/src/fonts/. It's not quite 100% complete,
there are a few other things I need to do and include, but I think it's
usable. I've tried to be pretty thorough, but there are always some corner
cases that get missed or other things that get overlooked.

At the user level, text objects can now be assigned a particular font. You
can do this either by executing an action from the command entry
(ChangeFont), or by opening the new font tab in the preferences window (of
the gtk hid). There you'll find several things:

1. Options that allow you to choose if and what kind of font data should be
saved in pcb files. There are three:
1A. an option to enable/disable the saving of font data, in which case the
files saved will be backwards compatible with previous versions of pcb.
1B. an option to include symbol data in the pcb file. This is currently how
pcb stores font information in files, this is only available if option 1A
is disabled. The symbols that are stored are those of the current system
font.
1C. an option to save font data in the pcb file. This option is available
if 1A is enabled and will cause all of the fonts used in the design to be
saved in the pcb files. This makes it possible to share the file with other
systems without having to be concerned about if the other system has the
same font installed, or a different version of the font installed.

2. A list of the installed fonts, indicators of which are selected, and
buttons that allow you to change the font for different text elements.
There are two different font settings, and several buttons for changing
them and setting the font of text objects.
2A. System font. This system font is the font used for new text objects,
and for system generated text, such as the pin numbers and labels.
2B. PCB font. The PCB font is used for text objects in the PCB file that
either can't be or don't have a font assigned to them. This includes all
reference designators. If this is null, then things default back to the
system font.
2C. Lists of the system fonts and embedded fonts. System fonts are those
that are stored on the system with pcb. Embedded fonts are stored in the
pcb save files themselves.
2D. Change All/Selected buttons. You can use these buttons to set the font
of text objects.

I was thinking that I might create a page on the wiki to put some
information about the under-the-hood stuff. So, stay tuned for that. I look
forward to your feedback.

Cheers,
--Chad
--

--f403045eb67628752c0541c5dc91
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div>All-<br><br></div>As I just inadvertently a=
dvertised, I&#39;ve been working on a little &quot;get-to-know-pcb&quot; pr=
oject. In a few words, I&#39;ve designed a font system that allows multiple=
 fonts to be used in a design. I&#39;ll describe it further in a moment. Th=
is project has touched a lot of different areas of pcb, and I think I&#39;v=
e learned quite a lot about pcb in the process. It&#39;s been pretty fun!<b=
r><br></div><div>You can find the feature branch on git: home/cparker/font_=
fun. I hope that some people will check it out and give me some feedback ab=
out what&#39;s good, what&#39;s bad, what works like you expect, and what c=
auses some surprise. I&#39;ve been using the fonts implemented by Erich: <a=
 href=3D"http://users.on.net/~esh/geda/pcb/src/fonts/">http://users.on.net/=
~esh/geda/pcb/src/fonts/</a>. It&#39;s not quite 100% complete, there are a=
 few other things I need to do and include, but I think it&#39;s usable. I&=
#39;ve tried to be pretty thorough, but there are always some corner cases =
that get missed or other things that get overlooked.<br></div><br></div><di=
v>At the user level, text objects can now be assigned a particular font. Yo=
u can do this either by executing an action from the command entry (ChangeF=
ont), or by opening the new font tab in the preferences window (of the gtk =
hid). There you&#39;ll find several things:<br><br>1. Options that allow yo=
u to choose if and what kind of font data should be saved in pcb files. The=
re are three:<br>1A. an option to enable/disable the saving of font data, i=
n which case the files saved will be backwards compatible with previous ver=
sions of pcb. <br>1B. an option to include symbol data in the pcb file. Thi=
s is currently how pcb stores font information in files, this is only avail=
able if option 1A is disabled. The symbols that are stored are those of the=
 current system font.<br></div><div>1C. an option to save font data in the =
pcb file. This option is available if 1A is enabled and will cause all of t=
he fonts used in the design to be saved in the pcb files. This makes it pos=
sible to share the file with other systems without having to be concerned a=
bout if the other system has the same font installed, or a different versio=
n of the font installed.<br><br></div><div>2. A list of the installed fonts=
, indicators of which are selected, and buttons that allow you to change th=
e font for different text elements. There are two different font settings, =
and several buttons for changing them and setting the font of text objects.=
<br></div><div>2A. System font. This system font is the font used for new t=
ext objects, and for system generated text, such as the pin numbers and lab=
els.<br></div><div>2B. PCB font. The PCB font is used for text objects in t=
he PCB file that either can&#39;t be or don&#39;t have a font assigned to t=
hem. This includes all reference designators. If this is null, then things =
default back to the system font.<br></div><div>2C. Lists of the system font=
s and embedded fonts. System fonts are those that are stored on the system =
with pcb. Embedded fonts are stored in the pcb save files themselves.<br></=
div><div>2D. Change All/Selected buttons. You can use these buttons to set =
the font of text objects.<br><br></div><div>I was thinking that I might cre=
ate a page on the wiki to put some information about the under-the-hood stu=
ff. So, stay tuned for that. I look forward to your feedback.<br><br></div>=
<div>Cheers,<br></div><div>--Chad<br></div><div>--<br></div></div>

--f403045eb67628752c0541c5dc91--

- Raw text -


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