0

How to write beta with PIL in python?

I tried:

draw.multiline_text((350, 300), 'β', fill=(0, 0, 0), font = font_small)
draw.multiline_text((350, 300), r'$\beta$', fill=(0, 0, 0), font = font_small)
draw.multiline_text((350, 300), u'ß', fill=(0, 0, 0), font = font_small)
draw.multiline_text((350, 300), u'\u03B2', fill=(0, 0, 0), font = font_small)
draw.multiline_text((350, 300), u"ß", fill=(0, 0, 0), font = font_small)
Elena Greg
  • 1,061
  • 1
  • 11
  • 26
  • does this help: https://stackoverflow.com/questions/11411746/drawing-multilingual-text-using-pil ? – bb1950328 Oct 05 '20 at 14:59
  • No, I hope it is similar to my last atmept from the question, right? – Elena Greg Oct 05 '20 at 19:19
  • yes, but is your `font_small` a unicode font? – bb1950328 Oct 06 '20 at 07:32
  • No, probably not. Thank you you are right. What LM Roman font should I download to have the one that is a Unicode font, please? I treid https://www.fontsquirrel.com/fonts/latin-modern-roman but there is a rectangle after the compilation. – Elena Greg Oct 06 '20 at 07:49
  • 1
    I got it. CMU-serif is an appropriate font similar to LM Roman with Greek letters available – Elena Greg Oct 06 '20 at 09:24

0 Answers0