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

Bug#686098: [Pkg-fonts-devel] Fonts from package misbehave in exported PDF



tags 686098 + patch
thanks

Hi Mirosław and Norbert,

the attached fontconfig file fixes this issue for good. It tells fontconfig to look for the OpenType fonts in the right directory and rejects all the Type 1 variants (just to play safe, the rejects are based on both font names without spaces and fontformat being "Type 1"). It just works, without symlinks, needing to copy or move files around or the painfull manual aligning of font names that I tried to achieve with my previous fontconfig file.

With the attached file, the OpenType variants of the tex-gyre fonts are made available for fontconfig. The Type 1 variants are made unavailable for fontconfig, but remain available for the X font system.

Hope that helps,
 - Fabian

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Scan for OpenType fonts -->
 <dir>/usr/share/texmf/fonts/opentype/public/tex-gyre</dir>
<!-- Reject Type 1 fonts -->
 <selectfont>
  <rejectfont>
   <pattern>
     <patelt name="family"><string>TeXGyreAdventor</string></patelt>
     <patelt name="fontformat"><string>Type 1</string></patelt>
   </pattern>
   <pattern>
     <patelt name="family"><string>TeXGyreBonum</string></patelt>
     <patelt name="fontformat"><string>Type 1</string></patelt>
   </pattern>
   <pattern>
     <patelt name="family"><string>TeXGyreChorus</string></patelt>
     <patelt name="fontformat"><string>Type 1</string></patelt>
   </pattern>
   <pattern>
     <patelt name="family"><string>TeXGyreCursor</string></patelt>
     <patelt name="fontformat"><string>Type 1</string></patelt>
   </pattern>
   <pattern>
     <patelt name="family"><string>TeXGyreHeros</string></patelt>
     <patelt name="fontformat"><string>Type 1</string></patelt>
   </pattern>
   <pattern>
     <patelt name="family"><string>TeXGyreHerosCondensed</string></patelt>
     <patelt name="fontformat"><string>Type 1</string></patelt>
   </pattern>
   <pattern>
     <patelt name="family"><string>TeXGyrePagella</string></patelt>
     <patelt name="fontformat"><string>Type 1</string></patelt>
   </pattern>
   <pattern>
     <patelt name="family"><string>TeXGyreSchola</string></patelt>
     <patelt name="fontformat"><string>Type 1</string></patelt>
   </pattern>
   <pattern>
     <patelt name="family"><string>TeXGyreTermes</string></patelt>
     <patelt name="fontformat"><string>Type 1</string></patelt>
   </pattern>
  </rejectfont>
 </selectfont>
</fontconfig>

Reply to: