PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Problems creating bitmap fonts

I have had this problem many times but I still don't know what the reason behind it is. I am hoping someone can help me figure this one out.

I create a font with Metalshards fontmaker. I then go into photoshop and outline the font with a boarder. After I put the boarder on, the font no longer works. I am not messing up the kerning lines or the background color. Sometimes I am able to do this with no problem, but sometimes I cant get it to work. I can't seem to pin down the reason it wouldn't work, any suggestions?

By "can't get it to work" I try to display the font and it doesn't display.

Thanks,
Dylan
pBackBuffer->DrawText(120, 150, TEXT("HELLO WORD"), &m;_FontArialB10W, GDDRAWTEXT_CENTER, NULL, 0, NULL);



// Try this. Just change the m_FontArialB10W with your font name. Let me know if it works. Regards.
I tried your line of code and with my outlined font it still shows nothing, but with my original font it works fine as does all my other text.
why dont u post your bitmap font so we can try too.
I have two font questions.

First, since you specify the ColorKey in the call to CreateFont, is it really necessary to set the ColorKey on the surface as well? Or is it ignored?

Second, if you don't specify a TRACKING value, what value is used by default? Is it zero?
DillRye, post your font, or send it to me and I'll take a look at it. Be sure that your font string matches the number of characters in your font. Usually the problem is that characters get blended together or the quotation mark gets separated into two portions.
Ok, thanks a TON ppc studios, i got it to work. the I and J were touching.
Glad to help! :D
Anyone know the answer to my two questions?
mle, I think we all expected you to answer your own question a few minutes later :) I think we were all just waiting to see how many posts you actually made conversing with yourself :)
:)
First, since you specify the ColorKey in the call to CreateFont, is it really necessary to set the ColorKey on the surface as well? Or is it ignored?

Second, if you don't specify a TRACKING value, what value is used by default? Is it zero?

----

You don't need to set colorkey on the surface, this is done by CreateFont.

Default tracking is zero.
Thanks! That's what I suspected, but I wanted to be sure, and I didn't want to just try it and assume it works because you never know if it's guaranteed or not.