question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fontTools/misc/sstruct.py:75: DeprecationWarning: integer argument expected, got float

See original GitHub issue
from fontTools.ttLib import TTFont

f = TTFont(u"anybinary.otf")

hhea = f["hhea"]
print hhea.minLeftSideBearing
print hhea.minRightSideBearing
print hhea.xMaxExtent
print hhea.advanceWidthMax

hhea.recalc(f)

print hhea.minLeftSideBearing
print hhea.minRightSideBearing # becomes a float, not nice
print hhea.xMaxExtent  # becomes a float, not nice
print hhea.advanceWidthMax  

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
anthrotypecommented, Oct 5, 2017

Thanks @typemytype

0reactions
anthrotypecommented, Nov 27, 2017

closing as we can’t repoduce the issue. please reopen in case you manage to replicate it

Read more comments on GitHub >

github_iconTop Results From Across the Web

DeprecationWarning: integer argument expected, got float #79
I'm working in a branch to fix #78, and one of the things I did was convert it to use zope.testrunner instead of...
Read more >
Error: Integers argument expected, got float - Stack Overflow
If it's old code, it would have worked on Python 2. Integer division in Python 2 produces another integer. In Python 3 it...
Read more >
Error: range () integer and argument expected, got float
A look at Python's range() function. It's usage, along with an explanation about xrange(). Their differences, and how to use range() with floats...
Read more >
Help with adding 2.5 to 2d list - Python - Codecademy Forums
pizza_and_prices.insert(2.5, “peppers”) TypeError: integer argument expected, got float How am I supposed to write this so it lets me use ...
Read more >
TypeError: integer argument expected, got float - Python Forum
So as you can see in the bottom of this page, i have an error in my code, thanks for the support, have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found