geepillow.fonts#
Fonts module.
Attributes#
Functions#
|
Create a font. |
|
Load binary data from filename. |
|
Load a Font from a file. |
|
OpenSans-Bold. |
|
OpenSans-BoldItalic. |
|
OpenSans-Italic. |
|
OpenSans-Light. |
|
OpenSans-Regular. |
|
Get font from URL. |
Package Contents#
- geepillow.fonts.create(font, size)[source]#
Create a font.
- Parameters:
font (str | PIL.ImageFont.ImageFont | pathlib.Path)
size (float)
- Return type:
PIL.ImageFont.ImageFont | PIL.ImageFont.FreeTypeFont | PIL.ImageFont.TransposedFont
- geepillow.fonts.load_data(filename)[source]#
Load binary data from filename.
- Parameters:
filename (pathlib.Path)
- geepillow.fonts.load_ttf(filename, size)[source]#
Load a Font from a file.
- Parameters:
filename (pathlib.Path) – path of the font. If absolute path it will load it directly, if relative it will load one of the available in the package.
size (float) – size of the
- Return type:
PIL.ImageFont.FreeTypeFont
- geepillow.fonts.opensans_bold(size)[source]#
OpenSans-Bold.
- Parameters:
size (int)
- Return type:
PIL.ImageFont.FreeTypeFont
- geepillow.fonts.opensans_bold_italic(size)[source]#
OpenSans-BoldItalic.
- Parameters:
size (int)
- Return type:
PIL.ImageFont.FreeTypeFont
- geepillow.fonts.opensans_italic(size)[source]#
OpenSans-Italic.
- Parameters:
size (int)
- Return type:
PIL.ImageFont.FreeTypeFont
- geepillow.fonts.opensans_light(size)[source]#
OpenSans-Light.
- Parameters:
size (int)
- Return type:
PIL.ImageFont.FreeTypeFont