�
J�gx* � �\ � d Z ddlmZ ddlmZ ddlmZmZmZ ddlm Z G d� d� � Z
d S )
a
Mixin class for managing a stack of graphics state variables.
The contents of this module are internal to fpdf2, and not part of the public API.
They may change at any time without prior warning or any deprecation period,
in non-backward-compatible ways.
� )�copy� )�
DeviceGray)�CharVPos�TextEmphasis�TextMode)�FontFacec � � � e Zd ZdZ ed� � Z ed� � Z ed� � Z� fd�Zd:d�Z d� Z
d� Zd� Ze
d � � � Zej d
� � � Ze
d� � � Zej d� � � Ze
d
� � � Zej d� � � Ze
d� � � Zej d� � � Ze
d� � � Zej d� � � Ze
d� � � Zej d� � � Ze
d� � � Zej d� � � Ze
d� � � Zej d� � � Ze
d� � � Zej d� � � Ze
d� � � Zej d� � � Ze
d� � � Zej d� � � Ze
d� � � Zej d � � � Ze
d!� � � Zej d"� � � Ze
d#� � � Zej d$� � � Ze
d%� � � Zej d&� � � Ze
d'� � � Zej d(� � � Ze
d)� � � Zej d*� � � Ze
d+� � � Z e j d,� � � Z e
d-� � � Z!e!j d.� � � Z!e
d/� � � Z"e"j d0� � � Z"e
d1� � � Z#e#j d2� � � Z#e
d3� � � Z$e$j d4� � � Z$e
d5� � � Z%e%j d6� � � Z%e
d7� � � Z&e&j d8� � � Z&d9� Z'� xZ(S );�GraphicsStateMixina� Mixin class for managing a stack of graphics state variables.
To the subclassing library and its users, the variables look like
normal instance attributes. But by the magic of properties, we can
push and pop levels as needed, and users will always see and modify
just the current version.
This class is mixed in by fpdf.FPDF(), and is not meant to be used
directly by user code.
r c
�J �� t d#i d| j �d| j �d| j �dd�dd�dd �d
d�dd�d
d�di �dt ddd�� � �dd�dt j �dt j �dd�dd�dd�dd�dd�dd�dd�d d!�d"d ��g| _ t � � j
|i |�� d S )$N�
draw_color�
fill_color�
text_color� underlineF�
font_style� �font_stretching�d �char_spacingr �font_family�font_size_pt�current_font�dash_pattern)�dash�gap�phase�
line_width� text_mode� char_vpos� sub_scalegffffff�?� sup_scale� nom_scaleg �?�denom_scale�sub_liftg333333ÿ�sup_liftg�������?�nom_liftg�������?�
denom_liftg �text_shaping� )�dict�DEFAULT_DRAW_COLOR�DEFAULT_FILL_COLOR�DEFAULT_TEXT_COLORr �FILLr �LINE�_GraphicsStateMixin__statestack�super�__init__)�self�args�kwargs� __class__s ��c/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/fpdf/graphics_state.pyr2 zGraphicsStateMixin.__init__ ss �� ��
�
�
��2�2�
��2�2�
� �2�2�
� �%�
�
�2�
� !$��
� �Q�
� �B�
� �Q�
� �R�
� "�q�a�q�9�9�9�9�
� �1�
� #�-�-�
� #�-�-�
� �#�
� �#�!
�"