[100] update fonts

This commit is contained in:
meisnate12 2022-05-15 23:59:00 -04:00
parent d880cc4840
commit de737d9aca
25 changed files with 6 additions and 6 deletions

BIN
Salma.otf

Binary file not shown.

View file

@ -1 +1 @@
1.16.5-develop99
1.16.5-develop100

View file

@ -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
```

BIN
fonts/Inter-Black.ttf Normal file

Binary file not shown.

BIN
fonts/Inter-Bold.ttf Normal file

Binary file not shown.

BIN
fonts/Inter-ExtraBold.ttf Normal file

Binary file not shown.

BIN
fonts/Inter-ExtraLight.ttf Normal file

Binary file not shown.

BIN
fonts/Inter-Light.ttf Normal file

Binary file not shown.

BIN
fonts/Inter-Medium.ttf Normal file

Binary file not shown.

BIN
fonts/Inter-Regular.ttf Normal file

Binary file not shown.

BIN
fonts/Inter-SemiBold.ttf Normal file

Binary file not shown.

BIN
fonts/Inter-Thin.ttf Normal file

Binary file not shown.

BIN
fonts/Roboto-Black.ttf Normal file

Binary file not shown.

Binary file not shown.

BIN
fonts/Roboto-Bold.ttf Normal file

Binary file not shown.

BIN
fonts/Roboto-BoldItalic.ttf Normal file

Binary file not shown.

BIN
fonts/Roboto-Italic.ttf Normal file

Binary file not shown.

BIN
fonts/Roboto-Light.ttf Normal file

Binary file not shown.

Binary file not shown.

BIN
fonts/Roboto-Medium.ttf Normal file

Binary file not shown.

Binary file not shown.

BIN
fonts/Roboto-Regular.ttf Normal file

Binary file not shown.

BIN
fonts/Roboto-Thin.ttf Normal file

Binary file not shown.

BIN
fonts/Roboto-ThinItalic.ttf Normal file

Binary file not shown.

View file

@ -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: