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   úƒ/var/www/html/construction_image-detection-poc/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    
