git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
805f535
)
fixed advance values
author
kramm
<kramm>
Thu, 6 Dec 2001 09:14:39 +0000
(09:14 +0000)
committer
kramm
<kramm>
Thu, 6 Dec 2001 09:14:39 +0000
(09:14 +0000)
lib/example/makefonts.cc
patch
|
blob
|
history
lib/modules/swftext.c
patch
|
blob
|
history
diff --git
a/lib/example/makefonts.cc
b/lib/example/makefonts.cc
index
82ecc06
..
8182dd8
100644
(file)
--- a/
lib/example/makefonts.cc
+++ b/
lib/example/makefonts.cc
@@
-114,7
+114,7
@@
SWFFONT * t1font2swffont(int i)
wfont->glyph2ascii[num] = s;
swf_ShapeNew(&wfont->glyph[num].shape);
SHAPE*shape = wfont->glyph[num].shape;
wfont->glyph2ascii[num] = s;
swf_ShapeNew(&wfont->glyph[num].shape);
SHAPE*shape = wfont->glyph[num].shape;
- wfont->glyph[num].advance = width/8;
+ wfont->glyph[num].advance = width/2;
TAG*tag = swf_InsertTag(0,ST_DEFINESHAPE);
TAG*tag = swf_InsertTag(0,ST_DEFINESHAPE);
@@
-135,7
+135,7
@@
SWFFONT * t1font2swffont(int i)
drawpath(tag, outline, &m, log);
/*uncomment this to mark the glyph sizes:
drawpath(tag, outline, &m, log);
/*uncomment this to mark the glyph sizes:
- */ plotxy p1,p2;
+ plotxy p1,p2;
p1.x=0;
p1.y=0;
p2.x=width/8;
p1.x=0;
p1.y=0;
p2.x=width/8;
@@
-147,7
+147,7
@@
SWFFONT * t1font2swffont(int i)
lineto(tag, p2);
lineto(tag, p1);
p1.x -= 2;
lineto(tag, p2);
lineto(tag, p1);
p1.x -= 2;
- lineto(tag, p1);//*/
+ lineto(tag, p1);// */
swf_ShapeSetEnd(tag);
swf_ShapeSetEnd(tag);
diff --git
a/lib/modules/swftext.c
b/lib/modules/swftext.c
index
8ea5dd1
..
80fa15f
100644
(file)
--- a/
lib/modules/swftext.c
+++ b/
lib/modules/swftext.c
@@
-764,8
+764,8
@@
void swf_WriteFont(SWFFONT*font, char* filename)
int g = font->ascii2glyph[s];
text[s] = s;
if(g>=0) {
int g = font->ascii2glyph[s];
text[s] = s;
if(g>=0) {
- if(font->glyph[g].advance*textscale/50 > xmax)
- xmax = font->glyph[g].advance*textscale/50;
+ if(font->glyph[g].advance*textscale/200 > xmax)
+ xmax = font->glyph[g].advance*textscale/200;
}
}
swf.movieSize.xmax = xmax*20;
}
}
swf.movieSize.xmax = xmax*20;