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 (parent:
4df2b39
)
added custom font scaling.
author
kramm
<kramm>
Sat, 24 Jul 2004 17:21:34 +0000
(17:21 +0000)
committer
kramm
<kramm>
Sat, 24 Jul 2004 17:21:34 +0000
(17:21 +0000)
lib/modules/swffont.c
patch
|
blob
|
history
lib/rfxswf.h
patch
|
blob
|
history
diff --git
a/lib/modules/swffont.c
b/lib/modules/swffont.c
index
bfaa1a4
..
ab77363
100644
(file)
--- a/
lib/modules/swffont.c
+++ b/
lib/modules/swffont.c
@@
-21,6
+21,13
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+static int loadfont_scale = 1;
+
+int swf_SetLoadFontScale(int scale)
+{
+ loadfont_scale = scale;
+}
+
#ifdef HAVE_FREETYPE
#include <freetype/freetype.h>
#ifdef HAVE_FREETYPE
#include <freetype/freetype.h>
@@
-29,7
+36,7
@@
#include <freetype/ttnameid.h>
#include <freetype/ftoutln.h>
#include <freetype/ttnameid.h>
#include <freetype/ftoutln.h>
-#define FT_SCALE 1
+#define FT_SCALE loadfont_scale
#define FT_SUBPIXELS 64
static int ft_move_to(FT_Vector* _to, void* user)
#define FT_SUBPIXELS 64
static int ft_move_to(FT_Vector* _to, void* user)
diff --git
a/lib/rfxswf.h
b/lib/rfxswf.h
index
3621321
..
ef5406f
100644
(file)
--- a/
lib/rfxswf.h
+++ b/
lib/rfxswf.h
@@
-600,6
+600,8
@@
SWFFONT* swf_LoadTrueTypeFont(char*filename);
SWFFONT* swf_LoadT1Font(char*filename);
SWFFONT* swf_LoadFont(char*filename);
SWFFONT* swf_LoadT1Font(char*filename);
SWFFONT* swf_LoadFont(char*filename);
+int swf_SetLoadFontScale(int scale);
+
// swfdump.c
void swf_DumpHeader(FILE * f,SWF * swf);
// swfdump.c
void swf_DumpHeader(FILE * f,SWF * swf);