Problems with FontQA

Ramiro Espinoza
Posts: 839
Hi there,
I guess if there is someone out is still using FontQA. Well, I used to use it a lot until I installed Maverick. Now, despite all my Python scripts are properly working FontQA can't check hinting anymore.
Traceback:
File "/Library/Application Support/FontLab/Studio 5/Macros/system/modules/fontQAlib.py", line 320, in _tryTest
result = self._testFont(TheFont)
File "/Library/Application Support/FontLab/Studio 5/Macros/system/modules/fontQA_Hints.py", line 127, in _testFont
myRange = xrange(myBBox.ll.x, myBBox.ur.x + 1)
TypeError: integer argument expected, got float
Have anyone encountered the same problem? Do you have a hint on how to solve it?
(Note: Eigi is not answering my messages)
TIA.
I guess if there is someone out is still using FontQA. Well, I used to use it a lot until I installed Maverick. Now, despite all my Python scripts are properly working FontQA can't check hinting anymore.
Traceback:
File "/Library/Application Support/FontLab/Studio 5/Macros/system/modules/fontQAlib.py", line 320, in _tryTest
result = self._testFont(TheFont)
File "/Library/Application Support/FontLab/Studio 5/Macros/system/modules/fontQA_Hints.py", line 127, in _testFont
myRange = xrange(myBBox.ll.x, myBBox.ur.x + 1)
TypeError: integer argument expected, got float
Have anyone encountered the same problem? Do you have a hint on how to solve it?
(Note: Eigi is not answering my messages)
TIA.
0
Comments
-
I did not look at the code but from the error message it looks like you need to change this line (127 in fontQA_Hints.py):
myRange = xrange(myBBox.ll.x, myBBox.ur.x + 1)
To this:myRange = xrange(int(myBBox.ll.x), int(myBBox.ur.x + 1))
0 -
Great! I had to correct also the line 102 to:
myRange = xrange(int(myBBox.ll.y), int(myBBox.ur.y + 1))
And now it works. Lots of thanks!0 -
Thanks, I included this in my version
https://github.com/davelab6/fontqa/commit/b7ad5fbb89fb27db4b97b3e17e81693a417455550
Categories
- All Categories
- 46 Introductions
- 3.9K Typeface Design
- 481 Type Design Critiques
- 558 Type Design Software
- 1.1K Type Design Technique & Theory
- 648 Type Business
- 841 Font Technology
- 29 Punchcutting
- 515 Typography
- 119 Type Education
- 320 Type History
- 76 Type Resources
- 110 Lettering and Calligraphy
- 31 Lettering Critiques
- 79 Lettering Technique & Theory
- 540 Announcements
- 88 Events
- 112 Job Postings
- 168 Type Releases
- 171 Miscellaneous News
- 275 About TypeDrawers
- 53 TypeDrawers Announcements
- 120 Suggestions and Bug Reports