From 5a7a8a33dccb1c559eb9e4dc194136cb59d35d3c Mon Sep 17 00:00:00 2001 From: Rizal Sambayu Date: Thu, 21 Dec 2023 22:30:54 +0000 Subject: [PATCH 1/4] Update 2 files - /src/main.tsx - /src/styles/i18n/javanese.css --- src/main.tsx | 1 + src/styles/i18n/javanese.css | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 src/styles/i18n/javanese.css diff --git a/src/main.tsx b/src/main.tsx index 05c38cf73..6bcd61e54 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -20,6 +20,7 @@ import 'react-datepicker/dist/react-datepicker.css'; import './iframe'; import './styles/i18n/arabic.css'; +import './styles/i18n/javanese.css'; import './styles/application.scss'; import './styles/tailwind.css'; diff --git a/src/styles/i18n/javanese.css b/src/styles/i18n/javanese.css new file mode 100644 index 000000000..3ed551092 --- /dev/null +++ b/src/styles/i18n/javanese.css @@ -0,0 +1,35 @@ +/* noto-sans-javanese-javanese-400-normal */ +@font-face { + font-family: 'Noto Sans Javanese'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: url(./files/noto-sans-javanese-javanese-400-normal.woff2) format('woff2'), url(./files/noto-sans-javanese-javanese-400-normal.woff) format('woff'); +} + +/* noto-sans-javanese-javanese-500-normal */ +@font-face { + font-family: 'Noto Sans Javanese'; + font-style: normal; + font-display: swap; + font-weight: 500; + src: url(./files/noto-sans-javanese-javanese-500-normal.woff2) format('woff2'), url(./files/noto-sans-javanese-javanese-500-normal.woff) format('woff'); +} + +/* noto-sans-javanese-javanese-600-normal */ +@font-face { + font-family: 'Noto Sans Javanese'; + font-style: normal; + font-display: swap; + font-weight: 600; + src: url(./files/noto-sans-javanese-javanese-600-normal.woff2) format('woff2'), url(./files/noto-sans-javanese-javanese-600-normal.woff) format('woff'); +} + +/* noto-sans-javanese-javanese-700-normal */ +@font-face { + font-family: 'Noto Sans Javanese'; + font-style: normal; + font-display: swap; + font-weight: 700; + src: url(./files/noto-sans-javanese-javanese-700-normal.woff2) format('woff2'), url(./files/noto-sans-javanese-javanese-700-normal.woff) format('woff'); +} \ No newline at end of file From 30f4916c0d292a8f0bc11b1962f9568d8d8b0af6 Mon Sep 17 00:00:00 2001 From: Rizal Sambayu Date: Fri, 22 Dec 2023 19:36:32 +0000 Subject: [PATCH 2/4] add javanese font --- .gitpod.yml | 11 +++++++++++ package.json | 1 + yarn.lock | 5 +++++ 3 files changed, 17 insertions(+) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 000000000..f2bf4259f --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,11 @@ +# This configuration file was automatically generated by Gitpod. +# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) +# and commit this file to your remote git repository to share the goodness with others. + +# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart + +tasks: + - init: yarn install && yarn run build + command: yarn run start + + diff --git a/package.json b/package.json index 8697e3910..c62b2f03f 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "@emoji-mart/data": "^1.1.2", "@floating-ui/react": "^0.26.0", "@fontsource/inter": "^5.0.0", + "@fontsource/noto-sans-javanese": "^5.0.16", "@fontsource/roboto-mono": "^5.0.0", "@fontsource/tajawal": "^5.0.8", "@gamestdio/websocket": "^0.3.2", diff --git a/yarn.lock b/yarn.lock index dd13e03f4..21c1cb8b3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1424,6 +1424,11 @@ resolved "https://registry.yarnpkg.com/@fontsource/inter/-/inter-5.0.8.tgz#61b50cb0eb72b14ae1938d47c4a9a91546d2a50c" integrity sha512-28knWH1BfOiRalfLs90U4sge5mpQ8ZH6FS0PTT+IZMKrZ7wNHDHRuKa1kQJg+uHcc6axBppnxll+HXM4c7zo/Q== +"@fontsource/noto-sans-javanese@^5.0.16": + version "5.0.16" + resolved "https://registry.yarnpkg.com/@fontsource/noto-sans-javanese/-/noto-sans-javanese-5.0.16.tgz#e6a2acad3b520e379a5f760196246951d6d7eb3e" + integrity sha512-foh5yX/kbY28QMx6jU8aezMLAnBTKscNAVeuDIt8myScEDqXDm+1v2pIxVCh0zZUyxt/Yj/qkDTOM/Vegq9hzA== + "@fontsource/roboto-mono@^5.0.0": version "5.0.8" resolved "https://registry.yarnpkg.com/@fontsource/roboto-mono/-/roboto-mono-5.0.8.tgz#9b3df61f884f46e12d3eca46e75517fde58da68e" From 87737d0ff2b305a62e39d0ad111e8dd213b7dd28 Mon Sep 17 00:00:00 2001 From: Rizal Sambayu Date: Fri, 22 Dec 2023 20:05:44 +0000 Subject: [PATCH 3/4] add javanese.css for javanese font --- src/styles/i18n/javanese.css | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/styles/i18n/javanese.css b/src/styles/i18n/javanese.css index 3ed551092..221aaf40d 100644 --- a/src/styles/i18n/javanese.css +++ b/src/styles/i18n/javanese.css @@ -1,35 +1,35 @@ /* noto-sans-javanese-javanese-400-normal */ @font-face { - font-family: 'Noto Sans Javanese'; + font-family: 'Soapbox i18n'; font-style: normal; font-display: swap; font-weight: 400; - src: url(./files/noto-sans-javanese-javanese-400-normal.woff2) format('woff2'), url(./files/noto-sans-javanese-javanese-400-normal.woff) format('woff'); + src: url(@fontsource/noto-sans-javanese/files/noto-sans-javanese-javanese-400-normal.woff2) format('woff2'), url(@fontsource/noto-sans-javanese/files/noto-sans-javanese-javanese-400-normal.woff) format('woff'); } /* noto-sans-javanese-javanese-500-normal */ @font-face { - font-family: 'Noto Sans Javanese'; + font-family: 'Soapbox i18n'; font-style: normal; font-display: swap; font-weight: 500; - src: url(./files/noto-sans-javanese-javanese-500-normal.woff2) format('woff2'), url(./files/noto-sans-javanese-javanese-500-normal.woff) format('woff'); + src: url(@fontsource/noto-sans-javanese/files/noto-sans-javanese-javanese-500-normal.woff2) format('woff2'), url(@fontsource/noto-sans-javanese/files/noto-sans-javanese-javanese-500-normal.woff) format('woff'); } /* noto-sans-javanese-javanese-600-normal */ @font-face { - font-family: 'Noto Sans Javanese'; + font-family: 'Soapbox i18n'; font-style: normal; font-display: swap; font-weight: 600; - src: url(./files/noto-sans-javanese-javanese-600-normal.woff2) format('woff2'), url(./files/noto-sans-javanese-javanese-600-normal.woff) format('woff'); + src: url(@fontsource/noto-sans-javanese/files/noto-sans-javanese-javanese-600-normal.woff2) format('woff2'), url(@fontsource/noto-sans-javanese/files/noto-sans-javanese-javanese-600-normal.woff) format('woff'); } /* noto-sans-javanese-javanese-700-normal */ @font-face { - font-family: 'Noto Sans Javanese'; + font-family: 'Soapbox i18n'; font-style: normal; font-display: swap; font-weight: 700; - src: url(./files/noto-sans-javanese-javanese-700-normal.woff2) format('woff2'), url(./files/noto-sans-javanese-javanese-700-normal.woff) format('woff'); + src: url(@fontsource/noto-sans-javanese/files/noto-sans-javanese-javanese-700-normal.woff2) format('woff2'), url(@fontsource/noto-sans-javanese/files/noto-sans-javanese-javanese-700-normal.woff) format('woff'); } \ No newline at end of file From ee93194c15d20f7ace0eab3692265f9d1b775a28 Mon Sep 17 00:00:00 2001 From: Rizal Sambayu Date: Fri, 22 Dec 2023 21:51:09 +0000 Subject: [PATCH 4/4] add a unicode-range --- src/styles/i18n/javanese.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/styles/i18n/javanese.css b/src/styles/i18n/javanese.css index 221aaf40d..0d00873ad 100644 --- a/src/styles/i18n/javanese.css +++ b/src/styles/i18n/javanese.css @@ -5,6 +5,7 @@ font-display: swap; font-weight: 400; src: url(@fontsource/noto-sans-javanese/files/noto-sans-javanese-javanese-400-normal.woff2) format('woff2'), url(@fontsource/noto-sans-javanese/files/noto-sans-javanese-javanese-400-normal.woff) format('woff'); + unicode-range: U+A980-A9DF; } /* noto-sans-javanese-javanese-500-normal */ @@ -14,6 +15,7 @@ font-display: swap; font-weight: 500; src: url(@fontsource/noto-sans-javanese/files/noto-sans-javanese-javanese-500-normal.woff2) format('woff2'), url(@fontsource/noto-sans-javanese/files/noto-sans-javanese-javanese-500-normal.woff) format('woff'); + unicode-range: U+A980-A9DF; } /* noto-sans-javanese-javanese-600-normal */ @@ -23,6 +25,7 @@ font-display: swap; font-weight: 600; src: url(@fontsource/noto-sans-javanese/files/noto-sans-javanese-javanese-600-normal.woff2) format('woff2'), url(@fontsource/noto-sans-javanese/files/noto-sans-javanese-javanese-600-normal.woff) format('woff'); + unicode-range: U+A980-A9DF; } /* noto-sans-javanese-javanese-700-normal */ @@ -32,4 +35,5 @@ font-display: swap; font-weight: 700; src: url(@fontsource/noto-sans-javanese/files/noto-sans-javanese-javanese-700-normal.woff2) format('woff2'), url(@fontsource/noto-sans-javanese/files/noto-sans-javanese-javanese-700-normal.woff) format('woff'); + unicode-range: U+A980-A9DF; } \ No newline at end of file