Skip to content

anydream/glyphy

 
 

Repository files navigation

GLyphy is a signed-distance-field (SDF) text renderer using OpenGL ES2 shading language.

The main difference between GLyphy and other SDF-based OpenGL renderers is that most other projects sample the SDF into a texture. This has all the usual problems that sampling has. Ie. it distorts the outline and is low quality.

GLyphy instead represents the SDF using actual vectors submitted to the GPU. This results in very high quality rendering, though at a much higher runtime cost.

See this video for insight to how GLyphy works:

http:https://vimeo.com/behdad/glyphy

Dicussions happen on:

https://groups.google.com/forum/#!forum/glyphy


On GNOME3 and possibly other systems, if the vsync extension is not working (ie. pressing v in the demo doesn't have any effect), try running with vblank_mode=0 env var.

Compilation instructions on Mac OS X:

  1. Install Xcode and command line tools (as of Xcode 4.3.x, from within Preferences -> Downloads).
  2. Install MacPorts.
  3. sudo port install automake autoconf libtool pkgconfig freetype
  4. ./autogen.sh
  5. make

Releases

No releases published

Packages

No packages published

Languages

  • C 78.2%
  • HTML 10.6%
  • C++ 4.4%
  • Shell 2.6%
  • Makefile 1.4%
  • Python 1.3%
  • Other 1.5%