Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
686cd2c5
Commit
686cd2c5
authored
Oct 15, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a script to change the silkscreen font size globally and to turn off component value texts
parent
ddaa8c9d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
setfont.sh
scripts/setfont.sh
+43
-0
No files found.
scripts/setfont.sh
0 → 100755
View file @
686cd2c5
#!/bin/sh
# Copyright 2007 SoftPLC Corporation
# dick@softplc.com
# This script can operate on a *.brd file or a *.mod file and serves three purposes:
# 1) it resizes all the fonts to XSIZE and YSIZE
# 2) it sets the pen width of the fonts to PENWIDTH
# 3) it sets the "value" fields in all modules to "invisible"
# The two steps above correspond to the two regular expressions in the sed
# invocation below.
#----<configuration>----------------------------------------------------
# tenths of mils, e.g. 400 = .0400 inches
XSIZE
=
300
YSIZE
=
350
# tenths of mils
PENWIDTH
=
60
#----</configuration>--------------------------------------------------
if
[
$#
-ne
1
]
;
then
echo
"usage:
$0
<boardfile.brd>"
exit
1
fi
sed
\
-e
"s/^
\(
T[0-9] -*[0-9]
\{
1,6
\}\
-*[0-9]
\{
1,6
\}\)
-*[0-9]
\{
1,6
\}
-*[0-9]
\{
1,6
\}
\(
-*[0-9]
\{
1,6
\}\)
[0-9]
\{
1,6
\}
\(
[NM] [IV] -*[0-9]
\{
1,6
\}
.*
\)
/
\1
$YSIZE
$XSIZE
\2
$PENWIDTH
\3
/"
\
-e
"s/^
\(
T1 -*[0-9]
\{
1,6
\}\
-*[0-9]
\{
1,6
\}
-*[0-9]
\{
1,6
\}
-*[0-9]
\{
1,6
\}
-*[0-9]
\{
1,6
\}
[0-9]
\{
1,6
\}
[NM]
\)
[IV]
\(
-*[0-9]
\{
1,6
\}
.*
\)
/
\1
I
\2
/"
\
$1
>
out.tmp
# delete original and rename out.tmp to original
rm
$1
mv
out.tmp
$1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment