File: //opt/alt/python37/lib/python3.7/site-packages/pygments/formatters/__pycache__/img.cpython-37.pyc
B
��fLZ � @ sl d Z ddlZddlZddlmZ ddlmZmZmZm Z ddl
Z
yddlmZm
Z
mZ dZW n ek
rt dZY nX yddlZW n: ek
r� yddlZW n ek
r� dZY nX Y nX dd d
dgZdd
ddddgddgdgddgd�ZdZdZdZG dd� de�ZG dd� de�ZG dd � d �ZG d!d� de�ZG d"d � d e�ZG d#d
� d
e�ZG d$d� de�ZdS )%z�
pygments.formatters.img
~~~~~~~~~~~~~~~~~~~~~~~
Formatter for Pixmap output.
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N)� Formatter)�get_bool_opt�get_int_opt�get_list_opt�get_choice_opt)�Image� ImageDraw� ImageFontTF�ImageFormatter�GifImageFormatter�JpgImageFormatter�BmpImageFormatter� ZRomanZBookZNormalZRegularZMediumZObliqueZItalicZBoldzBold ObliquezBold Italic)�NORMAL�ITALIC�BOLD�
BOLDITALICzDejaVu Sans MonozCourier NewZMenloc @ s e Zd ZdZdS )�PilNotAvailablez,When Python imaging library is not availableN)�__name__�
__module__�__qualname__�__doc__� r r �H/opt/alt/python37/lib/python3.7/site-packages/pygments/formatters/img.pyr 4 s r c @ s e Zd ZdZdS )�FontNotFoundz(When there are no usable fonts specifiedN)r r r r r r r r r 8 s r c @ sl e Zd ZdZddd�Zdd� Zdd� Zd d
� Zdd� Zddd�Z dd� Z
dd� Zdd� Zdd� Z
dd� ZdS )�FontManagerz>
Manages a set of fonts: normal, italic, bold, etc...
� c C s� || _ || _i | _d | _d| _t|d�s4tj�|�rdt �
|| j�}d| _xtD ]}|| j|<