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
- 43 Introductions
- 3.7K Typeface Design
- 803 Font Technology
- 1K Technique and Theory
- 618 Type Business
- 444 Type Design Critiques
- 542 Type Design Software
- 30 Punchcutting
- 136 Lettering and Calligraphy
- 83 Technique and Theory
- 53 Lettering Critiques
- 483 Typography
- 301 History of Typography
- 114 Education
- 68 Resources
- 499 Announcements
- 80 Events
- 105 Job Postings
- 148 Type Releases
- 165 Miscellaneous News
- 270 About TypeDrawers
- 53 TypeDrawers Announcements
- 116 Suggestions and Bug Reports