contant width font code example
Example 1: change text width html
<!-- relative font size -->
<font size="+2">This is bigger text.</font>
<font size="-1">This is smaller text.</font>
<!-- absolute font size -->
<font size="1">This is really tiny text.</font>
Example 2: size pilimage
from PIL import Image
MyImage = Image.open('path/to/my/image.jpg')
width, height = MyImage.size