From 2615ab2abbdd8a26dcbae6a403f608ffff4d8643 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 23 Oct 2025 14:58:44 +0300 Subject: [PATCH] firefox-forbidden-policies.js: adjust fonts again, reset cyrillic I want to know when something uses serif as opposed to sans-serif, but simultaneously I want to use a readable font. Cyrillic I am not looking at enough for adjusting its font here to be reasonable --- conf/firefox-forbidden-policies.js | 42 ++++++++++++++---------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/conf/firefox-forbidden-policies.js b/conf/firefox-forbidden-policies.js index ffa2ef66..3abdf0e8 100644 --- a/conf/firefox-forbidden-policies.js +++ b/conf/firefox-forbidden-policies.js @@ -20,41 +20,39 @@ lockPref("cookiebanners.service.mode.privateBrowsing", 2); // I can set my preferred fonts in an order! :O // but obviously this is forbidden in policies.json! -lockPref( - "font.name-list.monospace.x-cyrillic", - "Atkinson Hyperlegible Mono, Comic Shanns Mono, Roboto Mono, Liberation Mono, Noto Sans Mono, monospace", -); +//lockPref( +// "font.name-list.monospace.x-cyrillic", +// "Atkinson Hyperlegible Mono, Comic Shanns Mono, Roboto Mono, Liberation Mono, Noto Sans Mono, monospace", +//); lockPref( "font.name-list.monospace.x-western", "Atkinson Hyperlegible Mono, Comic Shanns Mono, Roboto Mono, Liberation Mono, Noto Sans Mono, monospace", ); -// REMEMBER! OpenDyslexic won't work here for some reason, use the extension -// once it returns to Firefox! https://github.com/OpenDyslexic/extension/issues/75 -// TODO: Is the above correct when -FontVisibilityRestrictGenerics ? -lockPref( - "font.name-list.sans-serif.x-cyrillic", - "Atkinson Hyperlegible Next, Atkinson Hyperlegible, OpenDyslexic, Inclusive Sans, Roboto, Liberation Sans, Noto Sans, sans-serif", -); +// Forcing document fonts defeats font fingerprinting, don't worry. +//lockPref( +// "font.name-list.sans-serif.x-cyrillic", +// "Atkinson Hyperlegible Next, Atkinson Hyperlegible, Inclusive Sans, Roboto, Liberation Sans, Noto Sans, sans-serif", +//); lockPref( "font.name-list.sans-serif.x-western", - "Atkinson Hyperlegible Next, Atkinson Hyperlegible, OpenDyslexic, Inclusive Sans, Liberation Sans, Comic Neue, Roboto, Noto Sans, sans-serif", + "Atkinson Hyperlegible Next, Atkinson Hyperlegible, Inclusive Sans, Roboto, Liberation Sans, Noto Sans, sans-serif", ); -// lockPref( -// "font.name-list.serif.x-cyrillic", -// "Atkinson Hyperlegible Next, Atkinson Hyperlegible, OpenDyslexic, Inclusive Sans, Liberation Serif, Roboto Serif, Noto Serif, serif", -// ); -// lockPref( -// "font.name-list.serif.x-western", -// "Atkinson Hyperlegible Next, Atkinson Hyperlegible, OpenDyslexic, Inclusive Sans, Liberation Serif, Roboto Serif, Noto Serif, serif", +//lockPref( +// "font.name-list.serif.x-cyrillic", +// "OpenDyslexic, Liberation Serif, Roboto Serif, Noto Serif, serif", // ); +lockPref( + "font.name-list.serif.x-western", + "OpenDyslexic, Liberation Serif, Roboto Serif, Noto Serif, serif", +); // Uncomment when giving up on messing up with fonts -//clearPref("font.name-list.monospace.x-cyrillic"); +clearPref("font.name-list.monospace.x-cyrillic"); //clearPref("font.name-list.monospace.x-western"); -//clearPref("font.name-list.sans-serif.x-cyrillic"); +clearPref("font.name-list.sans-serif.x-cyrillic"); //clearPref("font.name-list.sans-serif.x-western"); clearPref("font.name-list.serif.x-cyrillic"); -clearPref("font.name-list.serif.x-western"); +//clearPref("font.name-list.serif.x-western"); // Play animated images only once, accessibility. lockPref("image.animation_mode", "once");