�
��gDD � �� � d Z ddlmZmZ ddlmZ ddlmZ ddlmZm Z ddl
mZ ddlm
Z
ddlmZmZ dd lmZ dd
lmZmZ ddlmZmZ ddlmZmZmZ G d
� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z! G d� de� � Z" G d� de"� � Z# G d� de"� � Z$d� Z% G d� de"� � Z&dd�d �Z' G d!� d"e� � Z( G d#� d$� � Z)d%S )&zGlyphSets returned by a TTFont.� )�ABC�abstractmethod)�Mapping)�contextmanager)�copy�deepcopy)�SimpleNamespace)�Vector)�otRound�fixedToFloat)�deprecateFunction)� Transform�DecomposedTransform)�TransformPen�TransformPointPen)�DecomposingRecordingPen�lerpRecordings�replayRecordingc � � e Zd ZdZdd�d�Zedefd�� � Zed� � � Zd� Z d � Z
d
� Z ede
�� � d
� � � ZdS )�_TTGlyphSetzlGeneric dict-like GlyphSet class that pulls metrics from hmtx and
glyph shape from TrueType or CFF.
T��recalcBoundsc �6 � || _ || _ d| j v rd� | j d j D � � ni | _ |�|ni | _ i | _ |�|ni | _ d| _ g | _ g | _ || _
|d j | _ t |� d� � dd � � | _ d | _ |r_ddlm} t |� d� � d d � � | _ | j �+ || j j |d j |� � | _ d S d S d S )
N�fvarc � � i | ]
}|j d ��S )r ��axisTag)�.0�axiss �j/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/fontTools/ttLib/ttGlyphSet.py�
<dictcomp>z(_TTGlyphSet.__init__.<locals>.<dictcomp> s � �@�@�@��T�\�1�@�@�@� r �hmtx�vmtx�metrics��VarStoreInstancer�HVAR�table)r �font�axes�defaultLocationNormalized�location�rawLocation�originalLocation�depth�
locationStack�rawLocationStack�
glyphsMappingr% �hMetrics�getattr�get�vMetrics� hvarTable�fontTools.varLib.varStorer'