Registry / other / freetype-gl

freetype-gl

JSON →
library1.0vcpkgunverified

OpenGL text using one vertex buffer, one texture and FreeType.

vcpkg install freetype-gl
INSTALL
IMPORT
SIG · FREETYPE-GL
F
freetype-gl
othercppv1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

freetype-gl/freetype-gl.h
#include <freetype-gl/freetype-gl.h>

Load a font for OpenGL text rendering

#include <freetype-gl/freetype-gl.h> #include <GL/glew.h> #include <GLFW/glfw3.h> int main() { // Initialize GLFW and GLEW first // Then: texture_font_t* font = texture_font_new_from_file(NULL, "path/to/font.ttf", 48); if (font == NULL) { fprintf(stderr, "Failed to load font\n"); return 1; } // Use font for rendering text texture_font_delete(font); return 0; }
Debug
Known issues
gotchaRequires OpenGL context and FreeType library; not header-only.
fix
Link against OpenGL, GLEW, GLFW, and FreeType.
affects: *
Upgrade
Version history
1.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources

No resource links recorded.

freetype-gl — pip install freetype-gl · libregistry