Skip to content

Commit

Permalink
Merge pull request #337 from mariux64/disable-bitmap-fonts-on-firefox
Browse files Browse the repository at this point in the history
Disable bitmap fonts for Firefox (pdf.js) in Fontconfig
  • Loading branch information
pmenzel authored Jul 31, 2023
2 parents 00db4d4 + 93d113b commit 4456bf3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions etc/fonts/conf.d/70-no-bitmaps-firefox.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- Disable bitmap fonts for Firefox/pdf.js to work around https://bugzilla.mozilla.org/show_bug.cgi?id=1839860 -->

<match>
<test qual="all" name="prgname" target="pattern" compare="eq">
<string>firefox</string>
</test>

<selectfont>
<rejectfont>
<pattern>
<patelt name="scalable"><bool>false</bool></patelt>
</pattern>
</rejectfont>
</selectfont>
</match>
</fontconfig>

0 comments on commit 4456bf3

Please sign in to comment.