Commit 1ea9378ad3e250473464fde4ab336607a958eab1

Werner Lemberg 2000-10-28T16:59:44

Revised.

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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
diff --git a/docs/ft2faq.html b/docs/ft2faq.html
index 6b9cc9b..1147584 100644
--- a/docs/ft2faq.html
+++ b/docs/ft2faq.html
@@ -1,13 +1,12 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en"
+          "http://www.w3.org/TR/REC-html40/loose.dtd">
 <html>
 <head>
-<title>FreeType 2 FAQ</title>
-<basefont face="Georgia, Arial, Helvetica, Geneva">
-<style content="text/css">
-  P { text-align=justify }
-  H1 { text-align=center }
-  H2 { text-align=center }
-  LI { text-align=justify }
-</style>
+  <meta http-equiv="Content-Type"
+        content="text/html; charset=iso-8859-1">
+  <meta name="Author"
+        content="David Turner">
+  <title>FreeType 2 FAQ</title>
 </head>
 
 <body text="#000000"
@@ -19,484 +18,580 @@
 
 <font size=1>http://www.freetype.org</font><p>
 
-<center>
+<h1 align=center>
   <a href="freetype.html">
-  <img src="image/freetype.jpg" width=550 height=105 alt="The FreeType Project" border=0></a>
-  <h1>The FreeType 2 FAQ</h1>
-</center>
-
-<center><table width=750 cellspacing=10 cellpadding=30><tr><td>
-<hr><p>
-
-DOCUMENT INDEX:<br>
-<ul>
-  <li><p><a href="#general">General</a>
-    <ul>
-      <li><a href="#general-dead">I thought the FreeType project was dead. It this true?</a></li>
-      <li><a href="#general-long">Why did it take so long to release FreeType 2?</a></li>
-      <li><a href="#general-unix">Is FreeType 2 a Unix-only project?</a></li>
-      <li><a href="#general-x11">When will X11 support anti-aliased glyphs?</a></li>
-      <li><a href="#general-ft1">Is FreeType 2 backwards compatible with 1.x?</a></li>
-      <li><a href="#general-edit">Can I use FreeType 2 to edit fonts or create new ones?</a></li>
-    </ul></p>
-  </li>
-  <li><p><a href="#builds">Compilation & Configuration</a>
-    <ul>
-      <li><a href="#builds-compile">How do I compile the FreeType 2 library?</a></li>
-      <li><a href="#builds-config">How do I configure my library build?</a></li>
-      <li><a href="#builds-modules">How do I select the modules I need?</a></li>
-      <li><a href="#builds-flat">How do I compile all FreeType 2 files in a single directory?</a></li>
-    </ul>
-  </p></li>
-  <li><p><a href="#library">Using the FreeType 2 library</a></p></li>
-  <li><p><a href="#autohint">The FreeType 2 Autohinter</a>
-    <ul>
-      <li><a href="#autohint-license">Under which license is the auto-hinter released ?</a></li>
-      <li><a href="#autohint-work">How does auto-hinting work in FreeType 2 ?</a></li>
-      <li><a href="#autohint-cjk">Why doesn't the auto-hinter work well with CJK fonts ?</a></li>
-    </ul>
-  </p></li>
-  <li><p><a href="#other">Other questions</a>
-    <ul>
-      <li><a href="#other-antialias">What is the anti-aliasing algorithm used in the FreeType 2 renderer?</a></li>
-      <li><a href="#other-opentype">When will FreeType 2 support OpenType ?</a></li>
-    </ul></p>
-  </li>
-</ul><p>
-
-
-<hr><p>
-
-<table width="100%" cellspacing=5><tr bgcolor="#CCCCEE"><td>
-<h2 align=center><a name="general">General questions & answers</h2>
-</td></tr><tr><td>
-
-<a name="general-dead">
-<h3>I.1. I though the FreeType project was dead. Is this true?</h3>
-<ul>
-  <p>Well, not exactly :-) It's true that the TrueType patents issues
-     have been less than a graceful event to handle but it didn't not
-     really killed the project per se, as Apple hasn't made an official
-     statement yet regarding the use of the patented "technology" in
-     open source projects (or other products).</p>
-
-  <p>We have thus continued updating FreeType 1.x, and started developping
-     FreeType 2 with the idea of providing this time a completely patent
-     free font engine. However, we largely preferred not to broadly
-     communicate about it until we've got a satisfying implementation
-     to show.</p>
-</ul>
-
-
-<a name="general-long">
-<h3>I.2. Why did it take so long to release FreeType 2?</h3>
-<ul>
-  <p>Several factors come to mind. The first one is that FreeType 2 is
-     a much more complex and dense project that was mostly developed
-     on non-working hours. And surely some important changes in the
-     life (like marriage, new jobs and kids) of some the FreeType
-     developers cannot be ignored :-)</p>
-
-  <p>A second one is that a first version of the library was designed
-     one year ago (and already worked with a multitude of font drivers),
-     though with a design that was judged by its authors as well as
-     beta testers as not enough flexible or consistent. In short, it worked
-     well but we were not exactly proud of it (call us perfectionists).
-     It has then be significantly reworked to become what we're now
-     distributing as FreeType 2</p>
-
-  <p>Finally, it would have been hard to distribute such a library without
-     an alternative technology to replace the patented bytecode interpreter.
-     This involved significant research work that could only be performed
-     correctly full-time, and we had to found a company to fund such a
-     development and still make it available under a BSD-like license.
-     Huge thanks to <a href="http://www.catharon.com">Catharon Productions, Inc.</a>
-     for their commitment to this project.</p>
-
-  <p>And of course, we added support for more font files, and we'll
-     continue to as long as the specs are available and that we find an
-     interest in it. For example,  FreeType 2 is to date the only
-     software library available on the market that supports the new
-     Adobe "CEF" font format.</p>
-</ul>
-
-<a name="general-unix">
-<h3>I.3. Is FreeType 2 a Unix-only project?</h3>
-<ul>
-  <p>Absolutely not, even though many people still seem to think so :-)
-     FreeType 2, just like version 1.x, can be compiled on any platform with
-     an ANSI compiler. Some beta versions of the library are even heavily
-     used in brand new OSes (see the <a href="http://www.atheos.cx">AtheOS
-     </a> screenshots for examples).</p>
-
-  <p>The library is itself mainly developped on several platforms
-     (Windows & Linux, though a great deal has also been achieved on OS/2)
-     and the code is highly generic and modular to adapt even the most
-     strict environments like low-memory embedded systems.</p>
-
-</ul>
-
-<a name="general-x11">
-<h3>I.4. When will X11/XFree support anti-aliased text?</h3>
-<ul>
-  <p>This question isn't exactly related to FreeType as we have no direct
-     connection to the XFree people, but we've been asked so frequently
-     about it that it deserves a prominent place in this FAQ :-)</p>
-
-  <p>FreeType has been capable of anti-aliasing since version 1.0. The
-     reason why XFree doesn't support it is directly related to the
-     limitations of the design and specification of X11. More specifically:</p>
-
-  <ul>
-    <li><p>
-       X11 assumes that all glyph images are monochrome bitmaps,
-       hence the X font library and server are unable to send anything
-       else to the X server.
-    </p></li>
-
-    <li><p>
-       Even if the X font library/server was able to generate anti-aliased
-       bitmaps (and this has been already done through extensions), the X
-       rendering model doesn't allow translucent composition of "gray" pixmaps
-       onto an arbitrary drawable.
-    </p></li>
-  </ul>
-
-  <p>As both the font and rendering models of X11 are limited, it's basically
-     impossible to draw anti-aliased glyphs without performing <em>huge</em>
-     hacks within the server.</p>
-
-  <p>Note that Keith Packard, from XFree fame, has recently started working
-     on a new rendering model for X11 in order to support new features
-     (mainly transparency and anti-aliased fonts). This will be provided
-     through protocol extensions. The question of knowing wether legacy X
-     applications will be able to display anti-aliased text is still very
-     uncertain.
-     </p>
-</ul>
-
-<a name="general-ft1">
-<h3>I.5. Is FreeType 2 backwards compatible with FreeType 1.x?</h3>
-<ul>
-  <p>Not directly, though we had the project to provide an optional binary
-     compatibility layer on top of it in order to easily re-link applications
-     with the new version. However, this idea has been dropped as it is
-     possible to install and use the two versions independtly on any
-     system (read: no namespace conflicts).</p>
-
-  <p>The FreeType 2 API is a lot simpler than the one in 1.x while being
-     much more powerful. We thus encourage you to adapt your source code
-     to it as this should not involve much work.</p>
-
-</ul>
-
-<a name="general-edit">
-<h3>I.6. Can I use FreeType 2 to edit fonts or create new ones?</h3>
-<ul>
-  <p>The answer is a definitive NO, because the library was specifically
-     designed to <em>read</em> font files with small code size and very
-     low memory usage.</p>
-
-  <p>We thus do not plan to support editing or creation in the font
-     engine in any way, as this would imply a complete rewrite. This
-     doesn't mean that we won't introduce a font editing/creation library
-     in the future, as this really depends on how many people are asking
-     for it (or how much they would be willing to pay for it), as well as
-     the time of the FreeType developers.</p>
-
-  <p>Do not expect anything in this direction until we officially announce
-     something though. There are other axis of development for this project
-     (like text-layout capabilities, glyph caching, etc..) that may be more
-     important to us at the moment..</p>
-</ul>
-
-</td></tr></table>
-
-<table width="100%" cellspacing=5><tr bgcolor="#CCCCEE"><td>
-<h2 align=center><a name="builds">Compilation & Configuration</h2>
-</td></tr><tr><td>
-
-<a name="builds-compile">
-<h3>II.1. How do I compile the FreeType 2 library?</h3>
-<ul>
-  <p>The library can be compiled in various ways, and a detailed documentation
-     is available in the file "<tt>freetype2/docs/BUILD</tt>". However, we'll
-     summarize the process to a few cases:</p>
-
-  <h3>a. by using the command-line 2 build system</h3>
-
-  <p>The engine comes with a sophisticated build system that is used
-     to configure and compile a build of the library. You'll need
-     <em>GNU Make</em> installed on your platform (NOTE: It will <b>not</b>
-     work with other Make tools).</p>
-
-  <p>Basically, you'll need to invoke <tt>make</tt> a first time in the
-     top-level FreeType 2 directory in order to setup the build. This will
-     detect your current platform and choose a configuration sub-makefile to
-     drive the build. A specific compiler can be selected on some platforms
-     by providing an additional target. For example, on Win32:</p>
-
-  <ul>
-    <li><b><tt>make visualc</tt></b> will select the Visual C++ compiler</li>
-    <li><b><tt>make lcc</tt></b> will select the Win32-lcc compiler</li>
-  </ul>
-
-  <p>Note that on Unix, the first time make is called, a configure script
-     located in "<tt>freetype2/builds/unix</tt>" will be run in order to
-     automatically detect the platform & compiler.</p>
-
-  <p>A summary will be displayed showing the detected platform and compiler
-     selected. You'll then be able to start the build by invoking <tt>make</tt>
-     a second time. In case of problem, consult the <tt>BUILD</tt> document.</p>
+  <img src="image/freetype.jpg"
+       width=550 height=105
+       alt="The FreeType Project"
+       border=0></a>
+  <h1>The FreeType&nbsp;2 FAQ</h1>
+</h1>
 
+<center>
+<table width="75%">
+<tr><td>
 
-  <h3>b. by direct compilation</h3>
+  <hr><p>
 
-  <p>You can also directly compile the library from the command line by
-     using these simple rules:</p>
+  Document index
 
   <ul>
-    <li><p>
-       You should place the directories "<tt>freetype2/include</tt>" and
-       "<tt>freetype2/src</tt>" in your include path in order to compile
-       any component of the library. You can also add the system-specific
-       build directory (i.e. "<tt>builds/<em>system</em>/</tt>") in the
-       case where an alternate implementation of some of the components
-       is available there (e.g. the memory-mapped i/o implementation
-       on some Unix systems).
-    </p></li>
-
-    <li><p>
-       The components of the library are located in sub-directories of
-       "<tt>src</tt>", for example: "<tt>src/base</tt>",
-       "<tt>src/truetype</tt>", etc..
-    </p></li>
-
-    <li><p>
-       Each component is normally compiled through a single C file that
-       "wraps" other sources in the component's directory. For example,
-       your should compile the TrueType font driver by compiling the
-       file "<tt>src/truetype/truetype.c</tt>". The list of C files to
-       compile for a feature-complete build of the library is given in
-       the <tt>BUILD</tt> document.
-    </p></li>
+    <li><a href="#general">General</a>
+      <ul><p>
+        <li>
+          <a href="#general-dead">I thought the FreeType project was dead.
+          Is this true?</a>
+        </li>
+        <li>
+          <a href="#general-long">Why did it take so long to release
+          FreeType&nbsp;2?</a>
+        </li>
+        <li>
+          <a href="#general-unix">Is FreeType&nbsp;2 a Unix-only
+          project?</a>
+        </li>
+        <li>
+          <a href="#general-x11">When will X11 support anti-aliased
+          glyphs?</a>
+        </li>
+        <li>
+          <a href="#general-ft1">Is FreeType&nbsp;2 backwards compatible
+          to FreeType&nbsp;1.x?</a>
+        </li>
+        <li>
+          <a href="#general-edit">Can I use FreeType&nbsp;2 to edit fonts
+          or create new ones?</a>
+        </li>
+      </p></ul>
+    </li>
+    <li><a href="#builds">Compilation & Configuration</a>
+      <ul><p>
+        <li>
+          <a href="#builds-compile">How do I compile the FreeType&nbsp;2
+          library?</a>
+        </li>
+        <li>
+          <a href="#builds-config">How do I configure my library build?</a>
+        </li>
+        <li>
+          <a href="#builds-modules">How do I select the modules I need?</a>
+        </li>
+        <li>
+          <a href="#builds-flat">How do I compile all FreeType&nbsp;2 files
+          in a single directory?</a>
+        </li>
+      </p></ul>
+    </li>
+    <li>
+      <a href="#autohint">The FreeType&nbsp;2 autohinter</a>
+      <ul><p>
+        <li>
+          <a href="#autohint-license">Under which license is the auto-hinter
+          released?</a>
+        </li>
+        <li>
+          <a href="#autohint-work">How does auto-hinting work in
+          FreeType&nbsp;2?</a>
+        </li>
+        <li>
+          <a href="#autohint-cjk">Why doesn't the auto-hinter work well
+          with CJK fonts?</a>
+        </li>
+      </p></ul>
+    </li>
+    <li>
+      <a href="#other">Other questions</a>
+      <ul><p>
+        <li>
+          <a href="#other-antialias">Which anti-aliasing algorithm is
+          used in the FreeType&nbsp;2 renderer?</a>
+        </li>
+        <li>
+          <a href="#other-opentype">When will FreeType&nbsp;2 support
+          OpenType?</a>
+        </li>
+      </p></ul>
+    </li>
   </ul>
 
-  <h3>c. in a graphical IDE</h3>
-  <ul>
-    <p>Well, the process is vastly similar to the one described in b.,
-       except that you need to set the include paths, source code paths,
-       etc.. in dialog boxes before running the compilation.
-    </p>
-  </ul>
+  <p><hr></p>
+
+  <table width="100%">
+  <tr bgcolor="#CCCCEE"><td>
+    <h2 align=center>
+      <a name="general">General questions & answers</h2>
+  </td></tr>
+  <tr><td>
+
+    <a name="general-dead">
+    <h3>
+      I.1 I though the FreeType project was dead.  Is this true?
+    </h3>
+
+    <p>Well, not exactly&nbsp;:-)  It's true that the TrueType patents
+    issues have been less than a graceful event to handle but it didn't not
+    really killed the project per se, as Apple hasn't made an official
+    statement yet regarding the use of the patented "technology" in open
+    source projects (or other products).</p>
+
+    <p>We have thus continued updating FreeType&nbsp;1.x, and started
+    developing FreeType&nbsp;2 with the idea of providing this time a
+    completely patent free font engine.  However, we largely preferred not
+    to broadly communicate about it until we've got a satisfying
+    implementation to show.</p>
+
+    <a name="general-long">
+    <h3>
+      I.2 Why did it take so long to release FreeType&nbsp;2?
+    </h3>
+
+    <p>Several factors come to mind.  The first one is that FreeType&nbsp;2
+    is a much more complex and dense project that was mostly developed
+    during non-working hours.  And surely some important changes in the life
+    (like marriage, new jobs and kids) of some the FreeType developers
+    cannot be ignored&nbsp;:-)</p>
+
+    <p>A second one is that a first version of the library was designed one
+    year ago (and already worked with a multitude of font drivers), though
+    with a design that was judged by its authors as well as beta testers as
+    not enough flexible or consistent.  In short, it worked well but we were
+    not exactly proud of it (call us perfectionists).  It has then be
+    significantly reworked to become what we are now distributing as
+    FreeType&nbsp;2</p>
+
+    <p>Finally, it would have been hard to distribute such a library without
+    an alternative technology to replace the patented bytecode interpreter. 
+    This involved significant research work that could only be performed
+    correctly full-time, and we had to found a company to fund such a
+    development and still make it available under a BSD-like license.  Huge
+    thanks to <a href="http://www.catharon.com">Catharon Productions,
+    Inc.</a> for their commitment to this project.</p>
+
+    <p>And of course, we added support for more font files, and we will
+    continue to as long as the specifications are available and that we find
+    an interest in it.  For example, FreeType&nbsp;2 is to date the only
+    software library available on the market that supports the new Adobe
+    "CEF" font format.</p>
+
+    <a name="general-unix">
+    <h3>
+      I.3 Is FreeType&nbsp;2 a Unix-only project?
+    </h3>
+
+    <p>Absolutely not, even though many people still seem to think
+    so&nbsp;:-) FreeType&nbsp;2, just like version&nbsp;1.x, can be compiled
+    on any platform with an ANSI compiler.  Some beta versions of the
+    library are even heavily used in brand new OSes (see the <a
+    href="http://www.atheos.cx">AtheOS</a> screenshots for examples).</p>
+
+    <p>The library is itself mainly developed on several platforms (Windows
+    & Linux, though a great deal has also been achieved on OS/2) and the
+    code is highly generic and modular to adapt even the most strict
+    environments like low-memory embedded systems.</p>
+
+    <a name="general-x11">
+    <h3>
+      I.4 When will X11/XFree support anti-aliased text?
+    </h3>
+
+    <p>This question isn't exactly related to FreeType as we have no direct
+    connection to the XFree people, but we have been asked so frequently
+    about it that it deserves a prominent place in this FAQ&nbsp;:-)</p>
+
+    <p>FreeType has been capable of anti-aliasing since version&nbsp;1.0. 
+    The reason why XFree doesn't support it is directly related to the
+    limitations of the design and specification of X11.  More
+    specifically:</p>
 
