Closed david-allison closed 8 months ago
Sadly, Open Font License (SIL OFL) fonts are not GPL compatible.
https://www.gnu.org/licenses/license-list.en.html#SILOFL
Once we find a font, here's the patch:
Index: AnkiDroid/src/main/assets/flashcard.css
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/AnkiDroid/src/main/assets/flashcard.css b/AnkiDroid/src/main/assets/flashcard.css
--- a/AnkiDroid/src/main/assets/flashcard.css (revision 1113858df6a6b8c8c93afac0e1f788942db70c9f)
+++ b/AnkiDroid/src/main/assets/flashcard.css (date 1708106416495)
@@ -41,8 +41,14 @@
background-color: #ccc;
}
+@font-face {
+ font-family: NotoSansMono;
+ src: url("file:///android_asset/fonts/NotoSansMono-Regular.ttf")
+}
+
#typeans {
width: 100%;
+ font-family: NotoSansMono;
}
.typePrompt {
liŋˈɡwɪstɪks
AnkiDroid
Issue in 2.16.X and 2.17
Font:
Droid Sans Mono
Anki Desktop
Font:
Menlo
(macosmonospace
)