from PIL import Image, ImageDraw, ImageFont import textwrap # Initialize fonts (fallback if needed) try: font_title = ImageFont.truetype("DejaVuSans-Bold.ttf", 40) font_body = ImageFont.truetype("DejaVuSans.ttf", 24) font_quote = ImageFont.truetype("DejaVuSans-Oblique.ttf", 22) badge_title_font = ImageFont.truetype("DejaVuSans-Bold.ttf", 28) badge_font = ImageFont.truetype("DejaVuSans.ttf", 20) except IOError: font_title = font_body = font_quote = badge_title_font = badge_font = ImageFont.load_default() # Create Info Sheet Image info_img = Image.new("RGB", (800, 1000), color="white") draw = ImageDraw.Draw(info_img) title_text = "đ Meet Miss Lyra â The Rat Educator!" body_text = ( "Hi there! My name is Miss Lyra, and I'm not just any ratâI'm a teaching rat!\n\n" "I work with my human, Alex, to help kids learn all about rats and why theyâre actually smart, " "clean, and super fun to be around. I may be tiny, but Iâve got a big job: showing people that " "rats are kind, gentle, and really cool animals.\n\n" "Some people think rats are scary or dirtyâbut Iâm here to prove them wrong! I love cuddles, snacks, " "and learning tricks. I even come when my name is called!\n\n" "Whether Iâm visiting a classroom or meeting new friends at an event, I help kids learn how to treat " "all animals with kindness and respect." ) fun_facts = "đŸ Fun Facts:\nâą Favorite Snack: Banana bits đ\nâą Best Trick: Coming when called đ\nâą Favorite Place: Snuggled in a hoodie pocket đ§„" quote = '"Being Ver mais