[Fontconfig] how to enforce scalable fonts

James Cloos cloos at jhcloos.com
Thu Jan 20 12:55:48 PST 2011


>>>>> "WL" == Werner LEMBERG <wl at gnu.org> writes:

WL> For out project (lilypond) it's quite important to have fontconfig
WL> return only scalable fonts.  Perhaps it makes sense to add a new
WL> function to fontconfig which controls that?

You could try having a project-specific top-level fonts.conf.  It should
have an <include> block which includes the system's fonts.conf (the
location of which should get chosen by ./configure) and which then
rejects bitmap fonts.  Something like:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Start with the system conf -->
 <include ignore_missing="yes">/etc/fonts/fonts.conf</include>
<!-- Reject bitmap fonts -->
 <selectfont>
  <rejectfont>
   <pattern>
     <patelt name="scalable"><bool>false</bool></patelt>
   </pattern>
  </rejectfont>
 </selectfont>
</fontconfig>

-JimC
-- 
James Cloos <cloos at jhcloos.com>         OpenPGP: 1024D/ED7DAEA6


More information about the Fontconfig mailing list