[ft-devel] Ligature support in Freetype?

2012-06-27 Thread Jay Vaughan
Hello freetype-devel'ers, I was wondering if anyone on this list might be able to help me work out the effort required to support the FF Chartwell font in freetype2: https://www.fontfont.com/how-to-use-ff-chartwell This is a font which uses ligatures to create small, interesting,

Re: [ft-devel] Ligature support in Freetype?

2012-06-27 Thread Werner LEMBERG
I was wondering if anyone on this list might be able to help me work out the effort required to support the FF Chartwell font in freetype2: https://www.fontfont.com/how-to-use-ff-chartwell Direct support in FreeType? Nope. You need either Pango, ICU, or HarfBuzz which are OpenType

Re: [ft-devel] Ligature support in Freetype?

2012-06-27 Thread Behdad Esfahbod
On 06/27/2012 07:41 AM, Jay Vaughan wrote: Direct support in FreeType? Nope. You need either Pango, ICU, or HarfBuzz which are OpenType libraries on top of FreeType (and others also); then it works out of the box. Thanks for the answer! I guess we're already using freetype2 in moai,

Re: [ft-devel] Ligature support in Freetype?

2012-06-27 Thread Behdad Esfahbod
On 06/27/2012 08:27 AM, Werner LEMBERG wrote: Here's a simple example: https://github.com/anoek/ex-sdl-cairo-freetype-harfbuzz Okay, thanks for that .. it looks like something I can work with. I guess I'll have to commit to adding pango or harfbuzz support to MOAI, then .. time to do

Re: [ft-devel] Ligature support in Freetype?

2012-06-27 Thread Jay Vaughan
After applying that patch, it still doesn't build. j@aaa-build:~/Desktop/ex-sdl-cairo-freetype-harfbuzz$ make gcc ex-sdl-cairo-freetype-harfbuzz.c --std=c99 -g -Wall --pedantic `pkg-config freetype2 --cflags` `pkg-config glib-2.0 --cflags` `pkg-config harfbuzz --cflags` `pkg-config cairo-ft

Re: [ft-devel] Ligature support in Freetype?

2012-06-27 Thread Behdad Esfahbod
On 06/27/2012 08:33 AM, Jay Vaughan wrote: ex-sdl-cairo-freetype-harfbuzz.c:146:13: error: too few arguments to function ‘hb_buffer_create’ /usr/local/include/harfbuzz/hb-buffer.h:63:1: note: declared here ex-sdl-cairo-freetype-harfbuzz.c:151:13: error: too many arguments to function

Re: [ft-devel] Ligature support in Freetype?

2012-06-27 Thread Jay Vaughan
Great - thanks for pointing that out. The sample is now running. I've tried add FF Chartwell to the app, but do not quite yet know how to tell harfbuzz to use the StylisticSet01/ligatures feature of the font.. yet. Any chance you guys want to meet in IRC? -- Jay Vaughan j...@allaboutapps.at

Re: [ft-devel] Ligature support in Freetype?

2012-06-27 Thread Behdad Esfahbod
In the call to hb_shape(), you need to pass in features. Sure, I'm on the #harfbuzz channel on freenode. On 06/27/2012 08:47 AM, Jay Vaughan wrote: Great - thanks for pointing that out. The sample is now running. I've tried add FF Chartwell to the app, but do not quite yet know how to tell

Re: [ft-devel] Ligature support in Freetype?

2012-06-27 Thread Jay Vaughan
Great, I have it working! And in fact, Chartwell looks pretty good - although I haven't set up the font sizes and coloring to really show it off, this screenshot at least shows that it works very smoothly. So, I'll try to add harfbuzz integration into the MOAI client next .. Thanks for your

Re: [ft-devel] Ligature support in Freetype?

2012-06-27 Thread Jay Vaughan
I'd be happy to contribute back a working example if I get this fixed .. The working example, wherein Chartwell is demonstrated: http://w1xer.at/ex-sdl-cairo-freetype-harfbuzz_CHARTWELL_HACK.c Thanks for the help you guys, I'll be moving forward on harfbuzz+moai integration next .. j.