[cairo] pango + cairo userfont

Behdad Esfahbod behdad at behdad.org
Tue Apr 8 12:01:04 PDT 2008


On Tue, 2008-04-08 at 14:46 -0400, Carl Worth wrote:
> 
> No, you definitely don't need to wait for any of this work to be able
> to use pango and cairo to render with any installed system-font.

Correct.

> This new work is actually about being able to render non-installed,
> non-system fonts, (like something like a SVG file that includes an
> embedded "font" in a format that freetype knows nothing about).

Correct.

> If you are finding and selecting fonts with fontconfig and freetype
> then you should be able to use cairo_ft_font_face_create_for_pattern
> and cairo_ft_font_face_create_for_ft_face together with
> cairo_set_font_face to render with any font that you can select.

But then cairo_set_font_face is irrelevant when using pangocairo.

To answer the original question, if you just want to use pango for font
enumeration, selection, and rendering, it works today.  If you want to
choose the font using freetype and fontconfig yourself and just have
pango use it for rendering, it doesn't work yet.

-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759



More information about the cairo mailing list