[cairo] Bug with missing fonts

Bill Spitzak spitzak at d2.com
Fri Jan 21 16:49:10 PST 2005


Keith Packard wrote:
> Around 15 o'clock on Jan 21, Ned Konz wrote:
> 
> 
>>#ifdef CAIRO_HAS_FT_FONT
>>#define CAIRO_FONT_FAMILY_DEFAULT  "serif"
>>/* XXX: Platform-specific. Other platforms may want a different default */
>>#define CAIRO_FONT_BACKEND_DEFAULT &cairo_ft_font_backend
>>#elif defined(CAIRO_HAS_ATSUI_FONT)
>>#define CAIRO_FONT_FAMILY_DEFAULT  "Monaco"
>>#define CAIRO_FONT_BACKEND_DEFAULT &cairo_atsui_font_backend
>>#endif
> 
> 
> I suggested a few days ago that the default family be font-backend 
> specific.  Is there some font matching mechanism which would allow us to 
> ask for the 'default' font somehow?

All backends should be required to accept the strings "sans", "serif", 
and "fixed" (chosen to match Xft) and do reasonable things with them.



More information about the cairo mailing list