fontTools/misc/sstruct.py:75: DeprecationWarning: integer argument expected, got float
See original GitHub issuefrom 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:
- Created 6 years ago
- Comments:12 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @typemytype
closing as we can’t repoduce the issue. please reopen in case you manage to replicate it