Mercurial > repos > tabletprog
changeset 330:e70f9d3f19f8
Turn off hinting in freetype sample as hinting does not play nice with using font units for layout
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 28 Mar 2015 13:26:44 -0700 |
parents | eef8a5cea812 |
children | 61f5b794d939 |
files | samples/freetype.tp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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