-</ul>
-
-<a name="builds-config">
-<h3>II.2. How do I configure my build of the library?</h3>
-<ul>
-  <p>Each build of the library is configured through two header files
-     located in "<tt>include/freetype/config</tt>":</p>
+    <ul>
+      <li>
+        X11 assumes that all glyph images are monochrome bitmaps, hence the
+        X&nbsp;font library and server are unable to send anything else to
+        the X&nbsp;server.
+      </li>
+      <li>
+        Even if the X&nbsp;font library/server was able to generate
+        anti-aliased bitmaps (and this has been already done through
+        extensions), the X&nbsp;rendering model doesn't allow translucent
+        composition of "gray" pixmaps onto an arbitrary drawable.
+      </li>
+    </ul>
 
-  <ul>
-    <li><p><b><tt>ftoption.h</tt></b><br>
-        This file contains various configuration macros whose definition
-	can be toggled on a per-build basis. Each macro is heavily
-	commented in this file's comment, and we invite you to refer
-	to it directly.</p></li>
+    <p>As both the font and rendering models of X11 are limited, it is
+    basically impossible to draw anti-aliased glyphs without performing
+    <em>huge</em> hacks within the server.</p>
+
+    <p>Note that Keith Packard, from XFree fame, has recently started
+    working on a new rendering model for X11 in order to support new
+    features (mainly transparency and anti-aliased fonts).  This will be
+    provided through protocol extensions.  The question of knowing whether
+    legacy X applications will be able to display anti-aliased text is still
+    very uncertain.</p>
+
+    <a name="general-ft1">
+    <h3>
+      I.5 Is FreeType&nbsp;2 backwards compatible with FreeType&nbsp;1.x?
+    </h3>
+
+    <p>Not directly, though we had the project to provide an optional binary
+    compatibility layer on top of it in order to easily re-link applications
+    with the new version.  However, this idea has been dropped as it is
+    possible to install and use the two versions independently on any system
+    (read: no namespace conflicts).</p>
+
+    <p>The FreeType&nbsp;2 API is a lot simpler than the one in&nbsp;1.x
+    while being much more powerful.  We thus encourage you to adapt your
+    source code to it as this should not involve much work.</p>
+
+    <a name="general-edit">
+    <h3>
+      I.6 Can I use FreeType&nbsp;2 to edit fonts or create new ones?
+    </h3>
+
+    <p>The answer is a definitive <b>no</b>, because the library was
+    specifically designed to <em>read</em> font files with small code size
+    and very low memory usage.</p>
+
+    <p>We thus do not plan to support editing or creation in the font engine
+    in any way, as this would imply a complete rewrite.  This doesn't mean
+    that we won't introduce a font editing/creation library in the future,
+    as this really depends on how many people are asking for it (or how much
+    they would be willing to pay for it), as well as the time of the
+    FreeType developers.</p>
+
+    <p>Do not expect anything in this direction until we officially announce
+    something though.  There are other axes of development for this project
+    (like text-layout capabilities, glyph caching, etc.) that may be more
+    important to us at the moment.</p>
+  </td></tr>
+  </table>
+
+  <br>
+
+  <table width="100%">
+  <tr bgcolor="#CCCCEE"><td>
+    <h2 align=center>
+      <a name="builds">Compilation & Configuration
+    </h2>
+  </td></tr>
+  <tr><td>
+
+    <a name="builds-compile">
+    <h3>
+      II.1 How do I compile the FreeType&nbsp;2 library?
+    </h3>
+
+    <p>The library can be compiled in various ways, and a detailed
+    documentation is available in the file <tt>freetype2/docs/BUILD</tt>. 
+    However, we will summarize the process to a few cases:</p>
+
+      <h4>
+        a. Using the command-line&nbsp;2 build system
+      </h4>
+
+      <p>The engine comes with a sophisticated build system that is used to
+      configure and compile a build of the library.  You will need <em>GNU
+      Make</em> installed on your platform (<b>Note:</b> It will
+      <em>not</em> work with other Make tools).</p>
+
+      <p>Basically, you will need to invoke <tt>make</tt> a first time in
+      the top-level FreeType&nbsp;2 directory in order to set up the build. 
+      This will detect your current platform and choose a configuration
+      sub-makefile to drive the build.  A specific compiler can be selected
+      on some platforms by providing an additional target.  For example, on
+      Win32:</p>
+
+      <ul>
+        <li>
+          <b><tt>make visualc</tt></b> will select the Visual&nbsp; C++
+          compiler
+        </li>
+        <li>
+          <b><tt>make lcc</tt></b> will select the Win32-lcc compiler
+        </li>
+      </ul>
+
+      <p>Note that on Unix, when the first time make is called, a configure
+      script located in <tt>freetype2/builds/unix</tt> will be run in order
+      to automatically detect the platform & compiler.</p>
+
+      <p>A summary will be displayed showing the detected platform and
+      compiler selected.  You will then be able to start the build by
+      invoking <tt>make</tt> a second time.  In case of problem, consult the
+      <tt>BUILD</tt> document.</p>
+
+      <h4>
+        b. Direct compilation
+      </h4>
+
+      <p>You can also directly compile the library from the command line by
+      using these simple rules:</p>
+
+      <ul>
+        <li>
+          You should place the directories <tt>freetype2/include</tt> and
+          <tt>freetype2/src</tt> in your include path in order to compile
+          any component of the library.  You can also add the
+          system-specific build directory (i.e.
+          <tt>builds/<em>system</em>/</tt>) in the case where an alternate
+          implementation of some of the components is available there (e.g.
+          the memory-mapped i/o implementation on some Unix systems).
+        </li>
+        <li>
+          The components of the library are located in sub-directories of
+          <tt>src</tt>, for example: <tt>src/base</tt>,
+          <tt>src/truetype</tt>, etc.
+        </li>
+        <li>
+          Each component is normally compiled through a single C file that
+          <em>wraps</em> other sources in the component's directory.  For
+          example, you should build the TrueType font driver by compiling
+          the file <tt>src/truetype/truetype.c</tt>.  The list of
+          C&nbsp;files to compile for a feature-complete build of the
+          library is given in the <tt>BUILD</tt> document.
+        </li>
+      </ul>
+
+      <h4>
+        c. Using a graphical IDE
+      </h4>
+
+      <p>Well, the process is vastly similar to the one described in b.,
+      except that you need to set the include paths, source code paths, etc. 
+      in dialog boxes before running the compilation.</p>
+
+    <a name="builds-config">
+    <h3>
+      II.2 How do I configure my build of the library?
+    </h3>
+
+    <p>Each build of the library is configured through two header files
+    located in <tt>include/freetype/config</tt>:</p>
 
-    <li><p><b><tt>ftmodule.h</tt></b><br>
+    <ul>
+      <li>
+        <tt>ftoption.h</tt>
+        <br>
+        This file contains various configuration macros whose definition can
+        be toggled on a per-build basis.  Each macro is heavily commented in
+        this file's comment, and we invite you to refer to it directly.
+      </li>
+      <li>
+        <tt>ftmodule.h</tt>
+        <br>
         This file contains the list of all the modules that are initially
-	registered (added) when the function <b><tt>FT_Init_FreeType</tt></b>
-	is called. See the next answer to know how to change it and
-	why it may be important.</p></li>
-  </ul>
-
-  <p>Alternatively, some specific implementations of some FT2 components
-     can be provided in a "<tt>builds/<em>system</em>/</tt>" directory
-     (e.g. the Unix-specific <tt>ftsystem.c</tt> that uses memory-mapped
-     file for i/o).</p>
-</ul>
-
-<a name="builds-modules">
-<h3>II.3. How do I select the modules I need in my build?</h3>
-<ul>
-  <p>The function <tt><b>FT_Init_FreeType</b></tt> creates a new instance
-     of the FT2 library and registers a set of "default" modules before
-     returning to the calling application. Its default implementation
-     is in the file "<tt>src/base/ftinit.c</tt>".</p>
-
-  <p>The list of default modules used by <tt>ftinit.c</tt> is located in
-     the configuration file "<tt>include/freetype/config/ftmodule.h</tt>".
-     It is normally automatically generated by the build system by
-     invoking the "<tt><b>make modules</b></tt>" command in the top
-     level FT2 directory (note: only works with GNU Make, you can
-     edit the file by hand otherwise). It does so by parsing all
-     sub-directories of "<tt>src</tt>" that contain a file named
-     <tt>module.mk</tt>.</p>
-
-  <p>Note that a specific port or project is free to provide its own
-     implementation of <tt>ftinit.c</tt> in order to ensure a different
-     initialisation sequence. For example, one could do something like:</p>
-
-  <ul>
-    <li><p>compile each module as a shared library (DLL or .so) with
-           a common "entry point" to retrieve a pointer to its
-	   module class (there is already some code that allows this
-	   when compiling each module).</p></li>
+        registered (added) when the function <tt>FT_Init_FreeType()</tt> is
+        called.  See the next answer to know how to change it and why it may
+        be important.
+      </li>
+    </ul>
 
-    <li><p>place these modules in a directory like
-          "<tt>/usr/lib/freetype2/modules/</tt>"</p></li>
+    <p>Alternatively, some specific implementations of some FreeType&nbsp;2
+    components can be provided in a <tt>builds/<em>system</em>/</tt>
+    directory (e.g. the Unix-specific <tt>ftsystem.c</tt> that uses
+    memory-mapped file for i/o).</p>
+
+    <a name="builds-modules">
+    <h3>
+      II.3 How do I select the modules I need in my build?
+    </h3>
+
+    <p>The function <tt>FT_Init_FreeType()</tt> creates a new instance of
+    the FreeType&nbsp;2 library and registers a set of "default" modules
+    before returning to the calling application.  Its default implementation
+    is in the file <tt>src/base/ftinit.c</tt>.</p>
+
+    <p>The list of default modules used by <tt>ftinit.c</tt> is located in
+    the configuration file <tt>include/freetype/config/ftmodule.h</tt>. 
+    Normally, it is automatically generated by the build system by invoking
+    the "<tt><b>make modules</b></tt>" command in the top level
+    FreeType&nbsp;2 directory (Note: this only works with GNU Make; you can
+    edit the file by hand otherwise).  It does so by parsing all
+    sub-directories of <tt>src</tt> that contain a file named
+    <tt>module.mk</tt>.</p>
+
+    <p>Note that a specific port or project is free to provide its own
+    implementation of <tt>ftinit.c</tt> in order to ensure a different
+    initialization sequence.  For example, one could do something like:</p>
 
-    <li><p>provide an implementation of <tt>ftinit.c</tt> that would
-           scan the directory for valid modules.</p></li>
-  </ul>
+    <ul>
+      <li>
+        Compile each module as a shared library (DLL or <tt>.so</tt>) with a
+        common "entry point" to retrieve a pointer to its module class
+        (there is already some code that allows this when compiling each
+        module).
+      </li>
+      <li>
+        Place these modules in a directory like
+        <tt>/usr/lib/freetype2/modules/</tt>.
+      </li>
+      <li>
+        Provide an implementation of <tt>ftinit.c</tt> that would scan the
+        directory for valid modules.
+      </li>
+    </ul>
 
-  <p>This example only emphasize the flexibility that is left to
-     developers when building the library.</p>
-
-</ul>
-
-<a name="builds-flat">
-<h3>II.4. How do I compile all FreeType 2 files in a single directory?</h3>
-<ul>
-  <p>Some projects may need, for the sake of simplicity or ease of
-     building, to compile the FT2 library with all source files
-     copied to a single directory. This is possible.</p>
-
-  <p>To do so, you'll need to copy all source files located under
-     "<tt>src</tt>" to your own directory (you must retain the
-     include files in a distinct hierarchy though), then compile
-     each of the FreeType 2 component with the macro
-     <tt><b>FT_FLAT_COMPILE</b></tt>. This will change the way
-     <tt><b>#include</b></tt> works during the build.</p>
-</ul>
-
-</td></tr></table>
-
-<table width="100%" cellspacing=5><tr bgcolor="#CCCCEE"><td>
-<h2 align=center><a name="library">Using the FreeType 2 library</h2>
-</td></tr><tr><td>
-
-</td></tr></table>
-
-<table width="100%" cellspacing=5><tr bgcolor="#CCCCEE"><td>
-<h2 align=center><a name="autohint">The FreeType 2 auto-hinter</h2>
-</td></tr><tr><td>
-
-<a name="autohint-license">
-<h3>IV.1. Under which license is the FreeType 2 auto-hinter released</h3>
-<ul>
-  <p>The auto-hinter was initially designed and implemented under contract
-     for <a href="http://www.catharon.com">Catharon Productions, Inc</a>
-     which gladly accepted to released it under an open-source license
-     compatible with the FreeType one.</p>
-
-  <p>This license can be found in "<tt>src/autohint/CatharonLicense.txt</tt>"
-     and requires that you cite Catharon Productions in your documentation
-     (just like you do with FreeType) when using the auto-hinting module.</p>
-
-  <p>Other than that, you still have the same freedom than with the good old
-     FreeType license. Enjoy !</p>
-</ul>
-
-<a name="autohint-work">
-<h3>IV.2. How does the auto-hinter works ?</h3>
-<ul>
-  <p>Well, a complete description would be difficult. Have a look at the
-     dedicated <a href="autohinting/index.html">auto-hinter pages</a> on the FreeType
-     site, as they describe most of its details with graphics and explanations.
-     You could also look at the source code if you want to :-)</p>
-
-  <p>To give a few details, the auto-hinter is used to perform grid-fitting
-     on scalable font formats that use bezier outlines as their primary glyph
-     image format (this means nearly all scalable font formats today). When
-     a given font driver doesn't provide its own hinter, the auto-hinter is
-     used by default. When a format-specific hinter is provided, it is still
-     possible to use the auto-hinter using the
-     <tt><b>FT_LOAD_FORCE_AUTOHINT</b></tt> bit flag when calling
-     <tt>FT_Load_Glyph</tt>.</p>
-
-  <p>The auto-hinter currently doesn't use external hints to do its job,
-     as it automatically computes global metrics (when it "opens" a font
-     for the first time) and glyph "hints" from their outline. Note that
-     we plan the ability to specify external hints, given that it is based
-     on a constraint system. That could be used to support native hints
-     in Type 1/Type 2 fonts, for example.</p>
-</ul>
-
-<a name="autohint-cjk">
-<h3>IV.3. Why does the auto-hinter doesn't work correctly with CJK fonts ?</h3>
-<ul>
-  <p>The auto-hinter was first designed to manage and hint latin-based fonts,
-     as they consist of most of the fonts available today. It doesn't hint
-     asian fonts, as well as a few other complex scripts, because we didn't
-     put enough research on the topic yet. Hinting CJK isn't really more
-     difficult than latin, just different with a set of different constraints
-     (basically, more distortion of glyphs is acceptable as long as certain
-     features like triple-stem positions are respected more strictly..).</p>
-
-  <p>We thus plan to handle such a case rather rapidly.. Please be patient.</p>
-</ul>
-
-
-</td></tr></table>
-
-<table width="100%" cellspacing=5><tr bgcolor="#CCCCEE"><td>
-<h2 align=center><a name="other">Other questions</h2>
-</td></tr><tr><td>
-
-<a name="other-antialias">
-<h3>V.1. What is the anti-aliasing algorithm used by FreeType 2 ?</h3>
-<ul>
-  <p>The algorithm has been specifically designed for FreeType. It is
-     based on ideas that were originally found in the implementation
-     of the <a href="http://www.levien.com/libart">libArt</a> graphics
-     library to compute the <em>exact pixel coverage</em> of a vector
-     image with absolutely now sub-sampling/filtering.
-     </p>
-
-  <p>However, these two implementations are radically distinct and use
-     vastly different models. The FreeType 2 renderer is optimized
-     specifically for rendering small complex shapes, like glyphs, at
-     very high speed while using very few memory; while libArt shines
-     at general shape/polygon processing, especially large ones.</p>
-
-  <p>The FT2 anti-aliasing renderer is indeed <em>faster</em> than the
-     monochrome renderer for small character sizes (typically &lt; 20 pixels).
-     This is explained because the monochrome renderer must perform two
-     passes on the outline in order to perform drop-out control according
-     to the TrueType spec (we could drop this requirement later though).</p>
-
-  <p>We'll try to document its design in a later document, though this is
-     not a priority for now.</p>
-</ul>
-
-<a name="other-opentype">
-<h3>V.2. When will FreeType 2 support OpenType ?</h3>
-<ul>
-  <p>Well, the engine already reads OpenType/CFF files perfectly. What it
-     doesn't do is handle "OpenType Layout" tables yet.</p>
+    <p>This example only emphasizes the flexibility that is left to
+    developers when building the library.</p>
+
+    <a name="builds-flat">
+    <h3>
+      II.4 How do I compile all FreeType&nbsp;2 files in a single
+      directory?
+    </h3>
+
+    <p>Some projects may need, for the sake of simplicity or ease of
+    building, to compile the FreeType&nbsp;2 library with all source files
+    copied to a single directory.  This is possible.</p>
+
+    <p>To do so, you have to copy all source files located under
+    <tt>src</tt> to your own directory (you must retain the include files in
+    a distinct hierarchy though), then compile each of the FreeType&nbsp;2
+    component with the macro <tt>FT_FLAT_COMPILE</tt>.  This will change the
+    way <tt>#include</tt> works during the build.</p>
+
+  </td></tr>
+  </table>
+
+  <br>
+
+  <table width="100%">
+    <tr bgcolor="#CCCCEE"><td>
+    <h2 align=center>
+      <a name="autohint">The FreeType&nbsp;2 auto-hinter
+    </h2>
+  </td></tr>
+  <tr><td>
+
+    <a name="autohint-license">
+    <h3>
+      III.1 Under which license is the FreeType&nbsp;2 auto-hinter released?
+    </h3>
+
+    <p>The auto-hinter was initially designed and implemented under contract
+    for <a href="http://www.catharon.com">Catharon Productions, Inc</a>
+    which gladly accepted to released it under an open-source license
+    compatible with the FreeType one.</p>
+
+    <p>This license can be found in
+    <tt>src/autohint/CatharonLicense.txt</tt> and requires that you cite
+    Catharon Productions in your documentation (just like you do with
+    FreeType) when using the auto-hinting module.</p>
+
+    <p>Other than that, you still have the same freedom than with the good
+    old FreeType license.  Enjoy!</p>
+
+    <a name="autohint-work">
+    <h3>
+      III.2 How does the auto-hinter work?
+    </h3>
+
+    <p>Well, a complete description would be difficult.  Have a look at the
+    dedicated <a href="autohinting/index.html">auto-hinter pages</a> on the
+    FreeType site, as they describe most of its details with graphics and
+    explanations.  You could also look at the source code if you want
+    to&nbsp;:-)</p>
+
+    <p>To give a few details, the auto-hinter is used to perform
+    grid-fitting on scalable font formats that use B&eacute;zier outlines as
+    their primary glyph image format (this means nearly all scalable font
+    formats today).  If a given font driver doesn't provide its own hinter,
+    the auto-hinter is used by default.  If a format-specific hinter is
+    provided, it is still possible to use the auto-hinter using the
+    <tt>FT_LOAD_FORCE_AUTOHINT</tt> bit flag when calling
+    <tt>FT_Load_Glyph()</tt>.</p>
+
+    <p>The auto-hinter currently doesn't use external hints to do its job,
+    as it automatically computes global metrics (when it "opens" a font for
+    the first time) and glyph "hints" from their outline.  Note that we plan
+    the ability to specify external hints, given that it is based on a
+    constraint system.  That could be used to support native hints in
+    Type&nbsp;1/Type&nbsp;2 fonts, for example.</p>
+
+    <a name="autohint-cjk">
+    <h3>
+      III.3 Why does the auto-hinter doesn't work correctly with CJK
+      fonts?
+    </h3>
+
+    <p>The auto-hinter was first designed to manage and hint Latin-based
+    fonts, as they consist of most of the fonts available today.  It doesn't
+    hint Asian fonts, as well as a few other complex scripts, because we
+    didn't put enough research on the topic yet.  Hinting CJK isn't really
+    more difficult than Latin, just different, with a set of different
+    constraints (basically, more distortion of glyphs is acceptable as long
+    as certain features like triple-stem positions are respected more
+    strictly).</p>
+
+    <p>We thus plan to handle such a case in the near future.  Please be
+    patient.</p>
+  </td></tr>
+  </table>
+
+  <br>
+
+  <table width="100%">
+  <tr bgcolor="#CCCCEE"><td>
+    <h2 align=center>
+      <a name="other">Other questions
+    </h2>
+  </td></tr>
+  <tr><td>
+
+    <a name="other-antialias">
+    <h3>
+      IV.1 Which anti-aliasing algorithm is used by FreeType&nbsp;2?</h3>
+
+    <p>The algorithm has been specifically designed for FreeType.  It is
+    based on ideas that were originally found in the implementation of the
+    <a href="http://www.levien.com/libart">libArt</a> graphics library to
+    compute the <em>exact pixel coverage</em> of a vector image with
+    absolutely no sub-sampling/filtering.</p>
+
+    <p>However, these two implementations are radically distinct and use
+    vastly different models.  The FreeType&nbsp;2 renderer is optimized
+    specifically for rendering small complex shapes, like glyphs, at very
+    high speed while using very few memory; while libArt shines at general
+    shape/polygon processing, especially large ones.</p>
+
+    <p>The FreeType&nbsp;2 anti-aliasing renderer is indeed <em>faster</em>
+    than the monochrome renderer for small character sizes (typically
+    &lt;20&nbsp;pixels).  The reason is that the monochrome renderer must
+    perform two passes on the outline in order to perform drop-out control
+    according to the TrueType specification (we could drop this requirement
+    later though).</p>
+
+    <p>We will try to document its design in a later document, though this
+    is not a priority for now.</p>
+
+    <a name="other-opentype">
+    <h3>
+      IV.2 When will FreeType&nbsp;2 support OpenType?
+    </h3>
+
+    <p>Well, the engine already reads OpenType/CFF files perfectly.  What it
+    doesn't do is handle "OpenType Layout" tables yet.</p>
      
