3.1 Overview

There are two different ways of using Pangomonium: You can either access the Pango and Cairo APIs directly through a low-level interface or you can use Pangomonium's high-level interface which maps some of Pangomonium's features to standard Hollywood functions.

Using the high-level interface is really easy and extends Hollywood functions like SetFont() and TextOut() to operate through Pangomonium, enabling them to support advanced text layouts like right-to-left or colored glyphs (emojis). If you just want to draw some text and you don't need any fine-tuned control over the text rendering process, the high-level interface is the way to go for you.

Besides the high-level interface that extends Hollywood's text library, Pangomonium also has a second high-level interface. In contrast to the first one, the second high-level interface replaces Hollywood's vector graphics library and can be activated by calling Hollywood's SetVectorEngine() function and passing "pangomonium" as the argument.

The low-level interface, i.e. accessing Pango and Cairo's API directly, is useful if you need more fine-tuned control over the text rendering. The low-level interface allows you to configure all kinds of options in Pangomonium and makes it possible to access all of Pango and Cairo's advanced features, allowing you to meticulously take control over everything.


Show TOC