Skip to main content

All Questions

Tagged with
2 votes
0 answers
792 views

Manual per-glyph rendering with SDL_TTF

I'm trying to create a font atlas with SDL_TTF. My idea was to create an SDL_Surface for every character using ...
neverov's user avatar
  • 121
2 votes
1 answer
189 views

Scale screen space quads (used in font rendering)

I have quads positioned in <0, 1> x <0, 1> coordinates. I use this system for font rendering. In vertex shader I have: ...
Martin Perry's user avatar
  • 1,126
3 votes
1 answer
300 views

How to maintain char widths of non-monospace fonts?

Having a font via spritesheet (as PNG), the easiest way to render fonts from that is just showing chars as monospace, but as you can imagine, that looks not pretty with chars like ...
nitwhiz's user avatar
  • 47
2 votes
1 answer
416 views

How do I render Hindi text in Libgdx?

How do I render Hindi text in Libgdx using any font? For example, I want to render the word "प्रकार". Here is what I have, so far: ...
arv's user avatar
  • 66
2 votes
2 answers
2k views

How to disable Monogame pixel font antialiasing?

I am using Monogame 3.4 (I have held off upgrading to 3.5) and am on Windows 10. I'm drawing using the PointClamp setting (as suggested in this similar question). Whenever I render text with ...
Brady Welch's user avatar
0 votes
1 answer
125 views

Why not draw a custom font with lines and/or polygons?

Reasons/advantages I see: More flexible procedural animation. Completely custom font. Performance (no texturing or high-poly)? No assets (unless data-driven). Multi-resolution compared to sprite ...
Den's user avatar
  • 1,208
1 vote
0 answers
514 views

LibGDX, BitmapFont strange position behavior

I'm using a Stage of LibGDX to draw a text, in my case the FPS. But after resizing, the position of the text does not behave properly. As you can see in the attached gif: The resizing function does ...
okaay's user avatar
  • 11
7 votes
1 answer
4k views

Drawing fonts with LWJGL3 with OpenGL

I'm very sorry if this question has already been answered, but since I've been struggling with this for many days I thought I'd give it a shot here. My goal is to somehow render some text on the ...
Allar Viinamäe's user avatar
0 votes
2 answers
1k views

Kerning between glyphs using SDL2_ttf

I'm loading a number of characters (using SDL2_ttf) into a texture atlas to improve performance. The glyphs can be separately rendered correctly, however, how can you find the kerning distance ...
Eamonn's user avatar
  • 1
0 votes
2 answers
6k views

LWJGL Text Rendering

Currently in my project I am using LWJGL and the Slick2D library to render text onto the screen. Here is a more specific example: ...
Trixmix's user avatar
  • 126
17 votes
5 answers
20k views

Preferred way to render text in OpenGL [closed]

I'm about to pick up computer graphics once again for an university project. For a previous project I used a library called FTGL that didn't leave me quite satisfied as it felt kind of heavy (I tried ...
dukeofgaming's user avatar
5 votes
2 answers
2k views

How can I render fonts in a game with correct hinting?

I've used angel code's bitmap font generator quite a bit; though it's very good, I wonder if there would be a way to use the hinting information to provide a better and more readable result, by using ...
Richard Fabian's user avatar