You are not logged in.

#1 2008-11-09 13:21:36

questmaster
Member

[RESOLVED] Grrlib converter and grrlib -> font usage

Hi all,

i tried to generate a font with the GRRLIB converter and use it with the standard grrlib_printf(), but i just got garbage on the screen (with the font1, provided by grrlib the code works).
Do i have to do/use something special to get the fonts working?!

Offline

 

#2 2008-11-10 01:12:29

_CONEJO
Member

Re: [RESOLVED] Grrlib converter and grrlib -> font usage

probably the width / height is not set correctly on your code

Offline

 

#3 2008-11-10 03:21:59

Crayon
Bad Mother Fucker

Re: [RESOLVED] Grrlib converter and grrlib -> font usage

I already change my converter to put warning when those things happen!

Offline

 

#4 2008-11-11 18:26:50

questmaster
Member

Re: [RESOLVED] Grrlib converter and grrlib -> font usage

_CONEJO wrote:

probably the width / height is not set correctly on your code

How can i determine the correct width/height? I tried to divide the width of the generated image by the number of char (128?) but i got 31 as result and should height/width not always be a multiple of 4?! (just for completeness the height was 40 pixels).

Crayon wrote:

I already change my converter to put warning when those things happen!

Uhm, sorry i didn't get that. Changed when what things happen? Which version? i used version 0.4 from wiibrew.


Thanks for your help guys!

Offline

 

#5 2008-11-11 18:59:51

JustWoody
Member

Re: [RESOLVED] Grrlib converter and grrlib -> font usage

questmaster, if the width of the individual characters is not a multiple of 4 then it will not work.

I would suggest editing the png to make each character 32 wide

You have also got to bear in mind that the max width of a png in grrlib is 1024 and this sounds like its nearly 4 times that so will not work, you can use my font routines posted here http://grrlib.santo.fr/forum/viewtopic.php?id=33 which allow you to do multiple rows

Last edited by JustWoody (2008-11-11 19:03:12)

Offline

 

#6 2008-11-11 19:56:43

questmaster
Member

Re: [RESOLVED] Grrlib converter and grrlib -> font usage

JustWoody wrote:

questmaster, if the width of the individual characters is not a multiple of 4 then it will not work.

I would suggest editing the png to make each character 32 wide

You have also got to bear in mind that the max width of a png in grrlib is 1024 and this sounds like its nearly 4 times that so will not work, you can use my font routines posted here http://grrlib.santo.fr/forum/viewtopic.php?id=33 which allow you to do multiple rows

Hm, ok. 1024 is a point. I just thought that the grrlib converter produces font-png's that work with grrlib right away...
Than i know what to do/try next wink

Thanks!

Offline

 

#7 2008-11-11 20:20:01

Crayon
Bad Mother Fucker

Re: [RESOLVED] Grrlib converter and grrlib -> font usage

Crayon wrote:

I already change my converter to put warning when those things happen!

Hi, I meant:
In the next release of my converter there will be warnings when trying to covert a non standard image file. I even added a loader to send DOL files to the Homebrew Channel.

Last edited by Crayon (2008-11-11 20:21:52)

Offline

 

Board footer

Powered by FluxBB