summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-04-21 00:19:34 +0300
committerViljami Ilola <+@hix.fi>2024-04-21 00:19:34 +0300
commit03ad276bf93e160d19f693bf0a39ef095b0189b3 (patch)
treed80228a8f7e2b0b7d374d42c7b5b2925229ca970
parent9f808fa0e43ae903d6159848d1331dcccb91434d (diff)
find and load fonts from assets dir
-rw-r--r--src/sliceitoff/assets/8x8.fnt (renamed from src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X8.FNT)bin4096 -> 4096 bytes
-rw-r--r--src/sliceitoff/assets/COPYRIGHTS.txt6
-rw-r--r--src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.DE6
-rw-r--r--src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.FR6
-rw-r--r--src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.LSM16
-rw-r--r--src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.SV6
-rw-r--r--src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.TR6
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X10.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X11SNSF.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X14.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ANTIQUE.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ARCHON.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BACKWARD.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BIGSERIF.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BLCKSNSF.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BLOCK.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BOLD.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BREEZE.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BROADWAY.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/COMPUTER.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/COURIER.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/CYRILLIC.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/DECO.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/EMPTY.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/EUROTYPE.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FAT.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FINNISH.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FLAT.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FRANCE.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FRESNO.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FUTURA-1.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FUTURA-2.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/GREEK.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HEARST.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HEBREW.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HYLAS.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/INVERTED.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ITALICS.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/KIDS-1.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/KIDS-2.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/MEDIEVAL.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/MODERN-1.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/MODERN-2.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/NORWAY.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/REV8X8.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/REVERSE.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ROMAN-1.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ROMAN-2.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SANSERIF.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SANSURF.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SCOTT.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SCRIPT.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SILVER.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/STANDARD.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/STRETCH.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SUPER.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SURREAL.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SWISS-1.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SWISS-2.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SWISS-3.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/TEKTON.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/TERMINUS.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/THAI.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/THIN.FNTbin4096 -> 0 bytes
-rw-r--r--src/sliceitoff/assets/lcd.fnt (renamed from src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/LCD.FNT)bin4096 -> 4096 bytes
-rw-r--r--src/sliceitoff/text/fonts.py12
66 files changed, 10 insertions, 48 deletions
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X8.FNT b/src/sliceitoff/assets/8x8.fnt
index f0b651e..f0b651e 100644
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X8.FNT
+++ b/src/sliceitoff/assets/8x8.fnt
Binary files differ
diff --git a/src/sliceitoff/assets/COPYRIGHTS.txt b/src/sliceitoff/assets/COPYRIGHTS.txt
new file mode 100644
index 0000000..07e9741
--- /dev/null
+++ b/src/sliceitoff/assets/COPYRIGHTS.txt
@@ -0,0 +1,6 @@
+*.fnt:
+ https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/repos/pkg-html/gnufonts.html
+ GNU General Public License, Version 2
+
+laser.mp3:
+ Samples from pixabay. Pixabay & Charlie_Raven. Edited by me.
diff --git a/src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.DE b/src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.DE
deleted file mode 100644
index 5082bd5..0000000
--- a/src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.DE
+++ /dev/null
@@ -1,6 +0,0 @@
-Begin3
-Language: DE, 858
-Title: GNU chcp fonts
-Description: LOADFONT (GNUCHCP) rohe EGA/VGA-Bitmap-Schriftarten fr Textmodi.
-Keywords: loadfont gnuchcp bitmap font ega vga screen schriftart
-End
diff --git a/src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.FR b/src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.FR
deleted file mode 100644
index 24ef21a..0000000
--- a/src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.FR
+++ /dev/null
@@ -1,6 +0,0 @@
-Begin3
-Language: FR, 850
-Title: GNU chcp fonts
-Description: LOADFONT (GNUCHCP) polices bitmap EGA/VGA brutes pour les modes texte.
-Keywords: loadfont gnuchcp bitmap police ega vga ‚cran
-End
diff --git a/src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.LSM b/src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.LSM
deleted file mode 100644
index c399da5..0000000
--- a/src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.LSM
+++ /dev/null
@@ -1,16 +0,0 @@
-Begin3
-Title: GNU chcp fonts
-Version: 1.0a
-Entered-date: 2013-06-04
-Description: EGA/VGA bitmap fonts for text modes
-Keywords: loadfont gnuchcp bitmap font ega vga screen
-Author: Kurt Zammit
-Maintained-by: Kurt Zammit
-Primary-site: http://zammitsoft.freeservers.com
-Mirror-site: http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/util/system/
-Original-site: http://zammitsoft.freeservers.com
-Platforms: DOS
-Copying-policy: GNU General Public License, Version 2
-Summary: Raw EGA/VGA bitmap fonts for text modes.
-Modified-date: 2022-02-17.0
-end
diff --git a/src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.SV b/src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.SV
deleted file mode 100644
index df108ff..0000000
--- a/src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.SV
+++ /dev/null
@@ -1,6 +0,0 @@
-Begin3
-Language: SV, 850
-Title: GNU chcp-typsnitt
-Description: LOADFONT (GNUCHCP) r†a EGA-/VGA-bitmappstypsnitt f”r textl„gen.
-Keywords: loadfont gnuchcp bitmapp typsnitt ega vga sk„rm
-End
diff --git a/src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.TR b/src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.TR
deleted file mode 100644
index 5fee353..0000000
--- a/src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.TR
+++ /dev/null
@@ -1,6 +0,0 @@
-Begin3
-Language: TR, 857
-Title: GNU chcp fonts
-Description: Metin kipleri i‡in LOADFONT (GNUCHCP) ham EGA/VGA bitmap yaz tipleri.
-Keywords: loadfont gnuchcp bitmap yaz tipi ega vga ekran
-End
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X10.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X10.FNT
deleted file mode 100644
index 27216e9..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X10.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X11SNSF.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X11SNSF.FNT
deleted file mode 100644
index f584fb5..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X11SNSF.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X14.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X14.FNT
deleted file mode 100644
index f10237d..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X14.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ANTIQUE.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ANTIQUE.FNT
deleted file mode 100644
index 16d304e..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ANTIQUE.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ARCHON.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ARCHON.FNT
deleted file mode 100644
index 4fc92d7..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ARCHON.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BACKWARD.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BACKWARD.FNT
deleted file mode 100644
index d078c0d..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BACKWARD.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BIGSERIF.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BIGSERIF.FNT
deleted file mode 100644
index 0e0704f..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BIGSERIF.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BLCKSNSF.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BLCKSNSF.FNT
deleted file mode 100644
index 1b4f5b0..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BLCKSNSF.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BLOCK.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BLOCK.FNT
deleted file mode 100644
index 682a2ea..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BLOCK.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BOLD.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BOLD.FNT
deleted file mode 100644
index b9f4728..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BOLD.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BREEZE.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BREEZE.FNT
deleted file mode 100644
index 96ecb0d..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BREEZE.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BROADWAY.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BROADWAY.FNT
deleted file mode 100644
index 565e4ec..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BROADWAY.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/COMPUTER.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/COMPUTER.FNT
deleted file mode 100644
index 6862665..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/COMPUTER.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/COURIER.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/COURIER.FNT
deleted file mode 100644
index fbba1a1..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/COURIER.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/CYRILLIC.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/CYRILLIC.FNT
deleted file mode 100644
index 3c07185..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/CYRILLIC.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/DECO.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/DECO.FNT
deleted file mode 100644
index d61c7b9..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/DECO.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/EMPTY.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/EMPTY.FNT
deleted file mode 100644
index 85d0ffd..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/EMPTY.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/EUROTYPE.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/EUROTYPE.FNT
deleted file mode 100644
index a92852f..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/EUROTYPE.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FAT.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FAT.FNT
deleted file mode 100644
index c30c214..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FAT.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FINNISH.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FINNISH.FNT
deleted file mode 100644
index ce9723e..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FINNISH.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FLAT.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FLAT.FNT
deleted file mode 100644
index 3c011ae..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FLAT.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FRANCE.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FRANCE.FNT
deleted file mode 100644
index 23aaf38..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FRANCE.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FRESNO.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FRESNO.FNT
deleted file mode 100644
index ca3078b..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FRESNO.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FUTURA-1.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FUTURA-1.FNT
deleted file mode 100644
index f835e52..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FUTURA-1.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FUTURA-2.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FUTURA-2.FNT
deleted file mode 100644
index 1a8c9e2..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FUTURA-2.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/GREEK.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/GREEK.FNT
deleted file mode 100644
index 63361c6..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/GREEK.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HEARST.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HEARST.FNT
deleted file mode 100644
index 59d20da..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HEARST.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HEBREW.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HEBREW.FNT
deleted file mode 100644
index 0459008..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HEBREW.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HYLAS.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HYLAS.FNT
deleted file mode 100644
index f5691cc..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HYLAS.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/INVERTED.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/INVERTED.FNT
deleted file mode 100644
index e422bb6..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/INVERTED.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ITALICS.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ITALICS.FNT
deleted file mode 100644
index ad172ae..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ITALICS.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/KIDS-1.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/KIDS-1.FNT
deleted file mode 100644
index c174343..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/KIDS-1.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/KIDS-2.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/KIDS-2.FNT
deleted file mode 100644
index c6577dd..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/KIDS-2.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/MEDIEVAL.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/MEDIEVAL.FNT
deleted file mode 100644
index ab02bd6..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/MEDIEVAL.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/MODERN-1.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/MODERN-1.FNT
deleted file mode 100644
index 79f69dc..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/MODERN-1.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/MODERN-2.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/MODERN-2.FNT
deleted file mode 100644
index 90754d5..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/MODERN-2.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/NORWAY.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/NORWAY.FNT
deleted file mode 100644
index 9841a46..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/NORWAY.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/REV8X8.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/REV8X8.FNT
deleted file mode 100644
index 7c4e21f..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/REV8X8.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/REVERSE.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/REVERSE.FNT
deleted file mode 100644
index 7f6a8a8..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/REVERSE.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ROMAN-1.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ROMAN-1.FNT
deleted file mode 100644
index 3afa137..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ROMAN-1.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ROMAN-2.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ROMAN-2.FNT
deleted file mode 100644
index a96eee8..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ROMAN-2.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SANSERIF.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SANSERIF.FNT
deleted file mode 100644
index 57c6176..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SANSERIF.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SANSURF.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SANSURF.FNT
deleted file mode 100644
index 3d55d61..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SANSURF.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SCOTT.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SCOTT.FNT
deleted file mode 100644
index 10f235b..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SCOTT.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SCRIPT.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SCRIPT.FNT
deleted file mode 100644
index f16090d..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SCRIPT.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SILVER.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SILVER.FNT
deleted file mode 100644
index 245a008..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SILVER.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/STANDARD.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/STANDARD.FNT
deleted file mode 100644
index 19ff712..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/STANDARD.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/STRETCH.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/STRETCH.FNT
deleted file mode 100644
index 4b74341..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/STRETCH.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SUPER.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SUPER.FNT
deleted file mode 100644
index cfcd60f..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SUPER.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SURREAL.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SURREAL.FNT
deleted file mode 100644
index 821da52..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SURREAL.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SWISS-1.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SWISS-1.FNT
deleted file mode 100644
index 7267692..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SWISS-1.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SWISS-2.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SWISS-2.FNT
deleted file mode 100644
index 3f540ba..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SWISS-2.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SWISS-3.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SWISS-3.FNT
deleted file mode 100644
index 1f76137..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SWISS-3.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/TEKTON.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/TEKTON.FNT
deleted file mode 100644
index 72b3148..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/TEKTON.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/TERMINUS.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/TERMINUS.FNT
deleted file mode 100644
index ca93cc7..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/TERMINUS.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/THAI.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/THAI.FNT
deleted file mode 100644
index b941e9c..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/THAI.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/THIN.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/THIN.FNT
deleted file mode 100644
index f51ece8..0000000
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/THIN.FNT
+++ /dev/null
Binary files differ
diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/LCD.FNT b/src/sliceitoff/assets/lcd.fnt
index 0d8842b..0d8842b 100644
--- a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/LCD.FNT
+++ b/src/sliceitoff/assets/lcd.fnt
Binary files differ
diff --git a/src/sliceitoff/text/fonts.py b/src/sliceitoff/text/fonts.py
index 8776530..24eb91e 100644
--- a/src/sliceitoff/text/fonts.py
+++ b/src/sliceitoff/text/fonts.py
@@ -1,5 +1,6 @@
""" text.fonts - .FNT file loading and storing """
import os
+from pathlib import Path
import pygame
DEBUG = os.getenv("DEBUG")
@@ -10,14 +11,9 @@ class Fonts:
self.fonts = {}
def init(self, base_path):
- """ loads fonts from list """
- filename_fontlist = os.path.join(base_path, "fonts.lst")
- with open(filename_fontlist, "r", encoding="utf-8") as fontlist_file:
- for line in fontlist_file:
- name, *path = line.strip().split()
- filename = os.path.join(base_path, *path)
- self.fonts[name] = Font(filename)
- return True
+ """ loads fonts found in assets directory """
+ for fnt_file in Path(base_path).glob('*.fnt'):
+ self.fonts[str(fnt_file.stem)] = Font(fnt_file)
class Font: