| Server IP : 35.80.110.71 / Your IP : 216.73.216.52 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/fontTools/feaLib/__pycache__/ |
Upload File : |
�
jke� � �2 � d dl mZmZmZ d� Z G d� d� Zy)� )�VariationModel�normalizeValue�piecewiseLinearMapc �F � t t | j � � � S �N)�tuple�sorted�items)�locs �A/usr/lib/python3/dist-packages/fontTools/feaLib/variableScalar.py�Locationr
s � ���� � ��$�%�%� c � � e Zd ZdZi fd�Zd� Zed� � Zed� � Zd� Z d� Z
d� Zd � Zed
� � Z
dd�Zdd
�Zdd�Zdd�Zy)�VariableScalarzFA scalar with different values at different points in the designspace.c �t � i | _ i | _ |j � D ] \ }}| j ||� � y r )�values�axesr
� add_value)�self�location_value�location�values r �__init__zVariableScalar.__init__ s: � ������ �-�3�3�5� ,�O�H�e��N�N�8�U�+� ,r c
� � g }| j j � D ]D \ }}dj |D ��cg c] \ }}d||fz �� c}}� }|j d||fz � �F ddj |� z dz S c c}}w )N�,z%s=%iz%s:%i�(� �))r r
�join�append)r r
r r �axr s r �__repr__zVariableScalar.__repr__ s� � ���#�{�{�0�0�2� 1�O�H�e��(�(�x�H�G�B��G�r�3�i�/�H�I�C��L�L��C��<�/�0� 1� �c�h�h�u�o�&��,�,�� Is �A;c �x �� t | j j � � �t �fd��dd D � � S )Nc 3 �. �K � | ] }|�d k7 �� � y�w)r N� )�.0�vr s �r � <genexpr>z+VariableScalar.does_vary.<locals>.<genexpr> s �� �� �6�a�1��q� �>�6�s �� )�listr �any)r r s @r � does_varyzVariableScalar.does_vary s1 �� ��d�k�k�(�(�*�+���6�6�!�"�:�6�6�6r c � � | j st d� �| j D �ci c] }|j |�� c}S c c}w )Nz=.axes must be defined on variable scalar before interpolating)r �
ValueError�axisTag)r r! s r � axes_dictzVariableScalar.axes_dict s; � ��y�y��O��
� *.���3�2��
�
�B��3�3��3s �=c �* � | j |� }i }|j � D ]c }|| j vrt d|�d|��� �| j | }t || |j
|j |j f� ||<