引用第23楼shane007于2009-02-03 23:45发表的 :
( f6 @4 Q$ z2 a- g' V/ ~_menu.font 是菜单字体,你可以试试看。
1 h, V1 ^6 i7 o# s1 R6 E I, S+ h, a6 Z
知道了,你错字体了,要改游戏字体。" v' D5 c$ n3 H) p) l3 \4 ?
你改了devkit project 的字体。
w8 \# P& z* T: qmenu。font的内容是
2 N! v2 G+ o, q# E3 {4 mFONT
3 g3 @4 N8 x* ^/ T# Q7 H{
: C9 P: r# [7 S IMAGE = "fonts\\huge_times_bk.png"
9 [5 L% O3 T- }, E! L( q1 ~ COLUMNS = 16' p+ l' u& B/ B/ j0 U0 F
TILE_WIDTH = 32+ _# J; c& o" L1 R9 j% i
TILE_HEIGHT = 32
8 C# E8 E' }& v/ j/ W EXPAND_WIDTH = 1
. _. L5 d9 p9 ]! r' _2 r' p AUTO_WIDTH = TRUE
7 C5 C0 N6 a0 ?' y5 Z ;FONTEXT_FIX = TRUE
* l$ t5 _9 e& F1 }& Y* e' S}' S$ X3 b# E7 O
$ G+ B c# o4 o1 [" \: `是要改成这样的
- R" z+ P z$ R4 Q- T0 p, H* cTTFONT
% Y7 q4 \; p6 V- D{( F. {/ Q/ _# L
SIZE = 13- W- b# W2 B; ?0 |! C6 x
& f( t. {7 f+ d6 @6 _. C c6 m) p
; ----- this is the typeface of the font( p, H; R4 u. ^2 f! o+ d; K
; ----- use the Windows Font Viewer to find the correct typeface name
+ q% _+ y$ t+ b+ f' q( B* [, z0 V FACE = "楷体_GB2312"
6 A; \+ h' u- D4 S3 x y7 A, c! F1 @- i" C: n. w
; ----- this is the path to the ttf file- b8 {6 c% p1 H5 Q9 j& l8 \
; ----- you don't need to specify this for system fonts (such as Arial)2 }) ]3 o6 }: y: b( W5 A3 k% u
; ----- otherwise uncomment the following line and change the path
g7 ~2 M& `1 U2 N* V. b FILENAME = "fonts\\楷体_GB2312.ttf"# i! c7 {! k; N" W A* ]+ t
# I, D0 r( _6 U y+ k" T BOLD = TRUE. I% f3 q3 O" R0 h8 F! ^
ITALIC = FALSE+ t1 j9 Y0 K! B6 `. F
UNDERLINE = FALSE
$ {$ j& R- C0 H- E* U STRIKE = FALSE
. R. M: w7 t% z" Y- \9 Y: q* X3 |3 S7 o1 @* L& s6 u
; ----- see the WME documentation for the list of available character sets0 G4 ~8 H: `" ], x- N7 a
CHARSET = 18 ^+ {7 T' `2 \. y6 p
9 n$ Z' d6 G8 D [: A, e6 d7 D; ----- if you don't want an outline/shadow, all you need is this:
, l: z' H5 e* L# e% | COLOR { 255, 0, 0 }
/ v' S. X, x4 `3 o; ? ALPHA = 255% I3 ^9 e5 }/ i) Z- ]) s( ~
" P, h3 j" g* F I
; ----- otherwise you need to define "layers" of the font (see the docs for details) 1 D: Y, ~4 ^8 v! S0 S9 A3 ^
LAYER6 v, G4 b: `) _
{5 _9 e7 G0 {3 {! Y* e
OFFSET_X = 1
* \- B& I. K T' X& s/ M- i! Z OFFSET_Y = 1' I# S+ m1 Y0 ~& `6 i1 f
COLOR { 0, 0, 0 }7 y+ Y1 T( r7 m" I, O z
ALPHA = 255
. X. X$ |9 R2 g$ r# q }
/ ?, q$ U; Z8 V' h3 L5 Z4 U; j7 W3 [1 v2 d( o8 m9 W# u9 p
LAYER
% n2 M+ K# R# @7 J1 R6 M& n {
7 s* q; j6 p) w; C OFFSET_X = -1, {9 n; Q/ g5 B$ I J
OFFSET_Y = -1$ t. Y1 ]2 H d( T2 T
COLOR { 0, 0, 0 }$ C, F# o& K4 h6 O, e
ALPHA = 255 w$ ?* P7 i4 t6 ~
}$ h/ ^' s/ J0 A
: G" ?7 r1 r" c- S" a2 t
LAYER5 N& k7 |: j: B% ]2 \7 W. s7 Q
{
~3 a! ], a/ `" ~+ Z OFFSET_X = -1. j, u) c! Q$ [
OFFSET_Y = 1
. _7 \. _) n& j* Y! y4 [2 u+ j COLOR { 0, 0, 0 }
) J/ r0 X; M3 _2 w, I' u ALPHA = 255
9 G* @+ M) P3 l- g2 X }
) h x+ F. n: M7 j; F6 l
6 l; g* b! {( _) S0 }- E; h, ? LAYER( k! C+ L, Q/ F+ h" H1 d
{5 T: B- A* l2 [# X6 ^9 N% E
OFFSET_X = 1( N) {+ y! e4 i, y' p+ b
OFFSET_Y = -1
! A3 O6 E( q/ Q* i! B COLOR { 0, 0, 0 }
g2 ?" d) T4 \ O. Q ALPHA = 255* Y2 A3 a4 B, M9 V1 ^
}* v% e' A- r/ G% o$ L
+ `6 g; i: f7 w' P8 _# I
. b0 `8 d: H0 z+ U& B/ h LAYER
4 n D, o* f5 W- O7 P4 q% Q, U0 W {8 ~/ I# B+ i) g- t# ~
OFFSET_X = 0 ^. q: Z( i0 g- j8 M b9 o
OFFSET_Y = 0
# k1 O$ J0 B' y5 V COLOR { 255, 0, 0 }
8 s" v7 z6 v1 z8 `! F ALPHA = 255. w/ [7 d8 _! L- ?7 q1 p4 P9 |: O
}/ x3 ^" ^* |0 x
}5 J6 m& b# p6 S
png图像就不用了? |