Add font names for Windows

This commit is contained in:
Isaiah Odhner 2023-07-19 01:16:21 -04:00
parent b63f303cf4
commit ec7986f9dd
2 changed files with 9 additions and 1 deletions

View File

@ -32,9 +32,12 @@
"Bresenham's", "Bresenham's",
"bucketization", "bucketization",
"Caja", "Caja",
"Cascadia",
"clion", "clion",
"cmdpxl", "cmdpxl",
"Consola",
"Consolas", "Consolas",
"Cour",
"dasharray", "dasharray",
"Deutsch", "Deutsch",
"DIALOGEX", "DIALOGEX",

View File

@ -31,7 +31,10 @@ font_dirs = [
"/data/fonts", "/data/fonts",
] ]
font_names = [ font_names = [
"NotoSansMono", "NotoSansMono", # first because of broad Unicode coverage ("Noto" stands for "no tofu", i.e. replacement characters that look like blocks of tofu)
# The rest of this list is not very deliberately ordered.
"CascadiaMono", # Cascadia Code without ligatures; drawing cell by cell, ligatures won't apply anyways
"CascadiaCode",
"DejaVuSansMono", "DejaVuSansMono",
"LiberationMono", "LiberationMono",
"UbuntuMono", "UbuntuMono",
@ -41,12 +44,14 @@ font_names = [
"SourceCodePro", "SourceCodePro",
"DroidSansMono", "DroidSansMono",
"Consolas", "Consolas",
"Consola",
"CourierNew", "CourierNew",
"LucidaConsole", "LucidaConsole",
"Monaco", "Monaco",
"Menlo", "Menlo",
"Andale Mono", "Andale Mono",
"Courier New", "Courier New",
"Cour",
] ]
font = None font = None
for font_dir in font_dirs: for font_dir in font_dirs: