freetype-opengl-experiments
freetype-opengl-experiments copied to clipboard
A simple C++ text renderer using OpenGL, FreeType, and Harfbuzz. Supports subpixel antialiased rendering, ligatures, emojis, as well as having great performance.
Development
NOTE: These steps are copied from the worflow file which is the most up-to-date source on how to build the project.
git clone https://github.com/mrandri19/freetype-opengl-experiments
cd freetype-opengl-experiments
sudo apt-get update
sudo apt-get install libglfw3-dev libglm-dev
cmake -E make_directory build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug
cmake --build . --config Debug
Screenshots
The first text rendered with LCD Subpixel rendering.
The first emojis rendered.
The first paragraph of emojis rendered.
Emojis rendered with incorrect gamma blending.
Emojis rendered with correct gamma blending.
Side by side comparison with VSCode
Side by side comparison with Sublime Text 3