FontTests

From IndLinux

Jump to: navigation, search

This category of tests will test fonts thoroughly in the following aspects

  • Script Coverage
  • Glyph coverage
  • Rendering levels
  • Opentype functionality
  • ...


Coverage Tests

  • Unicode script range.
  • Check characters covered in CMAP and defined in Unicode
  • Check one-2-one mappings for CMAP & glyph IDs (ie a glyph is available for the character)
  • Check coverage level with reference to the defined coverage map.
  • Glyph coverage - wrt glyph reference maps defined.

Opentype tests

  • OTF tables defined
  • script tags
  • Lang tags
  • Feature tags
  • Check for combinations under specific rules.


Modules

Modules for font tests. to be implemented as cmdline tools preferably.

Libraries to use - xlib, Freetype, fontconfig, m17n, libotf, pango, libqt, libgtk, fonttools (TTX)

Existing code: gfontview, xfontsel, fontconfig, pango.

  • Font browser
    • modelled on gfontview
    • shows list of available fonts (through fontconfig/X/Xfs - selectable)
    • show statistics
    • glyph browser (like gfontview)


  • Font statistics
    • Load a font and compute statistics
      • Names, style, weight, encodings.
      • Total chars covered
      • Total glyph count
      • Script enumeration
      • Tables supported
      • OTF tables
      • OTF script features
      • Total lookups per feature
  • Render tests
    • Render pages of all glyphs in font
    • Render given text combinations (input from a text file) - output in a graphic form.
    • Render different combination forms (CV, CVM, CC, CCV, CCVM..etc) - input from a text file.
  • OpenType tests
Personal tools
communication
Development