[Pharo-dev] [ANN] FreeType binding

Thibault Raffaillac thibault.raffaillac at inria.fr
Tue Sep 6 09:37:41 EDT 2016


Hello,

I am happy to announce the release of a new FreeType binding :) http://smalltalkhub.com/#!/~ThibaultRaffaillac/UFFIFreeType
I use it to render glyphs with OpenGL, so a few features are still missing compared to FT2: gamma-space blitting (should belong to OSWindow?), GlyphForm class, and subpixel rendering (patch GlyphSlot>>form).

FT_Library startUp: true.
face := FT_Face fromFile: 'Arial.ttf' index: 0.
glyph := face glyph.
face setPixelWidth: 0 height: 12.
face loadChar: $x asUnicode flags: 4.
image := glyph form.

Cheers,
Thibault



More information about the Pharo-dev mailing list