[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#686098: Acknowledgement (After wheezy, please add symlinks to make the OTF variant available under /u/s/fonts and thus for fontconfig)



Am 31.08.2012 11:02, schrieb Fabian Greffrath:
Alternatively, it should be possible to resolve the font name clash
(e.g. TeXGyreSchola vs. TeX Gyre Schola) in fontconfig, so that only
one consistent font name is presented in applications. Then we could
make both variants available for fontconfig - and applications (or
fontconfig itself) could choose whatever suits better.

The attached fontconfig file aligns the font names of the Opentype and Type1 fonts, so they appear only once in font selectors, although both font formats are made available to fontconfig (via a symlink in /u/s/fonts/opentype).

I am, however, not an expert on fontconfig and a reviewq of someone more experienced would be appreciated.

 - Fabian


<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match target="scan">
    <test name="family">
      <string>TeXGyreAdventor</string>
    </test>
    <edit name="family">
      <string>TeX Gyre Adventor</string>
    </edit>
    <edit name="fullname">
      <string>TeX Gyre Adventor</string>
    </edit>
  </match>
  <match target="scan">
    <test name="family">
      <string>TeXGyreBonum</string>
    </test>
    <edit name="family">
      <string>TeX Gyre Bonum</string>
    </edit>
    <edit name="fullname">
      <string>TeX Gyre Bonum</string>
    </edit>
  </match>
  <match target="scan">
    <test name="family">
      <string>TeXGyreChorus</string>
    </test>
    <edit name="family">
      <string>TeX Gyre Chorus</string>
    </edit>
    <edit name="fullname">
      <string>TeX Gyre Chorus</string>
    </edit>
  </match>
  <match target="scan">
    <test name="family">
      <string>TeXGyreCursor</string>
    </test>
    <edit name="family">
      <string>TeX Gyre Cursor</string>
    </edit>
    <edit name="fullname">
      <string>TeX Gyre Cursor</string>
    </edit>
  </match>
  <match target="scan">
    <test name="family">
      <string>TeXGyreHeros</string>
    </test>
    <edit name="family">
      <string>TeX Gyre Heros</string>
    </edit>
    <edit name="fullname">
      <string>TeX Gyre Heros</string>
    </edit>
  </match>
  <match target="scan">
    <test name="family">
      <string>TeXGyreHerosCondensed</string>
    </test>
    <edit name="family">
      <string>TeX Gyre Heros Cn</string>
    </edit>
    <edit name="fullname">
      <string>TeX Gyre Heros Cn</string>
    </edit>
  </match>
  <match target="scan">
    <test name="family">
      <string>TeXGyrePagella</string>
    </test>
    <edit name="family">
      <string>TeX Gyre Pagella</string>
    </edit>
    <edit name="fullname">
      <string>TeX Gyre Pagella</string>
    </edit>
  </match>
  <match target="scan">
    <test name="family">
      <string>TeXGyreSchola</string>
    </test>
    <edit name="family">
      <string>TeX Gyre Schola</string>
    </edit>
    <edit name="fullname">
      <string>TeX Gyre Schola</string>
    </edit>
  </match>
  <match target="scan">
    <test name="family">
      <string>TeXGyreTermes</string>
    </test>
    <edit name="family">
      <string>TeX Gyre Termes</string>
    </edit>
    <edit name="fullname">
      <string>TeX Gyre Termes</string>
    </edit>
  </match>
  <alias binding="same">
    <family>TeXGyreAdventor</family>
    <accept>
      <family>TeX Gyre Adventor</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>TeXGyreBonum</family>
    <accept>
      <family>TeX Gyre Bonum</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>TeXGyreChorus</family>
    <accept>
      <family>TeX Gyre Chorus</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>TeXGyreCursor</family>
    <accept>
      <family>TeX Gyre Cursor</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>TeXGyreHeros</family>
    <accept>
      <family>TeX Gyre Heros</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>TeXGyreHerosCondensed</family>
    <accept>
      <family>TeX Gyre Heros Cn</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>TeXGyrePagella</family>
    <accept>
      <family>TeX Gyre Pagella</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>TeXGyreSchola</family>
    <accept>
      <family>TeX Gyre Schola</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>TeXGyreTermes</family>
    <accept>
      <family>TeX Gyre Termes</family>
    </accept>
  </alias>
</fontconfig>

Reply to: