o
    h                     @   s&   d dl T ddlZedZdd ZdS )   )*    NzfontTools.varLib.interpolatablec                 C   s  t | j}d }d}d}|dk}|s#| j}|j}t||\}	}
}|
|k}|s7| j}|j}t||\}}}||k}|sz|sNdd |D }t||\}}}||k}|scdd |D }t||\}}}||k}|sz|
| || k rt|	}|
}|}n|}|}|}|r|| nd}td| ||fS )Nr   r   c                 S   $   g | ]}|d   f|dd  qS r   r   N .0mr   r   q/var/www/html/optinet_system/venv/lib/python3.10/site-packages/fontTools/varLib/interpolatableTestContourOrder.py
<listcomp>/      $ z&test_contour_order.<locals>.<listcomp>c                 S   r   r   r   r   r   r   r
   r   7   r   z test-contour-order: tolerance %g)lencontrolVectorsmatching_for_vectorsgreenVectorslogdebug)glyph0glyph1nmatchingmatching_costidentity_costdone	m0Control	m1Controlmatching_controlmatching_cost_controlidentity_cost_controlm0Greenm1Greenmatching_greenmatching_cost_greenidentity_cost_greenm1ControlReversedmatching_control_reversedmatching_cost_control_reversedidentity_cost_control_reversedm1GreenReversedmatching_cost_green_reversedidentity_cost_green_reversedthis_tolerancer   r   r
   test_contour_order   sp   
	r,   )interpolatableHelperslogging	getLoggerr   r,   r   r   r   r
   <module>   s    
