🐛 missed one class method usage
This commit is contained in:
parent
febcf63dba
commit
f36192dc74
1 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,6 @@ from PIL.ImageFont import FreeTypeFont
|
||||||
from .advent_image import _XY, AdventImage
|
from .advent_image import _XY, AdventImage
|
||||||
from .calendar_config import CalendarConfig, get_calendar_config
|
from .calendar_config import CalendarConfig, get_calendar_config
|
||||||
from .config import Config, get_config
|
from .config import Config, get_config
|
||||||
from .dav.webdav import WebDAV
|
|
||||||
from .helpers import (
|
from .helpers import (
|
||||||
RE_TTF,
|
RE_TTF,
|
||||||
EventDates,
|
EventDates,
|
||||||
|
|
@ -23,6 +22,7 @@ from .helpers import (
|
||||||
load_image,
|
load_image,
|
||||||
set_len,
|
set_len,
|
||||||
)
|
)
|
||||||
|
from .settings import WEBDAV
|
||||||
|
|
||||||
RE_NUM = re.compile(r"/(\d+)\.", flags=re.IGNORECASE)
|
RE_NUM = re.compile(r"/(\d+)\.", flags=re.IGNORECASE)
|
||||||
|
|
||||||
|
|
@ -143,7 +143,7 @@ class TTFont:
|
||||||
@property
|
@property
|
||||||
async def font(self) -> FreeTypeFont:
|
async def font(self) -> FreeTypeFont:
|
||||||
return ImageFont.truetype(
|
return ImageFont.truetype(
|
||||||
font=BytesIO(await WebDAV.read_bytes(self.file_name)),
|
font=BytesIO(await WEBDAV.read_bytes(self.file_name)),
|
||||||
size=100,
|
size=100,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue