引用第23楼shane007于2009-02-03 23:45发表的 :
- a( N( Z( O+ n y. y, d_menu.font 是菜单字体,你可以试试看。* }5 j) ?5 t& q1 K* o! C
+ y) v1 ]) @0 X7 }/ a知道了,你错字体了,要改游戏字体。4 ]' n( b. V! e/ F
你改了devkit project 的字体。 , h/ O4 i p1 `3 p8 `/ z/ Y4 H
menu。font的内容是% V8 h& M! Y7 D& ^
FONT
* u1 v4 ]+ ^0 ]4 U! Y) B{, b% [0 H$ g4 b
IMAGE = "fonts\\huge_times_bk.png"8 U0 R: S, S: _" d2 E( l6 b7 W
COLUMNS = 16
2 a9 |$ Q0 s* I; l+ X, @ TILE_WIDTH = 32
/ a' c/ p# n( `* z8 z' U TILE_HEIGHT = 326 G+ F7 }2 M6 g- P6 }5 d
EXPAND_WIDTH = 1, y/ h1 J9 W: r1 g" d6 e8 {
AUTO_WIDTH = TRUE* `) y" _* N9 d7 p; U
;FONTEXT_FIX = TRUE
3 b$ ~/ }5 ~8 y1 N& T}; a, u: x; ] w3 }0 X- t6 y
. |, g* B9 G. s6 O! q是要改成这样的
. P P: b6 i/ ~ ]1 a7 h' hTTFONT
5 p) T) ]' x, X0 Y# m{, S! G0 [: H/ @% }% v9 ?
SIZE = 13
1 H: }: w$ i) x" p
# A; R7 \: ?+ \5 {7 `; ----- this is the typeface of the font
7 h* B8 v: f0 K( }; ----- use the Windows Font Viewer to find the correct typeface name
2 ?9 G5 A. o* j FACE = "楷体_GB2312"( z* T' g3 R" D. c
% H7 M/ n; }, Y& F; Z* E9 }# b; ----- this is the path to the ttf file# }' b. |+ I: e) l4 j
; ----- you don't need to specify this for system fonts (such as Arial)
7 E U$ D+ n! V4 A; ----- otherwise uncomment the following line and change the path
9 u2 [6 y4 Z8 A# _2 v FILENAME = "fonts\\楷体_GB2312.ttf"' ^: }" ^- p3 b2 k/ |, @7 Z, I
" D" W# V9 ^ F3 z
BOLD = TRUE
. j( V4 q" d( |8 R% F ITALIC = FALSE9 R, u; U! u# h \- T( V
UNDERLINE = FALSE# l, J) _! K! [+ n+ C! \( `
STRIKE = FALSE) I* A# B" ]& S9 Q+ y( {! ^
* L! D ^# d/ r5 W0 z# s; ----- see the WME documentation for the list of available character sets) w2 F3 `2 _. z7 ~2 b
CHARSET = 1
- w" P5 O0 @5 e5 U: `: a3 h8 f0 P* L7 p2 a/ P( o/ N4 u
; ----- if you don't want an outline/shadow, all you need is this:; W/ e% p0 k$ {* Z7 H( V/ ]
COLOR { 255, 0, 0 }
+ P1 l4 w$ h9 K ALPHA = 255
9 J1 }6 k5 v! l; Z2 W: {3 }* }
, z0 `9 j* i2 ?; ----- otherwise you need to define "layers" of the font (see the docs for details) $ y* n" @1 W. N) X; O- K4 H
LAYER
# @: M0 U- w3 ~5 c1 D7 F {: o I0 ^) J' S2 t" x0 J4 E
OFFSET_X = 1; [; r+ \$ ]4 t' k+ _/ X; T
OFFSET_Y = 1
8 a: \% D9 l% i) V8 j' b3 M: Y COLOR { 0, 0, 0 }
; I; D. ]8 R, }& e3 Q3 R1 ] ALPHA = 255 ]! Q7 Y$ ^$ F4 k2 O
}
- @- f' C" U1 f7 i/ |$ Y5 W6 h4 f% V' l$ r# _, D' E' i0 i
LAYER+ i% A9 q* c: M
{
2 m- g$ \1 ]' A& Q" x$ T$ S" H3 M OFFSET_X = -1
: S7 I2 l g$ p8 N u1 m7 s OFFSET_Y = -1
7 n% l) a1 I2 C4 M/ n COLOR { 0, 0, 0 }9 B( }" E- E0 c/ o1 _9 G3 ~: j
ALPHA = 2551 R8 A y! J0 N& y) W0 c* C1 t/ n
}
% ^2 j2 r5 g; G% ~! Z
9 c2 |2 E$ B/ S- r9 d* p LAYER
; s* X) l' R# K {* n/ d# \* o& Y {7 a1 p) Y9 X2 D/ k% ?
OFFSET_X = -1: ], ^6 p! r( F. R1 _2 Z
OFFSET_Y = 1
4 @% F7 U, S/ Z+ [ COLOR { 0, 0, 0 }5 C! h5 Q. J: N. Y" P
ALPHA = 255: j, w1 t( U7 \) @
}! J* f) l2 N- A: {4 e8 o
: r3 a9 p( j% Y, Q" n9 D LAYER9 S& R0 x( G5 C+ [7 A
{ p, X0 C$ x1 U
OFFSET_X = 1
0 |7 J) E# t+ z OFFSET_Y = -1
; j4 _. J& i D COLOR { 0, 0, 0 }
% ? l# U5 e2 j7 Z( F ALPHA = 255( D ~7 f! o9 D
}
+ f5 H, v# v5 _6 `$ Y! B2 U6 y; X2 Z; _& @ @
# i" ]# V. k% f, J LAYER8 j3 f$ k/ [; C2 W
{
1 z7 N# E! c+ C OFFSET_X = 0
. R* L2 D8 u- _ OFFSET_Y = 0! N9 Z9 A) l { t8 z `) s- `
COLOR { 255, 0, 0 }$ Y& w6 K/ F1 f' s& t/ |5 T
ALPHA = 2550 D) [0 j' F: B
}
! X- U9 W5 y4 f7 T7 ~}
! Q5 }/ e. B' v* R6 [0 u, B0 Cpng图像就不用了? |