You are not logged in.

#1 2008-12-15 20:45:35

xlilcasper
Member

Custom font

Trying to make a custom font. Here's what i'm doing.

Load up WiiBuilder, choose System, 22, Regular, Yes.
Click Generate Image, Save as System_22.png
Got to folder run raw2c System_22
I then follow the tutorial, include header files, create U8 pointer, then try to draw text on the screen. This works....

GRRLIB_Printf(100,100,tex_font1,0xFFFFFFFF,2,"Hello World!",var);
this does not....
GRRLIB_Printf(100,100,tex_System_22,0xFFFFFFFF,2,"Hello World!",var);

No error, just nothing writes to the screen. Any idea what i'm doing wrong?

Offline

 

#2 2008-12-16 01:07:13

Crayon
Bad Mother Fucker

Re: Custom font

Hi, why do you use raw2c for the conversion between .png to .h, WiiBuilder was design to do the conversion, just drag the PNG file in the list and tell me if there is a warning, it seems your font could be two big.

PS: witch tutorial are you talking about?

Offline

 

#3 2008-12-25 14:11:25

wplaat
Member

Re: Custom font

Hi,

See the "freetype and grrlib v3.0" topic for a must better solution.

wplaat

Offline

 

Board footer

Powered by FluxBB