I can''t find FontConfig documentation that describes how exactly a client can request a default sans, sans serif, or monospaced font. That is, there are no special FontConfig "keywords" for these. I grepped the 2.8.0 source code and couldn''t find anything corresponding to these keywords or similar. So, is it simply up to the person who sets up the config files as to what keywords should be used ("sans-serif", "sans_serif", "sans", "_sans", etc)? (I tried searching the archives but didn''t find anything conclusive. Apologies in advance if I missed something.) Best, Sairus
Behdad Esfahbod
2011-Mar-02 07:37 UTC
[Fontconfig] Keywords for specifying sans, serif etc
Hi Sairus, You are right in that the library itself has no special means for default sans-serif, serif, and monospace styles. The default config, and the common usage however, uses family names "sans-serif", "serif", and "monospace" for that purpose indeed. "sans" also aliases "sans-serif". behdad On 02/28/11 21:21, Sairus Patel wrote:> I can''t find FontConfig documentation that describes how exactly a client can request a default sans, sans serif, or monospaced font. That is, there are no special FontConfig "keywords" for these. I grepped the 2.8.0 source code and couldn''t find anything corresponding to these keywords or similar. > > So, is it simply up to the person who sets up the config files as to what keywords should be used ("sans-serif", "sans_serif", "sans", "_sans", etc)? > > (I tried searching the archives but didn''t find anything conclusive. Apologies in advance if I missed something.) > > Best, > Sairus > > _______________________________________________ > Fontconfig mailing list > Fontconfig at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/fontconfig >