You are not logged in.

#1 2009-06-07 15:19:08

Physx
Member

Fonts...

Why do fonts not work unless they are either 256, 512, 786, or 1024 in Length? 2048 doesnt even work.

This is the WORST font system i have EVER used and i would suggest you come up with a better method of displaying fonts or at least make some decent  doumentation.

Any font that is not in any of the lengths above do NOT display correctly, they are corrupt like when using images that are not a multipul of 4.

Can any1 explain what the last value in the font code means

GRRLIB_InitTileSet(&tex_console, 12, 24, 0);

and can any 1 please help me get a decent readable size 8/12 font?

Iv been using wiibuilder.

Last edited by Physx (2009-06-07 15:43:40)

Offline

 

#2 2009-06-07 16:11:39

Crayon
Bad Mother Fucker

Re: Fonts...

The 1024px limit and multiple of 4 is a texture problem on the Wii. So it's not related to GRRLIB.

If your not clever enough to split your 2048px image in to two rows to make it 1024 pixel, that's not not our problem.

Taken from the code:

Code:

/**
 * Initialize a tile set.
 * @param tex The texture to initialize.
 * @param tilew Width of the tile.
 * @param tileh Height of the tile.
 * @param tilestart Offset for starting position (Used in fonts).
 */

So it means that if your fist char in your image is a space (32 in ASCII), you need to set the offset at 32.

If the comments in the code are too hard to read, download the documentation: http://grrlib.googlecode.com/files/doc%204.0.0.zip

Offline

 

#3 2009-06-07 21:02:53

Physx
Member

Re: Fonts...

The 1024px limit and multiple of 4 is a texture problem on the Wii. So it's not related to GRRLIB.
--
All the more reason to support True Type Fonts

If your not clever enough to split your 2048px image in to two rows to make it 1024 pixel, that's not not our problem.
--
Easier Said Then Done. Update your program With Image Split then bundle it with GRRLib for added Functionality big_smile GRRLib is supposed to be a starting point for Wii Programming, so why not have tools to support it ?

Offline

 

#4 2009-06-08 16:24:34

Crayon
Bad Mother Fucker

Re: Fonts...

Physx wrote:

The 1024px limit and multiple of 4 is a texture problem on the Wii. So it's not related to GRRLIB.
--
All the more reason to support True Type Fonts

If you need an example of code with TTF check my code: http://wiibrew.org/wiki/Wii-Tac-Toe
Or make a search for FreeType on this forum.

Offline

 

#5 2009-06-08 17:22:46

Physx
Member

Re: Fonts...

Crayon wrote:

Physx wrote:

The 1024px limit and multiple of 4 is a texture problem on the Wii. So it's not related to GRRLIB.
--
All the more reason to support True Type Fonts

If you need an example of code with TTF check my code: http://wiibrew.org/wiki/Wii-Tac-Toe
Or make a search for FreeType on this forum.

Thank You

Offline

 

#6 2009-06-08 18:01:45

Crayon
Bad Mother Fucker

Re: Fonts...

There is a simple implementation of GRRLIB + libfreetype available here: http://wiibrew.org/wiki/File:Grrfreetype.zip

I never used it, so I might not be able to help you.

Offline

 

Board footer

Powered by FluxBB