🐛 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 .calendar_config import CalendarConfig, get_calendar_config
|
||||
from .config import Config, get_config
|
||||
from .dav.webdav import WebDAV
|
||||
from .helpers import (
|
||||
RE_TTF,
|
||||
EventDates,
|
||||
|
|
@ -23,6 +22,7 @@ from .helpers import (
|
|||
load_image,
|
||||
set_len,
|
||||
)
|
||||
from .settings import WEBDAV
|
||||
|
||||
RE_NUM = re.compile(r"/(\d+)\.", flags=re.IGNORECASE)
|
||||
|
||||
|
|
@ -143,7 +143,7 @@ class TTFont:
|
|||
@property
|
||||
async def font(self) -> FreeTypeFont:
|
||||
return ImageFont.truetype(
|
||||
font=BytesIO(await WebDAV.read_bytes(self.file_name)),
|
||||
font=BytesIO(await WEBDAV.read_bytes(self.file_name)),
|
||||
size=100,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue