[tor-commits] [builders/tor-browser-build] branch main updated: Bug 40626: Define the replacements for generic families on Linux

gitolite role git at cupani.torproject.org
Tue Sep 20 14:35:10 UTC 2022


This is an automated email from the git hooks/post-receive script.

pierov pushed a commit to branch main
in repository builders/tor-browser-build.

The following commit(s) were added to refs/heads/main by this push:
     new 97e9d52  Bug 40626: Define the replacements for generic families on Linux
97e9d52 is described below

commit 97e9d5297c4cae0af30a8be255c1ca6e1b0d98b5
Author: Pier Angelo Vendrame <pierov at torproject.org>
AuthorDate: Tue Sep 20 09:19:57 2022 +0200

    Bug 40626: Define the replacements for generic families on Linux
    
    FontConfig does not know much about our fonts, and falls back to the
    font version, when it cannot find any other criterion to decide which
    font to use.
    So, we want to make sure that at least sans-serif, serif and monospace
    are the fonts we want (currently, Arimo, Tinos and Cousine).
---
 .../Bundle-Data/linux/Data/fontconfig/fonts.conf   | 35 +++++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)

diff --git a/projects/browser/Bundle-Data/linux/Data/fontconfig/fonts.conf b/projects/browser/Bundle-Data/linux/Data/fontconfig/fonts.conf
index ed236ac..f28857d 100644
--- a/projects/browser/Bundle-Data/linux/Data/fontconfig/fonts.conf
+++ b/projects/browser/Bundle-Data/linux/Data/fontconfig/fonts.conf
@@ -1,6 +1,11 @@
 <?xml version="1.0"?>
 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
-<!-- This file whitelists Tor Browser's bundled fonts and standardizes rendering settings. -->
+<!--
+**DO NOT EDIT THIS FILE!**
+This file sets Tor Browser's bundled fonts as the only available system fonts
+and standardizes rendering settings.
+Any changes might deanonymize you, or expose you to fingerprinting vectors.
+-->
 <!--
 Derived from fonts.conf.in of Fontconfig.
 
@@ -72,6 +77,34 @@ PERFORMANCE OF THIS SOFTWARE.
 		</edit>
 	</match>
 
+<!--
+  Set our default generic families.
+-->
+	<match target="pattern">
+		<test qual="any" name="family">
+			<string>sans-serif</string>
+		</test>
+		<edit name="family" mode="assign" binding="same">
+			<string>Arimo</string>
+		</edit>
+	</match>
+	<match target="pattern">
+		<test qual="any" name="family">
+			<string>serif</string>
+		</test>
+		<edit name="family" mode="assign" binding="same">
+			<string>Tinos</string>
+		</edit>
+	</match>
+	<match target="pattern">
+		<test qual="any" name="family">
+			<string>monospace</string>
+		</test>
+		<edit name="family" mode="assign" binding="same">
+			<string>Cousine</string>
+		</edit>
+	</match>
+
 <!-- Font cache directory list -->
 
 	<cachedir prefix="xdg">fontconfig</cachedir>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tor-commits mailing list