Skip to content

rougier/JCGT-2013

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code for Nicolas P. Rougier, Higher Quality 2D Text Rendering, Journal of Computer Graphics Techniques (JCGT), vol. 2, no. 1, 50-64, 2013
Available online http://jcgt.org/published/0002/01/04/


This python code demonstrates higher quality 2D texture font using subpixel
rendering and positioning. You'll need the freetype library with the subpixel
rendering option (FT_CONFIG_OPTION_SUBPIXEL_RENDERING in
freetype/config/ftoption.h).

You'll also need the numpy library available from: http://numpy.scipy.org
and the OpenGL python bindings available from: http://pyopengl.sourceforge.net

Run the demo.py and enjoy...

Note that each line is shifted by 0.1 pixels...