-  <p>FreeType 1 comes with a set of extensions that are used to load
-     and manage OpenType Layout tables. It even has a demonstration program
-     named "<tt>ftstrtto</tt>" used to demonstrate its capabilities that
-     runs pretty smooth.</p>
+    <p>FreeType&nbsp;1 comes with a set of extensions that are used to load
+    and manage OpenType Layout tables.  It even has a demonstration program
+    named "<tt>ftstrtto</tt>" to show its capabilities.</p>
      
-  <p>For FreeType 2, we have decided that the layout operations provided
-     through these tables is better placed in a specific text-layout library,
-     (many people having asked for such a thing). This new engine would not
-     depend on FT2 explicitely and will be developed as a separate project.
-     We plan to announce it in a few weeks with all gory details,
-     once the definitive 2.0 release of FreeType has been made.</p>
-</ul>
+    <p>For FreeType&nbsp;2, we have decided that the layout operations
+    provided through these tables are better placed in a specific
+    text-layout library, (many people having asked for such a thing).  This
+    new engine will not depend on FreeType2 explicitly and will be developed
+    as a separate project.  We plan to announce it in a few weeks with all
+    gory details, once the definitive 2.0&nbsp;release of FreeType has been
+    made.</p>
+
+  </td></tr>
+  </table>
 
-</td></tr></table>
+  <p><hr></p>
 
-<hr>
-<p>
-<a href="index.html">Back to FreeType homepage</a><p>
+  <a href="index.html">Back to FreeType homepage</a><p>
 
-</td></tr></table>
+</td></tr>
+</table>
 </body>
 </html>