summaryrefslogtreecommitdiff
path: root/tests/make_png/README
blob: a7b3e653f35762998d850b200890afc90c25865a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
 
TODO:   Generate HTML page for detailed comparison

---------------------------------------------------------------------

INSTRUCTIONS

NOTE: One version of FreeType is referred as "base" version and the
      other as the "test" version.

  1. Get the two versions ready
  -------------------------------------
    Make two folders named "test" and "base" preferably in the home
    directory.

    Next, download an older version of FreeType (For example : 2.6.5)
    ( This being the "base" version of the two)
    Go to 'include/freetype/ftoption.h' and uncomment this line

        #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
  
  2. Compile the two versions 
  -------------------------------------     
   Go to the "base" version's folder and compile the library

	    ./configure --enable-shared --disable-static
	    make 

    Repeat step 2. for the "test" version as well.

 3. Compile the code
  -------------------------------------     
    Return to this folder and make the binary

 	make tests [options]

    Set resolution in DPI by passing argument to variable DPI.
    Example: make tests DPI=100, if not specified,default is 72.

    Set the Rendering mode by passing FT_TEST_RENDER_MODE.
    <render_mode> can take values 1. MONO
    							  2. AA
    							  3. RGB
    							  4. BGR
    							  5. VRGB
    							  6. VBGR
    ( Example: make tests FT_TEST_RENDER_MODE=RGB )

 4. Run the executable
  ------------------------------------- 

	sh runme.sh <a> <font_file> <pt_size> 

    <a> is directory of the 'base' FreeType version. 
    ( The path to these should be absolute. )

	Open ./html/index.html for "list-view"
---------------------------------------------------------------------

FEATURES

    Generates sprite sheets in the ./html/images folder.

    Generates "list-view" web-page i.e index.html

    By clicking on the Headers of the respective columns,they can be
    arranged (in increasing/decreasing order) based on
      ->  Glyph-Index
      ->  Name
      ->  Difference Metric