- Fontconfig korrigiert

This commit is contained in:
Michael Stangl
2012-07-29 22:14:55 +02:00
parent 17444cfe3b
commit c95ad8214f
8 changed files with 75 additions and 3861 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
><tspan
x="48.443432"
y="125.79976"
style="font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Ubuntu;-inkscape-font-specification:Ubuntu">x1 </tspan></text>
style="font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Ubuntu;-inkscape-font-specification:Ubuntu">${x1}</tspan></text>
<text
xml:space="preserve"
style="font-size:40px;font-style:normal;font-weight:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:start;fill:#808080;fill-opacity:1;stroke:none;font-family:Sans"
+13
View File
@@ -9,6 +9,7 @@
y="100.06429"
style="font-size:10px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;text-anchor:middle;font-family:Ubuntu;-inkscape-font-specification:Ubuntu">${x7}</tspan></text>
<text
y="119.00378"
x="37.793247"
style="font-size:40px;font-style:normal;font-weight:normal;text-align:end;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:end;fill:#808080;fill-opacity:1;stroke:none;font-family:Sans"
@@ -18,6 +19,7 @@
x="37.793247"
>${x5}</tspan></text>
<text
y="135.10689"
x="40.912228"
style="font-size:40px;font-style:normal;font-weight:normal;text-align:center;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#808080;fill-opacity:1;stroke:none;font-family:Sans"
@@ -27,6 +29,7 @@
x="40.912228"
>${x4}</tspan></text>
<text
y="87.458839"
x="58.049446"
style="font-size:40px;font-style:normal;font-weight:normal;text-align:center;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#808080;fill-opacity:1;stroke:none;font-family:Sans"
@@ -36,6 +39,7 @@
x="53.293491"
>${x1}</tspan></text>
<text
y="95.718819"
x="45.571537"
style="font-size:40px;font-style:normal;font-weight:normal;text-align:end;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:end;fill:#808080;fill-opacity:1;stroke:none;font-family:Sans"
@@ -45,6 +49,7 @@
x="45.571537"
>${x6}</tspan></text>
<text
y="132.11322"
x="86.71936"
style="font-size:40px;font-style:normal;font-weight:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:start;fill:#808080;fill-opacity:1;stroke:none;font-family:Sans"
@@ -54,6 +59,7 @@
x="86.71936"
>${x11}</tspan></text>
<text
y="96.44426"
x="70.20665"
style="font-size:40px;font-style:normal;font-weight:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:start;fill:#808080;fill-opacity:1;stroke:none;font-family:Sans"
@@ -63,6 +69,7 @@
x="70.20665"
>${x2}</tspan></text>
<text
y="120.25014"
x="63.623444"
style="font-size:40px;font-style:normal;font-weight:normal;text-align:end;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:end;fill:#808080;fill-opacity:1;stroke:none;font-family:Sans"
@@ -72,6 +79,7 @@
x="63.623444"
>${x3}</tspan></text>
<text
y="141.04482"
x="69.013687"
style="font-size:40px;font-style:normal;font-weight:normal;text-align:center;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#808080;fill-opacity:1;stroke:none;font-family:Sans"
@@ -81,6 +89,7 @@
x="69.013687"
>${x10}</tspan></text>
<text
y="120.74612"
x="69.282585"
style="font-size:40px;font-style:normal;font-weight:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:start;fill:#808080;fill-opacity:1;stroke:none;font-family:Sans"
@@ -90,6 +99,7 @@
x="80.24649"
>${x9}</tspan></text>
<text
y="106.48371"
x="72.470993"
style="font-size:40px;font-style:normal;font-weight:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:start;fill:#808080;fill-opacity:1;stroke:none;font-family:Sans"
@@ -130,4 +140,7 @@
transform="translate(66.038723,116.70839)"
r="2.8138001"
id="circle4-7-4" />
style="font-size:10px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Ubuntu;-inkscape-font-specification:Ubuntu"
style="font-size:10px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Ubuntu;-inkscape-font-specification:Ubuntu"
</g>
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -43,7 +43,7 @@
><tspan
x="71.136246"
y="112.48307"
style="font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;text-anchor:middle;font-family:Ubuntu;-inkscape-font-specification:Ubuntu">${x5}</tspan></text>
style="font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;text-anchor:middle;font-family:Ubuntu;-inkscape-font-specification:Ubuntu">${x5}</tspan></text>
<circle
transform="translate(68.612578,101.7633)"
r="2.8138001"
@@ -64,4 +64,5 @@
transform="translate(40.670943,129.15983)"
r="2.8138001"
id="circle4-6-0-4" />
</g>
+1 -1
View File
@@ -90,7 +90,7 @@
id="tspan3017"
x="48.443432"
y="125.79976"
style="font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Ubuntu;-inkscape-font-specification:Ubuntu">x1 </tspan></text>
style="font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Ubuntu;-inkscape-font-specification:Ubuntu">x1</tspan></text>
<text
xml:space="preserve"
style="font-size:40px;font-style:normal;font-weight:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

+52 -4
View File
@@ -1,5 +1,53 @@
Kennummer;Name
001;aa
002;ab
003;ba
004;bb
a;a
b;b
c;c
d;d
e;e
f;f
g;g
h;h
i;i
j;j
k;k
l;l
m;m
n;n
o;o
p;p
q;q
r;r
s;s
t;t
u;u
v;v
w;w
x;x
y;y
z;z
A;A
B;B
C;C
D;D
E;E
F;F
G;G
H;H
I;I
J;J
K;K
L;L
M;M
N;N
O;O
P;P
Q;Q
R;R
S;S
T;T
U;U
V;V
W;W
X;X
Y;Y
Z;Z
1 Kennummer Name
2 001 a aa a
3 002 b ab b
4 003 c ba c
5 004 d bb d
6 e e
7 f f
8 g g
9 h h
10 i i
11 j j
12 k k
13 l l
14 m m
15 n n
16 o o
17 p p
18 q q
19 r r
20 s s
21 t t
22 u u
23 v v
24 w w
25 x x
26 y y
27 z z
28 A A
29 B B
30 C C
31 D D
32 E E
33 F F
34 G G
35 H H
36 I I
37 J J
38 K K
39 L L
40 M M
41 N N
42 O O
43 P P
44 Q Q
45 R R
46 S S
47 T T
48 U U
49 V V
50 W W
51 X X
52 Y Y
53 Z Z
+4 -2
View File
@@ -110,7 +110,8 @@ class Glyph:
return float(self.GetAttribute('ystep'))
def GetSVG(self, content):
t = Template(self.template)
return t.substitute(content)
svg = t.substitute(content)
return svg
class Font:
"""enthaelt alle Daten zu einem Font """
@@ -119,9 +120,10 @@ class Font:
self.path = font_path
self.glyphs = dict()
fontconfig = ConfigParser.RawConfigParser()
fontconfig = ConfigParser.ConfigParser()
config_path = os.path.join(font_path, fontname+'.cfg')
fontconfig.read(config_path)
fontconfig.optionxform = str
# lies alle Zeichen des Fonts ein
for letter in fontconfig.sections():
BIN
View File
Binary file not shown.