What are some good cross-platform alternatives to Windows-specific 2D APIs? I'm looking for an API for rendering simple geometric objects as well as an API for rendering text with subpixel antialiasing (ClearType) and OpenType support, specifically support for hinting.
Asked
Active
Viewed 2,015 times
2 Answers
1
OpenGL is the defacto cross-platform graphics API. OpenGL supports the FreeType and OpenType libraries. Newer versions of FreeType (2.7+) have support for sub-pixel hinting similar to what DirectWrite offers.

D. Christopher
- 119
- 5
-
1Apparently, OpenGL does not guarantee identical pixel output across implementations. – Dmitri Nesteruk Jul 16 '17 at 12:41
1
Have a look at the Simple DirectMedia Layer (SDL), it contains exactly what you need. SDL_ttf is an extension to libsdl that provides functionality for rendering of text.

arjen1988
- 109
- 1
- 5