module documentation

pygments.formatters.img ~~~~~~~~~~~~~~~~~~~~~~~ Formatter for Pixmap output. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details.

Class BmpImageFormatter Create a bitmap image from source code. This uses the Python Imaging Library to generate a pixmap from the source code.
Class FontManager Manages a set of fonts: normal, italic, bold, etc...
Class GifImageFormatter Create a GIF image from source code. This uses the Python Imaging Library to generate a pixmap from the source code.
Class ImageFormatter Create a PNG image from source code. This uses the Python Imaging Library to generate a pixmap from the source code.
Class JpgImageFormatter Create a JPEG image from source code. This uses the Python Imaging Library to generate a pixmap from the source code.
Exception FontNotFound When there are no usable fonts specified
Exception PilNotAvailable When Python imaging library is not available
Constant DEFAULT_FONT_NAME_MAC Undocumented
Constant DEFAULT_FONT_NAME_NIX Undocumented
Constant DEFAULT_FONT_NAME_WIN Undocumented
Constant STYLES Undocumented
Variable pil_available Undocumented
DEFAULT_FONT_NAME_MAC: str = (source)

Undocumented

Value
'Menlo'
DEFAULT_FONT_NAME_NIX: str = (source)

Undocumented

Value
'DejaVu Sans Mono'
DEFAULT_FONT_NAME_WIN: str = (source)

Undocumented

Value
'Courier New'

Undocumented

Value
{'NORMAL': ['', 'Roman', 'Book', 'Normal', 'Regular', 'Medium'],
 'ITALIC': ['Oblique', 'Italic'],
 'BOLD': ['Bold'],
 'BOLDITALIC': ['Bold Oblique', 'Bold Italic']}
pil_available: bool = (source)

Undocumented