diff --git a/Calendar/Assets.py b/Calendar/Assets.py index b5ef1e3..c07cb8e 100644 --- a/Calendar/Assets.py +++ b/Calendar/Assets.py @@ -7,6 +7,7 @@ im_open = Image.open path = '' wpath = path+'weather-icons/' opath = path+'other/' +fpath = path+'fonts/' tempicon = im_open(opath+'temperature.jpeg') humicon = im_open(opath+'humidity.jpeg') @@ -15,7 +16,16 @@ sunriseicon = im_open(opath+'wi-sunrise.jpeg') sunseticon = im_open(opath+'wi-sunset.jpeg') windicon = im_open(opath+'wi-strong-wind.jpeg') -defaultfont = "Assistant-SemiBold.otf" +fonts = { + "extralight" : "Assistant-ExtraLight.otf", + "light" : "Assistant-Light.otf", + "regular" : "Assistant-Regular.otf", + "semibold" : "Assistant-SemiBold.otf", + "bold" : "Assistant-Bold.otf", + "extrabold" : "Assistant-ExtraBold.otf" +} + +defaultfont = fpath + fonts[font_boldness] datetime_locals = { "de" : "de_DE.UTF-8", diff --git a/Calendar/Assistant-Regular.ttf b/Calendar/Assistant-Regular.ttf deleted file mode 100644 index f557311..0000000 Binary files a/Calendar/Assistant-Regular.ttf and /dev/null differ diff --git a/Calendar/fonts/Assistant-Bold.otf b/Calendar/fonts/Assistant-Bold.otf new file mode 100644 index 0000000..0ce2747 Binary files /dev/null and b/Calendar/fonts/Assistant-Bold.otf differ diff --git a/Calendar/fonts/Assistant-ExtraBold.otf b/Calendar/fonts/Assistant-ExtraBold.otf new file mode 100644 index 0000000..580ac53 Binary files /dev/null and b/Calendar/fonts/Assistant-ExtraBold.otf differ diff --git a/Calendar/fonts/Assistant-ExtraLight.otf b/Calendar/fonts/Assistant-ExtraLight.otf new file mode 100644 index 0000000..d37dfa3 Binary files /dev/null and b/Calendar/fonts/Assistant-ExtraLight.otf differ diff --git a/Calendar/fonts/Assistant-Light.otf b/Calendar/fonts/Assistant-Light.otf new file mode 100644 index 0000000..1bbcf4f Binary files /dev/null and b/Calendar/fonts/Assistant-Light.otf differ diff --git a/Calendar/fonts/Assistant-Regular.otf b/Calendar/fonts/Assistant-Regular.otf new file mode 100644 index 0000000..963f92c Binary files /dev/null and b/Calendar/fonts/Assistant-Regular.otf differ diff --git a/Calendar/Assistant-SemiBold.otf b/Calendar/fonts/Assistant-SemiBold.otf similarity index 100% rename from Calendar/Assistant-SemiBold.otf rename to Calendar/fonts/Assistant-SemiBold.otf diff --git a/Calendar/OpenSans-Semibold.ttf b/Calendar/fonts/OpenSans-Semibold.ttf similarity index 100% rename from Calendar/OpenSans-Semibold.ttf rename to Calendar/fonts/OpenSans-Semibold.ttf diff --git a/Calendar/settings.py.sample b/Calendar/settings.py.sample index 740540b..a47e830 100644 --- a/Calendar/settings.py.sample +++ b/Calendar/settings.py.sample @@ -19,6 +19,7 @@ hours = "24" """DESIGN""" +font_boldness = "semibold" # extralight, light, regular, semibold, bold, extrabold choosen_design = "month-overview" # month-overview, day-list general_settings = { # General settings that designs may use "info-area" : "rss", # empty, events, rss