fontQAlib
This is the main module of the fontQA framework.
This is the main module of the fontQA framework.class: metaTestItem
Meta class for all testitems
Constructor
- metaTestItem(TheName, TheTag)
- Parameter
- TheName: (required) the name presented to the user
- (Type: string)
- TheTag: (required) internal name used as tag in XML reports
- (Type: string)
Public methods
- className( )
- Return
- Returns name of its class: self.__class__.__name__
- (Type: string)
- append(TheItem)
- Parameter
- TheItem: (required) the item to append to the collection
- (Type: instance of metaTestItem or any of its subclasses)
- appends TheItem to its child collection
class: TestSuite(metaTestItem)
Collection of all TestBlocks
Constructor
- TestSuite([TheOutPath], [TheFontList])
- Parameter
- TheOutPath: (optional, default: '')
- TheFontList: (optional, default: [])
Public methods
- addBlock(TheName, TheTag)
- Parameter
- TheName: (required)
- TheTag: (required)
- showDialog( )
- doTest( )
class: TestBlock(metaTestItem)
Collection of TestsItems
Constructor
- TestBlock(TheName, TheTag)
- Parameter
- TheName: (required)
- TheTag: (required)
Public methods
- addItem(TheItem)
- Parameter
- TheItem: (required)
class: TestItem(metaTestItem)
Meta class for a test
Constructor
- TestItem(TheName)
- Parameter
- TheName: (required)
Public methods
- ErrorNum( )
- Return
- highest error number from the test of all fonts
- (Type: integer)
- ErrorType( )
- Return
- type of the highest error from the test of all fonts
- (Type: string (N, I, P, W, E or A))
- ErrorMessage( )
- Return
- Message of the highest error from the test of all fonts
- (Type: string)
class: simpleTest(TestItem)
A base class for a simple fonttest
Constructor
class: MatchValue(TestItem)
A required value is calculated for every font
Constructor
- MatchValue(TheValueName)
- Parameter
- TheValueName: (required)
class: allMatchOneValue(MatchValue)
Constructor
- allMatchOneValue(TheValueName)
- Parameter
- TheValueName: (required)
class: allValuesEqual(TestItem)
Constructor
- allValuesEqual(TheValueName)
- Parameter
- TheValueName: (required)
Public methods
- ErrorNum( )
class: RangeCheck(TestItem)
The valid valuerange is calculated for every font
Constructor
- RangeCheck(TheValueName)
- Parameter
- TheValueName: (required)
class: FamilyStatistic(TestItem)
Constructor
- FamilyStatistic(TheValueName)
- Parameter
- TheValueName: (required)
class: FontStatistic(TestItem)
Constructor
- FontStatistic(TheValueName)
- Parameter
- TheValueName: (required)
Public methods
- ErrorNum( )
class: GlyphTest(TestItem)
Constructor
- GlyphTest(TheValueName)
- Parameter
- TheValueName: (required)