# HG changeset patch # User Michael Pavone # Date 1427574404 25200 # Node ID e70f9d3f19f891d3905cb0058c5f78fa31c6292d # Parent eef8a5cea8121d086cebf43310c6efd559cae8df Turn off hinting in freetype sample as hinting does not play nice with using font units for layout diff -r eef8a5cea812 -r e70f9d3f19f8 samples/freetype.tp --- a/samples/freetype.tp Sat Mar 28 13:26:03 2015 -0700 +++ b/samples/freetype.tp Sat Mar 28 13:26:44 2015 -0700 @@ -19,6 +19,7 @@ import: [ render linearDesign + noHinting ] from: (freetype loadFlags) makeAtlas <- :renderer face fontSize dpi color { @@ -29,7 +30,7 @@ //TODO: Use a bytearray once that has an append method pixels <- #[] foreach: (face charmap) :char glyphIdx { - face loadGlyph: glyphIdx flags: (render or linearDesign) + face loadGlyph: glyphIdx flags: (render or linearDesign or noHinting) pixelStart <- pixels length _width <- slot bitmapWidth _height <- slot bitmapRows