[ft-devel] FT_Set_Char_Size()

2011-09-21 Thread Ermias Ayale
Hallo anyone at FreeType, If any one could answer my (silly?) question. I need to use FT_Set_Char_Size() to set my character size at point 7,25 (verdana). Since this function accepts FT_F26dot6 as the char height and width, I am wondering how I can set point 7,25 without losing data if I cast

Re: [ft-devel] FT_Set_Char_Size()

2011-09-21 Thread Werner LEMBERG
If any one could answer my (silly?) question. I need to use FT_Set_Char_Size() to set my character size at point 7,25 (verdana). Since this function accepts FT_F26dot6 as the char height and width, I am wondering how I can set point 7,25 without losing data if I cast 7,25 to FT_F26dot6. As

Re: [ft-devel] [ANN] Freetype/OpenGL (with good rendering quality)

2011-09-21 Thread Alexei Podtelezhnikov
I think you can pack the bin better if you start from the largest size. There is tons of empty space at the bottom that could easily be filled with small glyphs. Or go bottom-up for more natural fill. In other words, I bet you can pack more glyphs into 512x512. I am not sure I understood how you

Re: [ft-devel] [ANN] Freetype/OpenGL (with good rendering quality)

2011-09-21 Thread Nicolas Rougier
Thanks for the tips, I'll give it a try. One problem is that glyphs are loaded on demand and consequently I do not have full control. The subpixel positionning is made using a shader. I display the glyph at a given integer coordinate and send along the float component: If glyph must be

Re: [ft-devel] [ANN] Freetype/OpenGL (with good rendering quality)

2011-09-21 Thread Behdad Esfahbod
Hi Nicolas, This is great stuff! Humm, may I suggest that you write a PangoRenderer implementation around this? You can then render any language... behdad On 09/21/11 06:55, Nicolas Rougier wrote: Hi Folks, You might be interested in the following code that allow to render freetype