From 8589b5326be3de2db7dfb8855ef58a390e0d23c9 Mon Sep 17 00:00:00 2001 From: Peter Jaszkowiak Date: Wed, 23 Jan 2019 20:05:11 -0700 Subject: [PATCH] Use system fonts instead of Robot webfont Fixes #449 --- less/bootstrap/variables.less | 2 +- library.js | 10 ---------- plugin.json | 3 +-- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/less/bootstrap/variables.less b/less/bootstrap/variables.less index b10916f..ea1ba5e 100644 --- a/less/bootstrap/variables.less +++ b/less/bootstrap/variables.less @@ -42,7 +42,7 @@ // //## Font, line-height, and color for body text, headings, and more. -@font-family-sans-serif: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif; +@font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; @font-family-serif: Georgia, "Times New Roman", Times, serif; //** Default monospace fonts for ``, ``, and `
`.
 @font-family-monospace:   Menlo, Monaco, Consolas, "Courier New", monospace;
diff --git a/library.js b/library.js
index 3d4271d..b1ef3a0 100644
--- a/library.js
+++ b/library.js
@@ -122,14 +122,4 @@ library.addUserToTopic = function(data, callback) {
 	}
 };
 
-library.getLinkTags = function (data, callback) {
-	data.links.push({
-		rel: 'prefetch stylesheet',
-		type: '',
-		href: 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700',
-	});
-
-	callback(null, data);
-};
-
 module.exports = library;
diff --git a/plugin.json b/plugin.json
index d2ded57..e525001 100644
--- a/plugin.json
+++ b/plugin.json
@@ -7,8 +7,7 @@
 		{ "hook": "filter:config.get", "method": "getThemeConfig" },
 		{ "hook": "static:app.load", "method": "init" },
 		{ "hook": "filter:admin.header.build", "method": "addAdminNavigation" },
-		{ "hook": "filter:topic.build", "method": "addUserToTopic" },
-		{ "hook": "filter:meta.getLinkTags", "method": "getLinkTags"}
+		{ "hook": "filter:topic.build", "method": "addUserToTopic" }
 	],
 	"scripts": [
 		"lib/persona.js",