Category : truetype

I’m working on an OpenGL project and I’m using stb_truetype to render text in my game. The first font I tried (which was a .ttf file which had an OpenType format and TrueType outlines) worked perfectly, the letters and the numbers rendered. When I switched to another font (.ttf with TrueType formatting) the numbers worked ..

Read more

I’m currently writing a gui and wanted to implement sdl_ttf to my project, the problem is font loading: no font wants to actually load, TTF_OpenFont errors with Error writing to datastream. bool gui::initalize() { if (SDL_Init(SDL_INIT_VIDEO) != 0) { printf("SDL_Init error: %sn", SDL_GetError()); return 1; } this->window = SDL_CreateWindow("Speller", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 800, 800, 0); this->renderer ..

Read more