From f40734fa7e6919b2d9e3d1cb6b1fd4f530bb3e7d Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Tue, 14 Dec 2021 19:47:02 +0100 Subject: Add back (another) custom font --- src/gui/gui.py | 12 ++++++------ src/gui/lena512color.png | Bin 474775 -> 0 bytes src/gui/lena512color.tiff | Bin 786572 -> 0 bytes src/gui/res/pic/lena512color.png | Bin 0 -> 474775 bytes src/gui/res/pic/lena512color.tiff | Bin 0 -> 786572 bytes src/gui/res/ttf/Hack-Bold.ttf | Bin 0 -> 317628 bytes src/gui/res/ttf/Hack-BoldItalic.ttf | Bin 0 -> 322288 bytes src/gui/res/ttf/Hack-Italic.ttf | Bin 0 -> 316156 bytes src/gui/res/ttf/Hack-Regular.ttf | Bin 0 -> 309408 bytes 9 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 src/gui/lena512color.png delete mode 100644 src/gui/lena512color.tiff create mode 100644 src/gui/res/pic/lena512color.png create mode 100644 src/gui/res/pic/lena512color.tiff create mode 100644 src/gui/res/ttf/Hack-Bold.ttf create mode 100644 src/gui/res/ttf/Hack-BoldItalic.ttf create mode 100644 src/gui/res/ttf/Hack-Italic.ttf create mode 100644 src/gui/res/ttf/Hack-Regular.ttf (limited to 'src') diff --git a/src/gui/gui.py b/src/gui/gui.py index 5d86de1..9f63452 100755 --- a/src/gui/gui.py +++ b/src/gui/gui.py @@ -88,11 +88,11 @@ plots_locked = True # Set up theme and looks # Font -# with font_registry(): -# # first argument ids the path to the .ttf or .otf file -# default_font = add_font("NotoSerifCJKjp-Medium.otf", 20) -# second_font = add_font("NotoSerifCJKjp-Medium.otf", 10) -# test = add_font("NotoSerifCJKjp-Medium.otf", 30) +with font_registry(): + # first argument ids the path to the .ttf or .otf file + default_font = add_font("res/ttf/Hack-Regular.ttf", 20) + # second_font = add_font("NotoSerifCJKjp-Medium.otf", 10) + # test = add_font("NotoSerifCJKjp-Medium.otf", 30) # Constellation diagrams with theme(tag="constellation_series_theme"): @@ -113,7 +113,7 @@ def exit(sender, data): with window(tag="primary_window"): # Grössere Schrifftart/ Grösse für das ganze Dokument definiert - # bind_font(default_font) + bind_font(default_font) with menu_bar(): with menu(label="Settings"): diff --git a/src/gui/lena512color.png b/src/gui/lena512color.png deleted file mode 100644 index 7d364e0..0000000 Binary files a/src/gui/lena512color.png and /dev/null differ diff --git a/src/gui/lena512color.tiff b/src/gui/lena512color.tiff deleted file mode 100644 index ffe5c83..0000000 Binary files a/src/gui/lena512color.tiff and /dev/null differ diff --git a/src/gui/res/pic/lena512color.png b/src/gui/res/pic/lena512color.png new file mode 100644 index 0000000..7d364e0 Binary files /dev/null and b/src/gui/res/pic/lena512color.png differ diff --git a/src/gui/res/pic/lena512color.tiff b/src/gui/res/pic/lena512color.tiff new file mode 100644 index 0000000..ffe5c83 Binary files /dev/null and b/src/gui/res/pic/lena512color.tiff differ diff --git a/src/gui/res/ttf/Hack-Bold.ttf b/src/gui/res/ttf/Hack-Bold.ttf new file mode 100644 index 0000000..7ff4975 Binary files /dev/null and b/src/gui/res/ttf/Hack-Bold.ttf differ diff --git a/src/gui/res/ttf/Hack-BoldItalic.ttf b/src/gui/res/ttf/Hack-BoldItalic.ttf new file mode 100644 index 0000000..3b137d9 Binary files /dev/null and b/src/gui/res/ttf/Hack-BoldItalic.ttf differ diff --git a/src/gui/res/ttf/Hack-Italic.ttf b/src/gui/res/ttf/Hack-Italic.ttf new file mode 100644 index 0000000..d26198a Binary files /dev/null and b/src/gui/res/ttf/Hack-Italic.ttf differ diff --git a/src/gui/res/ttf/Hack-Regular.ttf b/src/gui/res/ttf/Hack-Regular.ttf new file mode 100644 index 0000000..92a90cb Binary files /dev/null and b/src/gui/res/ttf/Hack-Regular.ttf differ -- cgit v1.2.1