o
    i                     @   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   ~/var/www/html/eduruby.in/lip-sync/lip-sync-env/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)lenZcontrolVectorsZmatching_for_vectorsZgreenVectorslogdebug)Zglyph0Zglyph1nZmatchingZmatching_costZidentity_costdoneZ	m0ControlZ	m1ControlZmatching_controlZmatching_cost_controlZidentity_cost_controlZm0GreenZm1GreenZmatching_greenZmatching_cost_greenZidentity_cost_greenZm1ControlReversedZmatching_control_reversedZmatching_cost_control_reversedZidentity_cost_control_reversedZm1GreenReversedZmatching_cost_green_reversedZidentity_cost_green_reversedZthis_tolerancer   r   r
   test_contour_order   sp   
	r   )ZinterpolatableHelperslogging	getLoggerr   r   r   r   r   r
   <module>   s    
