From 17b34ed55b1c1ce9a57c0d5c40d4de9d83f52a2c Mon Sep 17 00:00:00 2001 From: Mehmet Ali Date: Tue, 3 Aug 2021 19:30:35 +0300 Subject: [PATCH] Change font --- nuxt.config.js | 8 +++++++- package.json | 3 ++- src/pages/index.vue | 1 + yarn.lock | 12 ++++++++++++ 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/nuxt.config.js b/nuxt.config.js index 819f46e..8ee111e 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -32,8 +32,14 @@ export default { }, modules: [ "@nuxtjs/svg", - '@nuxtjs/axios' + '@nuxtjs/axios', + 'nuxt-webfontloader', ], + webfontloader: { + google: { + families: ['Noto Sans:400,700'] //Loads Lato font with weights 400 and 700 + } + }, build: { } } diff --git a/package.json b/package.json index a38782f..025c028 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "@eggsydev/vue-lanyard": "^1.1.2", "@nuxtjs/axios": "^5.13.6", "core-js": "^3.15.1", - "nuxt": "^2.15.7" + "nuxt": "^2.15.7", + "nuxt-webfontloader": "^1.1.0" }, "devDependencies": { "@nuxtjs/color-mode": "^2.0.10", diff --git a/src/pages/index.vue b/src/pages/index.vue index 0bb1717..89ac95e 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -112,6 +112,7 @@ export default {