Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/mit/xorg/lib/fontconfig/etc Adjust the default font...
details: https://anonhg.NetBSD.org/src/rev/572dd0a57a8b
branches: trunk
changeset: 976837:572dd0a57a8b
user: nia <nia%NetBSD.org@localhost>
date: Mon Oct 05 09:16:26 2020 +0000
description:
Adjust the default fontconfig fonts.conf to avoid selecting bitmap
fonts included as part of X11 that are also included as scalable fonts
as part of macOS.
Many websites will attempt to select these fonts, which results in
very strange, poor quality rendering.
This should keep legacy X11 applications that want the old "Helvetica"
and "Times" fonts working, but prevent them from being selected by
applications that want scalable fonts.
It should not prevent "Helvetica" or "Times" from being selected
if the user installs a scalable version.
diffstat:
external/mit/xorg/lib/fontconfig/etc/fonts.conf | 27 +++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diffs (37 lines):
diff -r ca40c05c0cab -r 572dd0a57a8b external/mit/xorg/lib/fontconfig/etc/fonts.conf
--- a/external/mit/xorg/lib/fontconfig/etc/fonts.conf Mon Oct 05 08:38:17 2020 +0000
+++ b/external/mit/xorg/lib/fontconfig/etc/fonts.conf Mon Oct 05 09:16:26 2020 +0000
@@ -66,6 +66,33 @@
</match>
<!--
+ Reject X11 bitmap fonts which may be selected in place of scalable
+ proportional fonts, e.g. on the web.
+
+ Mostly these are included as scalable system fonts in macOS.
+-->
+ <selectfont>
+ <rejectfont>
+ <pattern>
+ <patelt name="family"><string>Charter</string></patelt>
+ <patelt name="scalable"><bool>false</bool></patelt>
+ </pattern>
+ <pattern>
+ <patelt name="family"><string>Courier</string></patelt>
+ <patelt name="scalable"><bool>false</bool></patelt>
+ </pattern>
+ <pattern>
+ <patelt name="family"><string>Helvetica</string></patelt>
+ <patelt name="scalable"><bool>false</bool></patelt>
+ </pattern>
+ <pattern>
+ <patelt name="family"><string>Times</string></patelt>
+ <patelt name="scalable"><bool>false</bool></patelt>
+ </pattern>
+ </rejectfont>
+ </selectfont>
+
+<!--
Load local system customization file
-->
<include ignore_missing="yes">conf.d</include>
Home |
Main Index |
Thread Index |
Old Index