[100] update fonts

pull/877/head
meisnate12 2 years ago
parent d880cc4840
commit de737d9aca

Binary file not shown.

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

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

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

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

Loading…
Cancel
Save