A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
feat: use Hack font for monospace text
thecodrrb64a3a0b2963
diff --git a/packages/editor/scripts/build.sh b/packages/editor/scripts/build.shindex 9a1072854..b3fb001af 100755--- a/packages/editor/scripts/build.sh+++ b/packages/editor/scripts/build.sh@@ -1,7 +1,8 @@cp ./node_modules/katex/dist/katex.min.css $(realpath ./styles/)cp -r ./node_modules/katex/dist/fonts/ $(realpath ./styles/)cp ./node_modules/prism-themes/themes/prism-dracula.min.css $(realpath ./styles/)/prism-theme.css--ln -s $(realpath ./src/styles.css) $(realpath ./styles/)+cp ./node_modules/prism-themes/themes/prism-dracula.min.css $(realpath ./styles/)/prism-theme.css+cp $(realpath ./src/fonts.css) $(realpath ./styles/)/fonts.css+cp $(realpath ./src/styles.css) $(realpath ./styles/)/styles.cssyarn tsc --watch\ No newline at end of filediff --git a/packages/editor/scripts/compile.sh b/packages/editor/scripts/compile.shindex 0d20a8397..3905aca0b 100755--- a/packages/editor/scripts/compile.sh+++ b/packages/editor/scripts/compile.sh@@ -1,9 +1,11 @@rm -rf dist/+cp ./node_modules/katex/dist/katex.min.css $(realpath ./styles/)cp -r ./node_modules/katex/dist/fonts/ $(realpath ./styles/)cp ./node_modules/prism-themes/themes/prism-dracula.min.css $(realpath ./styles/)/prism-theme.css--ln -s $(realpath ./src/styles.css) $(realpath ./styles/)+cp ./node_modules/prism-themes/themes/prism-dracula.min.css $(realpath ./styles/)/prism-theme.css+cp $(realpath ./src/fonts.css) $(realpath ./styles/)/fonts.css+cp $(realpath ./src/styles.css) $(realpath ./styles/)/styles.cssyarn tsc --module commonjs --outDir ./dist/cjs --target es2015yarn tsc --module esnext --outDir ./dist/es --target es6diff --git a/packages/editor/src/fonts.css b/packages/editor/src/fonts.cssnew file mode 100644index 000000000..11946a706--- /dev/null+++ b/packages/editor/src/fonts.css@@ -0,0 +1,37 @@+/*!+ * Hack typeface https://github.com/source-foundry/Hack+ * License: https://github.com/source-foundry/Hack/blob/master/LICENSE.md+ */+/* FONT PATHS+ * -------------------------- */+@font-face {+ font-family: "Hack";+ src: url("fonts/hack-regular.woff2") format("woff2"),+ url("fonts/hack-regular.woff") format("woff");+ font-weight: 400;+ font-style: normal;+}++@font-face {+ font-family: "Hack";+ src: url("fonts/hack-bold.woff2") format("woff2"),+ url("fonts/hack-bold.woff") format("woff");+ font-weight: 700;+ font-style: normal;+}++@font-face {+ font-family: "Hack";+ src: url("fonts/hack-italic.woff2") format("woff2"),+ url("fonts/hack-italic.woff") format("woff");+ font-weight: 400;+ font-style: italic;+}++@font-face {+ font-family: "Hack";+ src: url("fonts/hack-bolditalic.woff2") format("woff2"),+ url("fonts/hack-bolditalic.woff") format("woff");+ font-weight: 700;+ font-style: italic;+}diff --git a/packages/editor/styles/fonts.css b/packages/editor/styles/fonts.cssnew file mode 100644index 000000000..11946a706--- /dev/null+++ b/packages/editor/styles/fonts.css@@ -0,0 +1,37 @@+/*!+ * Hack typeface https://github.com/source-foundry/Hack+ * License: https://github.com/source-foundry/Hack/blob/master/LICENSE.md+ */+/* FONT PATHS+ * -------------------------- */+@font-face {+ font-family: "Hack";+ src: url("fonts/hack-regular.woff2") format("woff2"),+ url("fonts/hack-regular.woff") format("woff");+ font-weight: 400;+ font-style: normal;+}++@font-face {+ font-family: "Hack";+ src: url("fonts/hack-bold.woff2") format("woff2"),+ url("fonts/hack-bold.woff") format("woff");+ font-weight: 700;+ font-style: normal;+}++@font-face {+ font-family: "Hack";+ src: url("fonts/hack-italic.woff2") format("woff2"),+ url("fonts/hack-italic.woff") format("woff");+ font-weight: 400;+ font-style: italic;+}++@font-face {+ font-family: "Hack";+ src: url("fonts/hack-bolditalic.woff2") format("woff2"),+ url("fonts/hack-bolditalic.woff") format("woff");+ font-weight: 700;+ font-style: italic;+}diff --git a/packages/editor/styles/fonts/hack-bold.woff b/packages/editor/styles/fonts/hack-bold.woffnew file mode 100644index 000000000..368b913dfBinary files /dev/null and b/packages/editor/styles/fonts/hack-bold.woff differdiff --git a/packages/editor/styles/fonts/hack-bold.woff2 b/packages/editor/styles/fonts/hack-bold.woff2new file mode 100644index 000000000..1155477e9Binary files /dev/null and b/packages/editor/styles/fonts/hack-bold.woff2 differdiff --git a/packages/editor/styles/fonts/hack-bolditalic.woff b/packages/editor/styles/fonts/hack-bolditalic.woffnew file mode 100644index 000000000..ce87fe25bBinary files /dev/null and b/packages/editor/styles/fonts/hack-bolditalic.woff differdiff --git a/packages/editor/styles/fonts/hack-bolditalic.woff2 b/packages/editor/styles/fonts/hack-bolditalic.woff2new file mode 100644index 000000000..46ff1c425Binary files /dev/null and b/packages/editor/styles/fonts/hack-bolditalic.woff2 differdiff --git a/packages/editor/styles/fonts/hack-italic.woff b/packages/editor/styles/fonts/hack-italic.woffnew file mode 100644index 000000000..bd545e45eBinary files /dev/null and b/packages/editor/styles/fonts/hack-italic.woff differdiff --git a/packages/editor/styles/fonts/hack-italic.woff2 b/packages/editor/styles/fonts/hack-italic.woff2new file mode 100644index 000000000..1e7630cefBinary files /dev/null and b/packages/editor/styles/fonts/hack-italic.woff2 differdiff --git a/packages/editor/styles/fonts/hack-regular.woff b/packages/editor/styles/fonts/hack-regular.woffnew file mode 100644index 000000000..e835381e1Binary files /dev/null and b/packages/editor/styles/fonts/hack-regular.woff differdiff --git a/packages/editor/styles/fonts/hack-regular.woff2 b/packages/editor/styles/fonts/hack-regular.woff2new file mode 100644index 000000000..524465cf5Binary files /dev/null and b/packages/editor/styles/fonts/hack-regular.woff2 differ