I've ported cairo to supersede my old self-made painting libraries I've written for the GUI of Ghost. I have freetype2 as the backend. I had a text layouting functionality that used the glyphs provided by freetype and did the layouting itself. This works okay for normal text, but will fail for UTF-8 and those special fancy-text-things like ligatures. Cairo itself provides some-sort-of API for text rendering, but when searching for info I mostly read that it only has a toy API and you should use something proper like Pango to layout glyphs for UTF-8 texts.
So I tried to port Pango - I ported expat, fontconfig and harfbuzz for the missing dependencies.. But what's still missing is "glib" - that Gnome/GTK utility library. I'm not really willing to port that sort of stuff on my OS..
Questions I have for anyone who has some experience with this:
* Can you properly layout UTF-8 only with Cairo? Are there any sources/documentation that show how?
* Alternatively, can you build Pango without glib?
* Or is there a good, lightweight alternative to Pango that doesn't bring all that bulk and just layouts text?
It really bugs me that those libraries use thousands of dependencies and completely loose portability; why the hell am I forced to have that weird fontconfig stuff to layout text

Any help is greatly appreciated.
BTW: I thought about writing a little in the Wiki about how to program a more complex user interface, if there is interest let me know.
Greets