font¶
Functions
|
Args: |
|
Get size of font for image with given sizes :type img_size: |
|
Set global font true-type for drawing. |
Description
-
get_font(font_file_name=
None
, font_size=12
)[source]¶ - Args:
font_file_name: name of font file (example: ‘DejaVuSansMono.ttf’) font_size: selected font size
- Returns:
font for drawing
- Return type
FreeTypeFont