diff --git a/package.json b/package.json index 01db144..da2e6cd 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,7 @@ }, "dependencies": { "@babel/eslint-parser": "^7.15.0", - "@fontsource/baloo-da-2": "^4.5.0", - "@fontsource/roboto": "^4.5.0", + "@fontsource/hind-siliguri": "^4.5.0", "core-js": "^3.16.1", "dompurify": "^2.3.1", "hotkeys-js": "^3.8.7", diff --git a/src/main.js b/src/main.js index 913a416..cd89fe3 100644 --- a/src/main.js +++ b/src/main.js @@ -1,7 +1,7 @@ import Vue from 'vue' import App from './App.vue' -import '@fontsource/roboto/latin.css' +import '@fontsource/hind-siliguri/latin.css' import '@/styles/main.scss' import { i18n } from '@/plugins/i18n' diff --git a/src/plugins/i18n.js b/src/plugins/i18n.js index 36c786c..bb0384e 100644 --- a/src/plugins/i18n.js +++ b/src/plugins/i18n.js @@ -32,7 +32,7 @@ async function syncStylesPerLanguage (locale) { break // Bengali script case 'bn_beng': - await import('@fontsource/baloo-da-2/bengali.css') + await import('@fontsource/hind-siliguri/bengali.css') document.body.classList.remove(...document.body.classList) document.body.classList.add('bengali') break diff --git a/src/styles/main.scss b/src/styles/main.scss index 313c1e8..eb90fc2 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -12,11 +12,4 @@ } } -.bengali { - @include addFonts('Baloo Da 2'); -} -/* -.latin { - @include addFonts('Some Font'); -} -*/ +@include addFonts('Hind Siliguri'); diff --git a/yarn.lock b/yarn.lock index 7a6be65..6b68b51 100644 --- a/yarn.lock +++ b/yarn.lock @@ -941,15 +941,10 @@ minimatch "^3.0.4" strip-json-comments "^3.1.1" -"@fontsource/baloo-da-2@^4.5.0": +"@fontsource/hind-siliguri@^4.5.0": version "4.5.0" - resolved "https://registry.yarnpkg.com/@fontsource/baloo-da-2/-/baloo-da-2-4.5.0.tgz#2174da30951e71103859cee9661e80f81d72fed8" - integrity sha512-M3eJ9rXCYt83ENTIpYqy7OuA/Epqd8LYfqUEerT2XVEVXkHMfb+J7BJu8OIv+fq1COegntL1YyznkJuDzF40RQ== - -"@fontsource/roboto@^4.5.0": - version "4.5.0" - resolved "https://registry.yarnpkg.com/@fontsource/roboto/-/roboto-4.5.0.tgz#d6f925668ba6af46707f1040c43aff498ba204bb" - integrity sha512-ja4XYw/9kNRFM5Ndk9vwzHWsdBMXczyBazFkTXJQ74QQBnT0BbSsHn0pF60AU0Iznig1Wt9x3rADfG8LANvMpw== + resolved "https://registry.yarnpkg.com/@fontsource/hind-siliguri/-/hind-siliguri-4.5.0.tgz#e5489447c309484e9f48b2a75ee54a3f6cc40b31" + integrity sha512-kt7rXU/+G5oQeCFNibg5lKPv5zJnZSQe2jx52RDPthKnNDbt2z5z5eLdXLjueTjtZC/dVwnGijAWSPAmlIv5ow== "@hapi/address@2.x.x": version "2.1.4"