Refactor code structure for improved readability and maintainability
This commit is contained in:
parent
e68e1467a7
commit
9dd1b821ab
BIN
FONT/OPTIFutura-ExtraBlackCond.otf
Normal file
BIN
FONT/OPTIFutura-ExtraBlackCond.otf
Normal file
Binary file not shown.
@ -22,9 +22,7 @@ class CaptionCog(commands.Cog, name="Caption"):
|
|||||||
self.bot = bot
|
self.bot = bot
|
||||||
# Define preferred font names/paths
|
# Define preferred font names/paths
|
||||||
self.preferred_fonts = [
|
self.preferred_fonts = [
|
||||||
"impact.ttf", # Common name for Impact font file
|
os.path.join("FONT", "OPTIFutura-ExtraBlackCond.otf") # Bundled fallback
|
||||||
"Impact", # Font name Pillow might find if installed system-wide
|
|
||||||
os.path.join("FONT", "impact.ttf") # Bundled fallback
|
|
||||||
]
|
]
|
||||||
|
|
||||||
def _add_text_to_gif(self, image_bytes: bytes, caption_text: str):
|
def _add_text_to_gif(self, image_bytes: bytes, caption_text: str):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user