Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 2.1 KB

README.md

File metadata and controls

43 lines (31 loc) · 2.1 KB

GLLabel - GPU Vector Text Rendering

A C++ library for rendering vector text on the GPU.

Work in progress. You probably don't want to use this yet.

This rendering method allows text to be arbitrarily scaled and rotated, just as it could be with CPU-rendered text. The glyphs are loaded in real-time from font files. This project was made possible by Will Dobbie's algorithm for GPU rendering vector shapes and text defined by quadratic Bézier curves. This project builds on that algorithm by implementing a framework to load and display arbitrary text rather than the pregenerated data set used in his demo.

Related / relevant work

Demo

Demo video

Building

Library dependencies

  • C++14
  • GLEW
  • GLM
  • FreeType2 (used only to load outline data from font files, not for rasterization)

Additional demo dependencies

  • GLFW

To build the library and demo, modify the _INCLUDES and _LIBS lines at the top of makefile to match your system's configuration, then run make.

License

The code in this project is licensed under the Apache License v2.0.