[cairo] Drawing text

Dominic Lachowicz domlachowicz at gmail.com
Mon Sep 7 08:45:11 PDT 2009

On Mon, Sep 7, 2009 at 11:01 AM, Donn<donn.ingle at gmail.com> wrote:
> On Monday 07 September 2009 16:53:33 ecir hana wrote:
>> is it somehow possible to draw a text with cairo which loads the
>> character shapes from a font file
> If cairo can do that I would like to know too. AFAIK a font needs to be
> installed already.

You should be able to use Cairo with FreeType loading fonts from
files. See the documentation for

As for Ecir's "dx" question, see cairo_show_glyphs(). You can use
cairo_glyph_t's "x" offset to achieve the effect you want.


More information about the cairo mailing list