Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Fix font latency

Smaug67399afc81b50c4b
diff --git a/frontend/app/styles/document-theme.scss b/frontend/app/styles/document-theme.scss
index 9b5a6889..40d82a8c 100644
--- a/frontend/app/styles/document-theme.scss
+++ b/frontend/app/styles/document-theme.scss
@@ -17,8 +17,6 @@
}
}
-@import url('https://fonts.cdnfonts.com/css/latin-modern-roman');
-
.latex-theme {
font-family: "Latin Modern Roman", serif;
font-size: 18px;
diff --git a/frontend/app/styles/lmroman.scss b/frontend/app/styles/lmroman.scss
new file mode 100644
index 00000000..8c107717
--- /dev/null
+++ b/frontend/app/styles/lmroman.scss
@@ -0,0 +1,83 @@
+@font-face {
+ font-family: 'LMRoman10';
+ font-style: normal;
+ font-weight: 400;
+ src: local('LMRoman10'), url('/fonts/lmroman10-regular.woff') format('woff');
+}
+
+@font-face {
+ font-family: 'LMRomanCaps10';
+ font-style: normal;
+ font-weight: 400;
+ src: local('LMRomanCaps10'), url('/fonts/lmromancaps10-regular.woff') format('woff');
+}
+
+@font-face {
+ font-family: 'LMRomanDunh10';
+ font-style: normal;
+ font-weight: 400;
+ src: local('LMRomanDunh10'), url('/fonts/lmromandunh10-regular.woff') format('woff');
+}
+
+@font-face {
+ font-family: 'LMRomanSlant10';
+ font-style: italic;
+ font-weight: 400;
+ src: local('LMRomanSlant10'), url('/fonts/lmromanslant10-regular.woff') format('woff');
+}
+
+@font-face {
+ font-family: 'LMRoman10';
+ font-style: italic;
+ font-weight: 400;
+ src: local('LMRoman10'), url('/fonts/lmroman10-italic.woff') format('woff');
+}
+
+@font-face {
+ font-family: 'LMRomanCaps10';
+ font-style: italic;
+ font-weight: 400;
+ src: local('LMRomanCaps10'), url('/fonts/lmromancaps10-oblique.woff') format('woff');
+}
+
+@font-face {
+ font-family: 'LMRomanDunh10';
+ font-style: italic;
+ font-weight: 400;
+ src: local('LMRomanDunh10'), url('/fonts/lmromandunh10-oblique.woff') format('woff');
+}
+
+@font-face {
+ font-family: 'LMRomanDemi10';
+ font-style: normal;
+ font-weight: 600;
+ src: local('LMRomanDemi10'), url('/fonts/lmromandemi10-regular.woff') format('woff');
+}
+
+@font-face {
+ font-family: 'LMRomanDemi10';
+ font-style: italic;
+ font-weight: 600;
+ src: local('LMRomanDemi10'), url('/fonts/lmromandemi10-oblique.woff') format('woff');
+}
+
+@font-face {
+ font-family: 'LMRoman10';
+ font-style: normal;
+ font-weight: 700;
+ src: local('LMRoman10'), url('/fonts/lmroman10-bold.woff') format('woff');
+}
+
+@font-face {
+ font-family: 'LMRoman10';
+ font-style: italic;
+ font-weight: 700;
+ src: local('LMRoman10'), url('/fonts/lmroman10-bolditalic.woff') format('woff');
+}
+
+@font-face {
+ font-family: 'LMRomanSlant10';
+ font-style: italic;
+ font-weight: 700;
+ src: local('LMRomanSlant10'), url('/fonts/lmromanslant10-bold.woff') format('woff');
+}
\ No newline at end of file
diff --git a/frontend/app/styles/main.scss b/frontend/app/styles/main.scss
index 0c5aef21..293e3d8c 100644
--- a/frontend/app/styles/main.scss
+++ b/frontend/app/styles/main.scss
@@ -4,6 +4,7 @@
@forward "./document-theme.scss";
@forward "./code.scss";
@forward "./components.scss";
+@forward "./lmroman.scss";
/* only needed once */
* {
diff --git a/frontend/public/fonts/lmroman10-bold.otf b/frontend/public/fonts/lmroman10-bold.otf
new file mode 100644
index 00000000..2ba19515
Binary files /dev/null and b/frontend/public/fonts/lmroman10-bold.otf differ
diff --git a/frontend/public/fonts/lmroman10-bolditalic.otf b/frontend/public/fonts/lmroman10-bolditalic.otf
new file mode 100644
index 00000000..1bdef795
Binary files /dev/null and b/frontend/public/fonts/lmroman10-bolditalic.otf differ
diff --git a/frontend/public/fonts/lmroman10-italic.otf b/frontend/public/fonts/lmroman10-italic.otf
new file mode 100644
index 00000000..06dd2a1f
Binary files /dev/null and b/frontend/public/fonts/lmroman10-italic.otf differ
diff --git a/frontend/public/fonts/lmroman10-regular.otf b/frontend/public/fonts/lmroman10-regular.otf
new file mode 100644
index 00000000..26c8677d
Binary files /dev/null and b/frontend/public/fonts/lmroman10-regular.otf differ
diff --git a/frontend/public/fonts/lmromancaps10-oblique.otf b/frontend/public/fonts/lmromancaps10-oblique.otf
new file mode 100644
index 00000000..96d3aaae
Binary files /dev/null and b/frontend/public/fonts/lmromancaps10-oblique.otf differ
diff --git a/frontend/public/fonts/lmromancaps10-regular.otf b/frontend/public/fonts/lmromancaps10-regular.otf
new file mode 100644
index 00000000..cae13b13
Binary files /dev/null and b/frontend/public/fonts/lmromancaps10-regular.otf differ
diff --git a/frontend/public/fonts/lmromandemi10-oblique.otf b/frontend/public/fonts/lmromandemi10-oblique.otf
new file mode 100644
index 00000000..29fc8920
Binary files /dev/null and b/frontend/public/fonts/lmromandemi10-oblique.otf differ
diff --git a/frontend/public/fonts/lmromandemi10-regular.otf b/frontend/public/fonts/lmromandemi10-regular.otf
new file mode 100644
index 00000000..927356d8
Binary files /dev/null and b/frontend/public/fonts/lmromandemi10-regular.otf differ
diff --git a/frontend/public/fonts/lmromandunh10-oblique.otf b/frontend/public/fonts/lmromandunh10-oblique.otf
new file mode 100644
index 00000000..fca8c7c3
Binary files /dev/null and b/frontend/public/fonts/lmromandunh10-oblique.otf differ
diff --git a/frontend/public/fonts/lmromandunh10-regular.otf b/frontend/public/fonts/lmromandunh10-regular.otf
new file mode 100644
index 00000000..9513c5c0
Binary files /dev/null and b/frontend/public/fonts/lmromandunh10-regular.otf differ
diff --git a/frontend/public/fonts/lmromanslant10-bold.otf b/frontend/public/fonts/lmromanslant10-bold.otf
new file mode 100644
index 00000000..1973e9ef
Binary files /dev/null and b/frontend/public/fonts/lmromanslant10-bold.otf differ
diff --git a/frontend/public/fonts/lmromanslant10-regular.otf b/frontend/public/fonts/lmromanslant10-regular.otf
new file mode 100644
index 00000000..21283402
Binary files /dev/null and b/frontend/public/fonts/lmromanslant10-regular.otf differ