Skip to content

Commit

Permalink
Merge pull request #6 from koffeinfrei/python3
Browse files Browse the repository at this point in the history
Make Python3 compatible
  • Loading branch information
linusromer committed Mar 13, 2023
2 parents cc17a7b + 97b7746 commit 95bc384
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mf2outline.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def bezierjoin(first,second):
def bezierarc_new(c,s,e,r):
sangle = vecangle((1,0),s) + 360 # this is very important!
eangle = sangle + vecangle(s,e) # this is very important!
print sangle,eangle,vecangle(s,e)
print(sangle,eangle,vecangle(s,e))
# if < 90 degree and no extremum inbetween:
if abs(eangle-sangle) <= 90.001 and (sangle // 90 == eangle // 90 \
or sangle % 90 < 1e-6 or eangle % 90 < 1e-6):
Expand Down Expand Up @@ -1777,7 +1777,7 @@ def write_ot1_enc(tempdir):
currentencoding = font.encoding
font.encoding = "unicode" #add space for non-TeX use
font.createChar(32)
font[32].width = font_normal_space
font[32].width = int(font_normal_space)
font.encoding = currentencoding

if not args.raw:
Expand Down

0 comments on commit 95bc384

Please sign in to comment.