diff options
author | robot-piglet <[email protected]> | 2025-06-18 23:55:52 +0300 |
---|---|---|
committer | robot-piglet <[email protected]> | 2025-06-19 00:06:55 +0300 |
commit | 61ea5fc0cd73730d5ae6a9186d8c15057f183095 (patch) | |
tree | 31ddc3fcbabb680d9ce733ea36f581a6d062aff9 /contrib/python/fonttools/fontTools/cffLib/specializer.py | |
parent | 2fcfb855cd7780ab07751cc16c80a0a58168668a (diff) |
Intermediate changes
commit_hash:283b0c2ecb46f54501d7d1b92643c0090cebaa95
Diffstat (limited to 'contrib/python/fonttools/fontTools/cffLib/specializer.py')
-rw-r--r-- | contrib/python/fonttools/fontTools/cffLib/specializer.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/python/fonttools/fontTools/cffLib/specializer.py b/contrib/python/fonttools/fontTools/cffLib/specializer.py index 5fddcb67dd3..974060c40ec 100644 --- a/contrib/python/fonttools/fontTools/cffLib/specializer.py +++ b/contrib/python/fonttools/fontTools/cffLib/specializer.py @@ -580,7 +580,10 @@ def specializeCommands( for i in range(len(commands) - 1, 0, -1): if "rmoveto" == commands[i][0] == commands[i - 1][0]: v1, v2 = commands[i - 1][1], commands[i][1] - commands[i - 1] = ("rmoveto", [v1[0] + v2[0], v1[1] + v2[1]]) + commands[i - 1] = ( + "rmoveto", + [_addArgs(v1[0], v2[0]), _addArgs(v1[1], v2[1])], + ) del commands[i] # 2. Specialize rmoveto/rlineto/rrcurveto operators into horizontal/vertical variants. |