> Here's what I'm doing basically: > > int dpi = 72 > int point = 12 > FT_Init_FreeType > FT_New_Face fontpath > FT_Set_Char_Size(face, point * dpi, 0, 0, 0); > FT_Load_Char(face, glyph_i, FT_LOAD_RENDER); > > I use the resulting face->glyph and copy its bitmap into a > char array that I > use to set the texture map with. I can think of two > alternatives for why it's > not working right: > > 1. I'm misusing the FT API here for this font. The point size > isn't set > directly, I'm just assuming that "12 * 72" is the right > number, maybe that's > wrong, or maybe I'm doing something else wrong. >
It's wrong, you should be calling: FT_Set_Char_Size( face, point*64, 0, 72, 72 ); instead. The "width" and "height" parameters are in units of 1/64 points. Hope this helps, - David Turner - The FreeType Project (www.freetype.org) > 2. My OpenGL texture mapping method is for some other reason > breaking down > with this font. > > > Shayne > > > _______________________________________________ > Freetype-devel mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/freetype-devel > *********************************************************************************** Information contained in this email message is confidential and may be privileged, and is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. *********************************************************************************** _______________________________________________ Freetype-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/freetype-devel
