�
��g � �� � d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z d dl
mZmZ G d� dej
� � Z e ej d � � � � d
� � � Zdd�Z e ej d � � � � d
� � � Z e ej d � � � � d� � � Z e ej d � � � � d� � � Z e de�� � e ej d � � � � d� � � � � Z e de�� � e ej d � � � � d� � � � � Z e de�� � e ej d � � � � d� � � � � ZdS )� )�
psCharStrings)�ttLib)�NullPen)�otRound)�deprecateFunction)�_add_method�
_uniq_sortc � � e Zd Zd� Zd� ZdS )�_ClosureGlyphsT2Decompilerc �V � t j � | ||� � || _ d S �N)r �SimpleT2Decompiler�__init__�
components)�selfr �
localSubrs�globalSubrss �d/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/fontTools/subset/cff.pyr z#_ClosureGlyphsT2Decompiler.__init__
s( � ��(�1�1�$�
�K�P�P�P�$����� c �
� | � � � }t |� � dk r[ddlm} |dd � \ }}}}|| }|| } | j � |� � | j � | � � d S d S )N� r )�StandardEncoding�����)�popall�len�$fontTools.encodings.StandardEncodingr r �add)
r �index�argsr �adx�ady�bchar�achar� baseGlyph�accentGlyphs
r �
op_endcharz%_ClosureGlyphsT2Decompiler.op_endchar s� � ��{�{�}�}���t�9�9��>�>�M�M�M�M�M�M� &*�"�#�#�Y�"�C��e�U�(��/�I�*�5�1�K��O��� �*�*�*��O����,�,�,�,�,� �>r N)�__name__�
__module__�__qualname__r r&