From: Adam T. (List) <lis...@tw...> - 2011-06-24 03:06:52
|
When generating UFO with scaled components, FontForge writes floats using a locale-dependent decimal separator, which in my case ("pl_PL") is ",". Therefore, the following ends up in the UFO: <component base="tonos" xScale="0,86" yScale="0,962085" xOffset="119" yOffset="25"/> However, robofab/glifLib.py: _number(s) attempts to perform the xScale and yScale attributes to int or float, and fails. I've fixed this brute-force in glifLib.py by adding s = s.replace(",","."), but this is clearly not an elegant solution. This should be fixed either in FontForge, or in RoboFab, or in both. If FontForge is wrong, the UFO spec should clearly indicate that the decimal separator must be a period. Best, Adam |