Skip to content Skip to sidebar Skip to footer
Showing posts with the label Fonts

Python , Changing A Font Size Of A String Variable

I have a variable that gets sent to a email as text but the text is all pretty much a standard size… Read more Python , Changing A Font Size Of A String Variable

Writing Text With Diacritic ("nikud", Vocalization Marks) Using Pil (python Imaging Library)

Writing simple text on an image using PIL is easy. draw = ImageDraw.Draw(img) draw.text((10, y), te… Read more Writing Text With Diacritic ("nikud", Vocalization Marks) Using Pil (python Imaging Library)

Use Matplotlib.pyplot.rcparams With A Custom Font Which Is Not Installed

I'm trying to use a custom ttf font not installed in the system for text element in the matplot… Read more Use Matplotlib.pyplot.rcparams With A Custom Font Which Is Not Installed

Email.retr Retrieves Strange =20 Characters When The Email Body Has Chinese Characters In It

self.logger.info(msg) popinstance=poplib.POP3(self.account[0]) self.logger.info(popinstance… Read more Email.retr Retrieves Strange =20 Characters When The Email Body Has Chinese Characters In It

Drawing Multilingual Text Using Pil And Saving As 1-bit And 8-bit Bitmaps

I started with the script in this nice answer. It works just fine for 'RGB', but the 8-bit … Read more Drawing Multilingual Text Using Pil And Saving As 1-bit And 8-bit Bitmaps

Reportlab: Working With Chinese/unicode Characters

TL;DR: Is there some way of telling ReportLab to use a specific font, and fallback to another if g… Read more Reportlab: Working With Chinese/unicode Characters