Merge pull request #80 from moyogo/approxerror

Change the default approximation error from 0.0025 to 0.001
This commit is contained in:
Cosimo Lupo 2017-05-24 10:43:06 +01:00 committed by GitHub
commit 6fa218266c
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ from cu2qu.pens import ReverseContourPen
__all__ = ['fonts_to_quadratic', 'font_to_quadratic']
DEFAULT_MAX_ERR = 0.0025
DEFAULT_MAX_ERR = 0.001
logger = logging.getLogger(__name__)

View File

@ -23,7 +23,7 @@ needed, converting one font at a time may yield more optimized results:
for font in [thin_font, bold_font]:
fonts_to_quadratic([font])
Some fonts may need a different error threshold than the default (0.0025
Some fonts may need a different error threshold than the default (0.001
em). This can also be provided by the caller:
.. code:: python