• drott's avatar
    Filter font list, use Fontconfig and build on Ozone · e70ca0a2
    drott authored
    Since we dropped support for rendering Type 1 fonts in Chrome, we should
    filter the list of fonts that can be configured as defaults to only
    display fonts that have the right font format, i.e. TrueType or CFF.
    
    A a side effect, this allows us to build the font list enumeration for
    ozone as well, as it is only dependent on Fontconfig after this CL, not
    dependent on Pango anymore.
    
    For backwards compability with the old implementation, we're adding
    three Fontconfig alias families Sans, Serif and Monospace to the list,
    since our default settings on Linux included the "Monospace" family for
    the fixed width font.
    
    BUG=630508,457307
    
    Review-Url: https://codereview.chromium.org/2278143002
    Cr-Commit-Position: refs/heads/master@{#414677}
    e70ca0a2
content_common.gypi 27.1 KB