You are not logged in.
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
probably the width / height is not set correctly on your code
Offline
I already change my converter to put warning when those things happen!
Offline
_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
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
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
Thanks!
Offline
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