diff --git a/Salma.otf b/Salma.otf deleted file mode 100644 index 66d1a696..00000000 Binary files a/Salma.otf and /dev/null differ diff --git a/VERSION b/VERSION index 50225513..4b3f9466 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.16.5-develop99 +1.16.5-develop100 diff --git a/docs/metadata/overlay.md b/docs/metadata/overlay.md index 198156c4..a09bd121 100644 --- a/docs/metadata/overlay.md +++ b/docs/metadata/overlay.md @@ -108,9 +108,9 @@ The `horizontal_offset` and `vertical_offset` overlay attributes are required wh You can add an items rating number (`8.7`) to the image by using `text(audience_rating)`, `text(critic_rating)`, or `text(user_rating)` -You can add an items rating percentage (`87%`) to the image by using `text(audience_rating%)`, `text(critic_rating%)`, or `text(user_rating%)` +You can add an items rating percentage (`87%`) to the image by using `text(audience_rating%)`, `text(critic_rating%)`, or `text(user_rating%)` -Default font `Salma.otf` provided by [Alifinart Studio](https://www.behance.net/alifinart) +PMM includes multiple fonts in the [`fonts` folder](https://github.com/meisnate12/Plex-Meta-Manager/tree/master/fonts) which can be called using `fonts/fontname.ttf` ```yaml overlays: @@ -119,7 +119,7 @@ overlays: name: text(audience_rating) horizontal_offset: 15 vertical_offset: 15 - font: Salma.otf + font: fonts/Roboto-Medium.ttf font_size: 200 plex_all: true ``` diff --git a/fonts/Inter-Black.ttf b/fonts/Inter-Black.ttf new file mode 100644 index 00000000..6bb38b6f Binary files /dev/null and b/fonts/Inter-Black.ttf differ diff --git a/fonts/Inter-Bold.ttf b/fonts/Inter-Bold.ttf new file mode 100644 index 00000000..90623289 Binary files /dev/null and b/fonts/Inter-Bold.ttf differ diff --git a/fonts/Inter-ExtraBold.ttf b/fonts/Inter-ExtraBold.ttf new file mode 100644 index 00000000..c746904e Binary files /dev/null and b/fonts/Inter-ExtraBold.ttf differ diff --git a/fonts/Inter-ExtraLight.ttf b/fonts/Inter-ExtraLight.ttf new file mode 100644 index 00000000..1c92afea Binary files /dev/null and b/fonts/Inter-ExtraLight.ttf differ diff --git a/fonts/Inter-Light.ttf b/fonts/Inter-Light.ttf new file mode 100644 index 00000000..3e1cd324 Binary files /dev/null and b/fonts/Inter-Light.ttf differ diff --git a/fonts/Inter-Medium.ttf b/fonts/Inter-Medium.ttf new file mode 100644 index 00000000..49b53ab3 Binary files /dev/null and b/fonts/Inter-Medium.ttf differ diff --git a/fonts/Inter-Regular.ttf b/fonts/Inter-Regular.ttf new file mode 100644 index 00000000..f17b596c Binary files /dev/null and b/fonts/Inter-Regular.ttf differ diff --git a/fonts/Inter-SemiBold.ttf b/fonts/Inter-SemiBold.ttf new file mode 100644 index 00000000..01523b22 Binary files /dev/null and b/fonts/Inter-SemiBold.ttf differ diff --git a/fonts/Inter-Thin.ttf b/fonts/Inter-Thin.ttf new file mode 100644 index 00000000..089857e4 Binary files /dev/null and b/fonts/Inter-Thin.ttf differ diff --git a/fonts/Roboto-Black.ttf b/fonts/Roboto-Black.ttf new file mode 100644 index 00000000..0112e7da Binary files /dev/null and b/fonts/Roboto-Black.ttf differ diff --git a/fonts/Roboto-BlackItalic.ttf b/fonts/Roboto-BlackItalic.ttf new file mode 100644 index 00000000..b2c6aca5 Binary files /dev/null and b/fonts/Roboto-BlackItalic.ttf differ diff --git a/fonts/Roboto-Bold.ttf b/fonts/Roboto-Bold.ttf new file mode 100644 index 00000000..43da14d8 Binary files /dev/null and b/fonts/Roboto-Bold.ttf differ diff --git a/fonts/Roboto-BoldItalic.ttf b/fonts/Roboto-BoldItalic.ttf new file mode 100644 index 00000000..bcfdab43 Binary files /dev/null and b/fonts/Roboto-BoldItalic.ttf differ diff --git a/fonts/Roboto-Italic.ttf b/fonts/Roboto-Italic.ttf new file mode 100644 index 00000000..1b5eaa36 Binary files /dev/null and b/fonts/Roboto-Italic.ttf differ diff --git a/fonts/Roboto-Light.ttf b/fonts/Roboto-Light.ttf new file mode 100644 index 00000000..e7307e72 Binary files /dev/null and b/fonts/Roboto-Light.ttf differ diff --git a/fonts/Roboto-LightItalic.ttf b/fonts/Roboto-LightItalic.ttf new file mode 100644 index 00000000..2d277afb Binary files /dev/null and b/fonts/Roboto-LightItalic.ttf differ diff --git a/fonts/Roboto-Medium.ttf b/fonts/Roboto-Medium.ttf new file mode 100644 index 00000000..ac0f908b Binary files /dev/null and b/fonts/Roboto-Medium.ttf differ diff --git a/fonts/Roboto-MediumItalic.ttf b/fonts/Roboto-MediumItalic.ttf new file mode 100644 index 00000000..fc36a478 Binary files /dev/null and b/fonts/Roboto-MediumItalic.ttf differ diff --git a/fonts/Roboto-Regular.ttf b/fonts/Roboto-Regular.ttf new file mode 100644 index 00000000..ddf4bfac Binary files /dev/null and b/fonts/Roboto-Regular.ttf differ diff --git a/fonts/Roboto-Thin.ttf b/fonts/Roboto-Thin.ttf new file mode 100644 index 00000000..2e0dee6a Binary files /dev/null and b/fonts/Roboto-Thin.ttf differ diff --git a/fonts/Roboto-ThinItalic.ttf b/fonts/Roboto-ThinItalic.ttf new file mode 100644 index 00000000..084f9c0f Binary files /dev/null and b/fonts/Roboto-ThinItalic.ttf differ diff --git a/modules/util.py b/modules/util.py index d6b78f3f..4d26b7be 100644 --- a/modules/util.py +++ b/modules/util.py @@ -952,8 +952,8 @@ class Overlay: if not match: raise Failed(f"Overlay Error: failed to parse overlay text name: {self.name}") self.name = f"text({match.group(1)})" - if os.path.exists("Salma.otf"): - self.font_name = "Salma.otf" + if os.path.exists("fonts/Roboto-Medium.ttf"): + self.font_name = "fonts/Roboto-Medium.ttf" if "font_size" in self.data and self.data["font_size"] is not None: font_size = check_num(self.data["font_size"]) if font_size is None or font_size < 1: