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
- 44 Introductions
- 3.8K Typeface Design
- 825 Font Technology
- 1.1K Technique and Theory
- 637 Type Business
- 453 Type Design Critiques
- 550 Type Design Software
- 30 Punchcutting
- 139 Lettering and Calligraphy
- 86 Technique and Theory
- 53 Lettering Critiques
- 503 Typography
- 311 History of Typography
- 118 Education
- 74 Resources
- 526 Announcements
- 84 Events
- 110 Job Postings
- 162 Type Releases
- 169 Miscellaneous News
- 272 About TypeDrawers
- 54 TypeDrawers Announcements
- 117 Suggestions and Bug Reports