You are not logged in.

  • Index
  •  » General Help
  •  » Font Links, GRRLIB_PrintBMF zoom not implented? added a color function

#1 2009-03-08 21:26:29

linus
Member

Font Links, GRRLIB_PrintBMF zoom not implented? added a color function

First here is a link to a ton of GRRLIB_PrintBMF and  GRRLIB_Printf fonts.

http://bmf.wz.cz/

The page displays the list of BMF fonts automatically to get fonts for GRRLIB_Printf choose gif under the BITMAP FONTS header. These will need to be converted to png before they work of course. All the fonts from Demo2 can be found here. Plus about 600 more.

If you know of any other good sites please post the link.

Second I added color to the GRRLIB_PrintBMF function like this.

change function declartion to this in GRRLIB.h and GRRLIB.c
void GRRLIB_PrintBMF(f32 xpos, f32 ypos, GRRLIB_bytemapFont bmf, u32 color, f32 zoom, const char *text, ...) {

then chage second to last line of the function to this
GRRLIB_DrawImg(0, 0, tex_BMfont, 0, 1, 1, color);

Lastly the zoom function for GRRLIB_PrintBMF is not implemented. Even though it is a param in the function. I tried messing around with GRRLIB_DrawImg(0, 0, tex_BMfont, 0, 1, 1, color); but when change the ones to zoom the postion of the image is off the screen. I can get some of the text if I write it like this GRRLIB_DrawImg(xpos, ypos, tex_BMfont, 0, zoom, zoom, color);  but the x,y position is all out out of wack.

Any suggestion or help on this would be appreciated.

Offline

 

#2 2009-03-08 21:39:55

Crayon
Bad Mother Fucker

Re: Font Links, GRRLIB_PrintBMF zoom not implented? added a color function

The GRRLIB_PrintBMF function is still work in progress, a lot of changes going on will have a direct impact on the function.

Offline

 

#3 2009-03-25 11:01:08

spiffen
Member

Re: Font Links, GRRLIB_PrintBMF zoom not implented? added a color function

Anyone know any tools for creating BMF fonts from TT fonts? I'm after the variable character width functionality that you get with BMF fonts..

Offline

 
  • Index
  •  » General Help
  •  » Font Links, GRRLIB_PrintBMF zoom not implented? added a color function

Board footer

Powered by FluxBB