From 8c7d5bd034dd2f5388f1af7b357ba71e4ec0a3eb Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 25 May 2024 11:47:29 +0300 Subject: [PATCH] firefox: specify Liberation Fonts --- conf/firefox-forbidden-policies.js | 12 +++++++ etc/firefox/policies/policies.json | 54 ++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/conf/firefox-forbidden-policies.js b/conf/firefox-forbidden-policies.js index 42d3243e..b5979025 100644 --- a/conf/firefox-forbidden-policies.js +++ b/conf/firefox-forbidden-policies.js @@ -35,6 +35,18 @@ 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"); +// +lockPref("font.name.monospace.el", "Liberation Mono"); +lockPref("font.name.monospace.x-cyrillic", "Liberation Mono"); +lockPref("font.name.monospace.x-western", "Liberation Mono"); +// +lockPref("font.name.sans-serif.el", "Liberation Sans"); +lockPref("font.name.sans-serif.x-cyrillic", "Liberation Sans"); +lockPref("font.name.sans-serif.x-western", "Liberation Sans"); +// +lockPref("font.name.serif.el", "Liberation Serif"); +lockPref("font.name.serif.x-cyrillic", "Liberation Serif"); +lockPref("font.name.serif.x-western", "Liberation Serif"); // Play animated images only once, accessibility. lockPref("image.animation.mode", "once"); diff --git a/etc/firefox/policies/policies.json b/etc/firefox/policies/policies.json index 7a81c175..95c1ff78 100644 --- a/etc/firefox/policies/policies.json +++ b/etc/firefox/policies/policies.json @@ -470,6 +470,60 @@ "Type": "string", "Value": "Noto Serif, serif" }, + "font.name.monospace.el": { + "Comment": "Preference not allowed for stability reasons.", + "Status": "default", + "Type": "string", + "Value": "Liberation Mono" + }, + "font.name.monospace.x-cyrillic": { + "Comment": "Preference not allowed for stability reasons.", + "Status": "default", + "Type": "string", + "Value": "Liberation Mono" + }, + "font.name.monospace.x-western": { + "Comment": "Preference not allowed for stability reasons.", + "Status": "default", + "Type": "string", + "Value": "Liberation Mono" + }, + "font.name.sans-serif.el": { + "Comment": "Preference not allowed for stability reasons.", + "Status": "default", + "Type": "string", + "Value": "Liberation Sans" + }, + "font.name.sans-serif.x-cyrillic": { + "Comment": "Preference not allowed for stability reasons.", + "Status": "default", + "Type": "string", + "Value": "Liberation Sans" + }, + "font.name.sans-serif.x-western": { + "Comment": "Preference not allowed for stability reasons.", + "Status": "default", + "Type": "string", + "Value": "Liberation Sans" + }, + "font.name.serif.el": { + "Comment": "Preference not allowed for stability reasons.", + "Status": "default", + "Type": "string", + "Value": "Liberation Serif" + }, + "font.name.serif.x-cyrillic": { + "Comment": "Preference not allowed for stability reasons.", + "Status": "default", + "Type": "string", + "Value": "Liberation Serif" + }, + "font.name.serif.x-western": { + "Comment": "Preference not allowed for stability reasons.", + "Status": "default", + "Type": "string", + "Value": "Liberation Serif" + }, "general.config.obscure_value": { "Comment": "Required for autoconfig.", "Status": "locked",