[HarfBuzz] An example, another variation of anoek/ex-sdl-cairo-freetype-harfbuzz

Alexander Sabourenkov llxxnntt at gmail.com
Fri Jan 4 15:37:34 PST 2013


Hello.

Here:

https://github.com/lxnt/ex-sdl-freetype-harfbuzz

Is a variant that does not depend on Cairo, glib or ICU.

For HarfBuzz itself to not depend on those requires tweaks to its build system.

The example does not use intermediate FT_Bitmaps, it  demonstrates
rendering directly
into an SDL_Surface or, with minor changes, any 32 bpp
surface/texture/PBO/whateveryounameit.

The origin at  https://github.com/anoek/ex-sdl-cairo-freetype-harfbuzz
has a nasty bug in that it tries
to set  font point size with a double instead of Freetype's 26.6 fixed
point. With Cairo it works because Cairo
itself resets the point size at first frame drawn. When one disables
Cairo, well, it takes some head-scratching.

-- 

./lxnt



More information about the HarfBuzz mailing list