From 03ad276bf93e160d19f693bf0a39ef095b0189b3 Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Sun, 21 Apr 2024 00:19:34 +0300 Subject: find and load fonts from assets dir --- src/sliceitoff/assets/8x8.fnt | Bin 0 -> 4096 bytes src/sliceitoff/assets/COPYRIGHTS.txt | 6 ++++++ src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.DE | 6 ------ src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.FR | 6 ------ src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.LSM | 16 ---------------- src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.SV | 6 ------ src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.TR | 6 ------ src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X10.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/8X11SNSF.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X14.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X8.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/ANTIQUE.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ARCHON.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/BACKWARD.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/BIGSERIF.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/BLCKSNSF.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BLOCK.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BOLD.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BREEZE.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/BROADWAY.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/COMPUTER.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/COURIER.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/CYRILLIC.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/DECO.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/EMPTY.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/EUROTYPE.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FAT.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/FINNISH.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FLAT.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FRANCE.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FRESNO.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/FUTURA-1.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/FUTURA-2.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/GREEK.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HEARST.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HEBREW.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HYLAS.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/INVERTED.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/ITALICS.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/KIDS-1.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/KIDS-2.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/LCD.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/MEDIEVAL.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/MODERN-1.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/MODERN-2.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/NORWAY.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/REV8X8.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/REVERSE.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/ROMAN-1.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/ROMAN-2.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/SANSERIF.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/SANSURF.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SCOTT.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SCRIPT.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SILVER.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/STANDARD.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/STRETCH.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SUPER.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/SURREAL.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/SWISS-1.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/SWISS-2.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/SWISS-3.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/TEKTON.FNT | Bin 4096 -> 0 bytes .../assets/gnufonts/UTIL/GNUFONTS/TERMINUS.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/THAI.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/THIN.FNT | Bin 4096 -> 0 bytes src/sliceitoff/assets/lcd.fnt | Bin 0 -> 4096 bytes src/sliceitoff/text/fonts.py | 12 ++++-------- 68 files changed, 10 insertions(+), 48 deletions(-) create mode 100644 src/sliceitoff/assets/8x8.fnt create mode 100644 src/sliceitoff/assets/COPYRIGHTS.txt delete mode 100644 src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.DE delete mode 100644 src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.FR delete mode 100644 src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.LSM delete mode 100644 src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.SV delete mode 100644 src/sliceitoff/assets/gnufonts/APPINFO/GNUFONTS.TR delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X10.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X11SNSF.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X14.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X8.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ANTIQUE.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ARCHON.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BACKWARD.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BIGSERIF.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BLCKSNSF.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BLOCK.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BOLD.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BREEZE.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BROADWAY.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/COMPUTER.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/COURIER.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/CYRILLIC.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/DECO.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/EMPTY.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/EUROTYPE.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FAT.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FINNISH.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FLAT.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FRANCE.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FRESNO.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FUTURA-1.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FUTURA-2.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/GREEK.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HEARST.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HEBREW.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HYLAS.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/INVERTED.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ITALICS.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/KIDS-1.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/KIDS-2.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/LCD.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/MEDIEVAL.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/MODERN-1.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/MODERN-2.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/NORWAY.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/REV8X8.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/REVERSE.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ROMAN-1.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ROMAN-2.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SANSERIF.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SANSURF.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SCOTT.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SCRIPT.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SILVER.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/STANDARD.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/STRETCH.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SUPER.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SURREAL.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SWISS-1.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SWISS-2.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SWISS-3.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/TEKTON.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/TERMINUS.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/THAI.FNT delete mode 100644 src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/THIN.FNT create mode 100644 src/sliceitoff/assets/lcd.fnt (limited to 'src') diff --git a/src/sliceitoff/assets/8x8.fnt b/src/sliceitoff/assets/8x8.fnt new file mode 100644 index 0000000..f0b651e Binary files /dev/null and b/src/sliceitoff/assets/8x8.fnt 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X10.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X11SNSF.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X14.FNT and /dev/null differ diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X8.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X8.FNT deleted file mode 100644 index f0b651e..0000000 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/8X8.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ANTIQUE.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ARCHON.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BACKWARD.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BIGSERIF.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BLCKSNSF.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BLOCK.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BOLD.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BREEZE.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/BROADWAY.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/COMPUTER.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/COURIER.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/CYRILLIC.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/DECO.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/EMPTY.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/EUROTYPE.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FAT.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FINNISH.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FLAT.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FRANCE.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FRESNO.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FUTURA-1.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/FUTURA-2.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/GREEK.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HEARST.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HEBREW.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/HYLAS.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/INVERTED.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ITALICS.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/KIDS-1.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/KIDS-2.FNT and /dev/null differ diff --git a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/LCD.FNT b/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/LCD.FNT deleted file mode 100644 index 0d8842b..0000000 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/LCD.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/MEDIEVAL.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/MODERN-1.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/MODERN-2.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/NORWAY.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/REV8X8.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/REVERSE.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ROMAN-1.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/ROMAN-2.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SANSERIF.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SANSURF.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SCOTT.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SCRIPT.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SILVER.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/STANDARD.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/STRETCH.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SUPER.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SURREAL.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SWISS-1.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SWISS-2.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/SWISS-3.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/TEKTON.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/TERMINUS.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/THAI.FNT and /dev/null 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 Binary files a/src/sliceitoff/assets/gnufonts/UTIL/GNUFONTS/THIN.FNT and /dev/null differ diff --git a/src/sliceitoff/assets/lcd.fnt b/src/sliceitoff/assets/lcd.fnt new file mode 100644 index 0000000..0d8842b Binary files /dev/null and b/src/sliceitoff/assets/lcd.fnt 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: -- cgit v1.2.3