Sparky
Sparky copied to clipboard
ep 19 no text is rendering but it draws the black blocks of the letters
can any one help my font draws black blocks they are the right shapes for each letter but there is no visible letter in them . link to discussion and some code
https://www.reddit.com/user/LordVeggie/comments/9eyd1l/freetype_gl_not_rendering_any_font_i_get_a_black/
found the solution down load the code of cherno (freetype gl only and past it over the freetype code you down loaded from freerype gl website ) . then go to line 303 in texture-atlas.c and make the( #if 0 TO A #if 1) then you should have the text rendering
The reason probaly is in new version of freetype-gl font data wasn't bound when you call ftgl::texture_font_new_from_file. You have to bind it manually. (my english is bad, forgive me).