Debian Codegraph @

pycontrib/FontCompare/DOC.txt

raw
1 FONTCOMPARE
2 Synopsis: A tool which tries to assess the aesthetic quality of Indic
3 fonts by making comparisons with standard set of features desired in a
4 font, and assigning scores in various categories. This way, the font
5 developers know where they are headed, and it would assist in making
6 Indic fonts better in the longer run.
7
8 Current State: Currently the application supports very basic tests, and
9 that too for Devanagari script only. The basic tests makes use of
10 comparison with a standard looking Devanagri font, so that even a novice
11 font developer would know that he/she is headed the right way. However this
12 method of assessment greatly reduces the scope of providing tests for
13 artistic fonts. To overcome this drawback what is needed is that we have
14 a set of very good fonts with artistic appearance with no restrictive
15 licensing issues. Still the application can be used for developing any
16 kind of font, as long as we have a sample font to give the app the set of
17 standards to be compared against.
18
19 How to use:
20 1. For basic testing
21 For testing a font on very basic grounds, all that is needed is you load
22 the test font by pressing the "Load TestFont" button. Then we begin the
23 tests by pressing the "Begin Test" button.
24
25 2. For advanced testing
26 If you wish to compare with a font similar to which you wish to develop
27 a font, then currently you have to create a mockfont out of the actual font
28 to keep only those characteristics which affect the aesthetic quality of
29 fonts, then reinstall the app and use it. (A real cumbersome process.)
30
31 To achieve so you can use the mockify.py script.
32 Support would be added to enable the mockifying process to be done smoothly
33 using the UI.
34
35 What do the scores mean:
36 All scores are on a scales of 10.
37 Category->Similarity to Standard font or Parameters
38
39 a) Normal
40 This indicates the visual similarity to the actual font without any effects
41 applied. This is basically the average of the scores for all glyphs.
42
43 b) Bold
44 Same as Normal, except for the fact that the Bold effect is applied before
45 evaluation of scores.
46
47 c) Italic
48 Same as Normal, except for the fact that the Italic effect is applied before
49 evaluation of scores.
50
51 d) Basic Properties
52 This is a collection of many properties, one of which is whether the glyph
53 is worth outputting, which inturn depends upon whether the glyph is not
54 entirely empty.
55
56 Category->Glyph Consistency
57 Indicates the uniformity of structure among the various set of glyphs.
58
59 Category->Readability and print proof
60 Indicates the similarity to actual rendered text on print and screen in
61 varying sizes and resolutions.
62
63 MOCKIFYING THE FONTS:
64 The basis of the application is mockfonts. The application has a script
65 called mockify.py which enables you to make your own mockfonts and use it
66 as a standard.
67
68 This works on the principle of one font at a time, since the mockfont object
69 occupies a bit more memory (currently). So once you make a mockfont out of
70 a font that is the only standard remains, and basically you need to run the
71 mockify.py script, and then reinstall the app for you to be able to use it.
72
73 Steps to mockiy:
74 1. line 42 mock_font["font"] = MockFont("../unittests/lohit.ttf",100,(0x900,0x97f))
75 replace lohit.ttf with your font after placing it in the unittests folder.
76 2. Run the command "python mockify.py"
77 3. Reinstall the App.
78
79 Will make this thing more automated.