summaryrefslogtreecommitdiff
path: root/tests/make_png/README
blob: 8c46ba8bfef90fd61dd7208aeae9cd72ca1bdcf3 (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
71
72
73
74
75
76
77
78
 
TODO:   Generate HTML page for detailed comparison

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

INSTRUCTIONS 

***
FOR NOW JUST RUN ./runme.sh <path/to/older/freetype/library> test.tff <pt_size> <render_mode>
***

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 "test" version of the two)
    Go to 'include/freetype/ftoption.h' and uncomment this line 

        #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
  
  2. Install the two versions 
  -------------------------------------     
   Go to the "test" version's folder and change the default 
   installation directory to the "test" folder created.

	./configure --prefix=<path>

    Compile and install the library

	make 
 	make install

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

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

 	make

    (set resolution in DPI by passing argument
    example: make DPI=100, if not specified,default is 72)

 3. Run the executable
  ------------------------------------- 

	./sprite <a> <b> <font_file> <pt_size> <render_mode>

    <a> is the libfreetype.so from the base vesion. 
    <b> is the libfreetype.so from the test vesion.

    ( <a> and <b> are in <base/test version's installation folder>/lib/ )
    ( The path to these should be absolute. )

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

FEATURES

    Generates sprite sheets in the ./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