TheCherno / Sparky

Cross-Platform High Performance 2D/3D game engine for people like me who like to write code.
Apache License 2.0
1.1k stars 221 forks source link

Font Metrics #92

Closed TheCherno closed 8 years ago

TheCherno commented 8 years ago

Sparky needs to support font metrics (i.e. measuring the size of a string using a certain font). This is vital for UI, and needs to be done as soon as possible. FreeType supports all of this, it would just be a matter of hooking it up and creating an API for it (probably in the Font class, and additionally possibly exposed through Label).

TheCherno commented 8 years ago

Added in rev aa2d8f7.