Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix heading not showing properly

ammarahm-ede66913eaa422
diff --git a/apps/mobile/android/app/src/main/assets/fonts.css b/apps/mobile/android/app/src/main/assets/fonts.css
index 77254856d..cf8c6d2b8 100644
--- a/apps/mobile/android/app/src/main/assets/fonts.css
+++ b/apps/mobile/android/app/src/main/assets/fonts.css
@@ -144,8 +144,7 @@
font-weight: 400;
font-display: swap;
src: local('DM Serif Text Italic'), local('DMSerifText-Italic'),
- url(https://fonts.gstatic.com/s/dmseriftext/v4/rnCw-xZa_krGokauCeNq1wWyWfG1UVoNILVaqNDD.woff2)
- format('woff2');
+ url(./fonts/DMSerifText-Italic.ttf) format('truetype');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
diff --git a/apps/mobile/android/app/src/main/assets/plaineditor.html b/apps/mobile/android/app/src/main/assets/plaineditor.html
index 151368767..353027439 100644
--- a/apps/mobile/android/app/src/main/assets/plaineditor.html
+++ b/apps/mobile/android/app/src/main/assets/plaineditor.html
@@ -635,31 +635,37 @@
.ql-snow .ql-editor h1 {
font-size: 2em;
font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor h2 {
font-size: 1.5em;
font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor h3 {
font-size: 1.17em;
font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor h4 {
font-size: 1em;
font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor h5 {
font-size: 0.83em;
font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor h6 {
font-size: 0.67em;
font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor a {
diff --git a/apps/mobile/android/app/src/main/assets/texteditor.html b/apps/mobile/android/app/src/main/assets/texteditor.html
index bad563ea6..470dedb72 100644
--- a/apps/mobile/android/app/src/main/assets/texteditor.html
+++ b/apps/mobile/android/app/src/main/assets/texteditor.html
@@ -635,31 +635,37 @@
.ql-snow .ql-editor h1 {
font-size: 2em;
font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor h2 {
font-size: 1.5em;
font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor h3 {
font-size: 1.17em;
font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor h4 {
font-size: 1em;
font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor h5 {
font-size: 0.83em;
font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor h6 {
font-size: 0.67em;
font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor a {
@@ -1048,7 +1054,7 @@
#titlebar input {
font-family: "DM Serif Text", serif;
- font-weight: 700;
+ font-weight: 400;
background-color: transparent;
border: none;
height: 50;
diff --git a/apps/mobile/html/Web.bundle/site/fonts.css b/apps/mobile/html/Web.bundle/site/fonts.css
index 77254856d..cf8c6d2b8 100644
--- a/apps/mobile/html/Web.bundle/site/fonts.css
+++ b/apps/mobile/html/Web.bundle/site/fonts.css
@@ -144,8 +144,7 @@
font-weight: 400;
font-display: swap;
src: local('DM Serif Text Italic'), local('DMSerifText-Italic'),
- url(https://fonts.gstatic.com/s/dmseriftext/v4/rnCw-xZa_krGokauCeNq1wWyWfG1UVoNILVaqNDD.woff2)
- format('woff2');
+ url(./fonts/DMSerifText-Italic.ttf) format('truetype');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
diff --git a/apps/mobile/html/Web.bundle/site/index.html b/apps/mobile/html/Web.bundle/site/index.html
index caa65838e..df14e25b2 100644
--- a/apps/mobile/html/Web.bundle/site/index.html
+++ b/apps/mobile/html/Web.bundle/site/index.html
@@ -634,26 +634,38 @@
.ql-snow .ql-editor h1 {
font-size: 2em;
+ font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor h2 {
font-size: 1.5em;
+ font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor h3 {
font-size: 1.17em;
+ font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor h4 {
font-size: 1em;
+ font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor h5 {
font-size: 0.83em;
+ font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor h6 {
font-size: 0.67em;
+ font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor a {
@@ -1041,8 +1053,8 @@
}
#titlebar input {
- font-family: "Noto Serif", serif;
- font-weight: 700;
+ font-family: "DM Serif Text", sans-serif;
+ font-weight: 400 !important;
background-color: transparent;
border: none;
diff --git a/apps/mobile/html/Web.bundle/site/plaineditor.html b/apps/mobile/html/Web.bundle/site/plaineditor.html
index 70e1e6482..f84a7936a 100644
--- a/apps/mobile/html/Web.bundle/site/plaineditor.html
+++ b/apps/mobile/html/Web.bundle/site/plaineditor.html
@@ -634,26 +634,38 @@
.ql-snow .ql-editor h1 {
font-size: 2em;
+ font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor h2 {
font-size: 1.5em;
+ font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor h3 {
font-size: 1.17em;
+ font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor h4 {
font-size: 1em;
+ font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor h5 {
font-size: 0.83em;
+ font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor h6 {
font-size: 0.67em;
+ font-family: 'DM Serif Text', sans-serif;
+ font-weight: 400 !important;
}
.ql-snow .ql-editor a {