Commit bff86cbeb82b77b6080e93d50bdc9c34f407ce74

Werner Lemberg 2002-06-26T05:58:24

Minor fixes and grammatical corrections/additions.

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
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index 76d85e0..57c0fcb 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -246,7 +246,7 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /* <Note>                                                                */
   /*    Library objects are normally created by @FT_Init_FreeType, and     */
-  /*    destroyed with @FT_Done_FreeType                                   */
+  /*    destroyed with @FT_Done_FreeType.                                  */
   /*                                                                       */
   typedef struct FT_LibraryRec_  *FT_Library;
 
@@ -303,13 +303,13 @@ FT_BEGIN_HEADER
   /*    Each face object also owns a single @FT_GlyphSlot object, as well  */
   /*    as one or more @FT_Size objects.                                   */
   /*                                                                       */
-  /*    use @FT_New_Face or @FT_Open_Face to create a new face object from */
+  /*    Use @FT_New_Face or @FT_Open_Face to create a new face object from */
   /*    a given filepathname or a custom input stream.                     */
   /*                                                                       */
-  /*    use @FT_Done_Face to destroy it (along with its slot and sizes)    */
+  /*    Use @FT_Done_Face to destroy it (along with its slot and sizes).   */
   /*                                                                       */
   /* <Also>                                                                */
-  /*    the @FT_FaceRec details the publicly accessible fields of a given  */
+  /*    The @FT_FaceRec details the publicly accessible fields of a given  */
   /*    face object.                                                       */
   /*                                                                       */
   typedef struct FT_FaceRec_*  FT_Face;
@@ -321,21 +321,21 @@ FT_BEGIN_HEADER
   /*    FT_Size                                                            */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A handle to a given size object. Such an object models the         */
-  /*    data that depends on the current _resolution_ and _character_      */
-  /*    _size_ in a given @FT_Face.                                        */
+  /*    A handle to a given size object.  Such an object models the data   */
+  /*    that depends on the current _resolution_ and _character size_ in a */
+  /*    given @FT_Face.                                                    */
   /*                                                                       */
   /* <Note>                                                                */
-  /*    Each face object owns one or more sizes. There is however a        */
-  /*    single _active_ size for the face at any time that will be         */
-  /*    used by functions like @FT_Load_Glyph, @FT_Get_Kerning, etc...     */
+  /*    Each face object owns one or more sizes.  There is however a       */
+  /*    single _active_ size for the face at any time that will be used by */
+  /*    functions like @FT_Load_Glyph, @FT_Get_Kerning, etc.               */
   /*                                                                       */
-  /*    you can use the @FT_Activate_Size API to change the current        */
-  /*    active size of any given face                                      */
+  /*    You can use the @FT_Activate_Size API to change the current        */
+  /*    active size of any given face.                                     */
   /*                                                                       */
   /* <Also>                                                                */
-  /*   the @FT_SizeRec structure details the publicly accessible fields    */
-  /*   of a given face object.                                             */
+  /*    The @FT_SizeRec structure details the publicly accessible fields   */
+  /*    of a given face object.                                            */
   /*                                                                       */
   typedef struct FT_SizeRec_*  FT_Size;
 
@@ -353,10 +353,10 @@ FT_BEGIN_HEADER
   /*    In other words, each time you call @FT_Load_Glyph or               */
   /*    @FT_Load_Char, the slot's content is erased by the new glyph data, */
   /*    i.e. the glyph's metrics, its image (bitmap or outline), and       */
-  /*    other control information                                          */
+  /*    other control information.                                         */
   /*                                                                       */
   /* <Also>                                                                */
-  /*    @FT_GlyphSlotRec details the publicly accessible glyph fields      */
+  /*    @FT_GlyphSlotRec details the publicly accessible glyph fields.     */
   /*                                                                       */
   typedef struct FT_GlyphSlotRec_*  FT_GlyphSlot;
 
@@ -372,20 +372,19 @@ FT_BEGIN_HEADER
   /*    parent's face.  Some font formats may provide several charmaps per */
   /*    font.                                                              */
   /*                                                                       */
-  /*    Each face object owns zero or more charmaps, but only one of       */
-  /*    them can be "active" and used by @FT_Get_Char_Index or             */
-  /*    @FT_Load_Char                                                      */
+  /*    Each face object owns zero or more charmaps, but only one of them  */
+  /*    can be "active" and used by @FT_Get_Char_Index or @FT_Load_Char.   */
   /*                                                                       */
   /*    The list of available charmaps in a face is available through the  */
-  /*    "face->num_charmaps" and "face->charmaps" fields of @FT_FaceRec    */
+  /*    "face->num_charmaps" and "face->charmaps" fields of @FT_FaceRec.   */
   /*                                                                       */
-  /*    the currently active charmap is available as "face->charmap".      */
-  /*    You should call @FT_Set_Charmap to change it                       */
+  /*    The currently active charmap is available as "face->charmap".      */
+  /*    You should call @FT_Set_Charmap to change it.                      */
   /*                                                                       */
   /* <Note>                                                                */
-  /*    when a new face is created (either through @FT_New_Face or         */
+  /*    When a new face is created (either through @FT_New_Face or         */
   /*    @FT_Open_Face), the library looks for a Unicode charmap within     */
-  /*    the list and automatically activates it                            */
+  /*    the list and automatically activates it.                           */
   /*                                                                       */
   typedef struct FT_CharMapRec_*  FT_CharMap;
 
@@ -396,8 +395,8 @@ FT_BEGIN_HEADER
   /*    FT_ENC_TAG                                                         */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    This macro converts four letter tags into an unsigned long.        */
-  /*     It is used to define "encoding" identifiers (see @FT_Encoding)    */
+  /*    This macro converts four letter tags into an unsigned long.  It is */
+  /*    used to define "encoding" identifiers (see @FT_Encoding).          */
   /*                                                                       */
   /*                                                                       */
 #ifndef FT_ENC_TAG
@@ -416,7 +415,7 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /* <Description>                                                         */
   /*    An enumeration used to specify encodings supported by charmaps.    */
-  /*    Used in the FT_Select_Charmap() API function.                      */
+  /*    Used in the @FT_Select_Charmap API function.                       */
   /*                                                                       */
   /* <Note>                                                                */
   /*    Because of 32-bit charcodes defined in Unicode (i.e., surrogates), */
@@ -458,8 +457,8 @@ FT_BEGIN_HEADER
   /* <Fields>                                                              */
   /*    face        :: A handle to the parent face object.                 */
   /*                                                                       */
-  /*    encoding    :: A @FT_Encoding tag identifying the charmap.  Use    */
-  /*                   this with @FT_Select_Charmap().                     */
+  /*    encoding    :: An @FT_Encoding tag identifying the charmap.  Use   */
+  /*                   this with @FT_Select_Charmap.                       */
   /*                                                                       */
   /*    platform_id :: An ID number describing the platform for the        */
   /*                   following encoding ID.  This comes directly from    */
@@ -498,7 +497,7 @@ FT_BEGIN_HEADER
   /*    An opaque handle to an FT_Face_InternalRec structure, used to      */
   /*    model private data of a given @FT_Face object.                     */
   /*                                                                       */
-  /*    This structure might change between releases of FreeType 2 and are */
+  /*    This structure might change between releases of FreeType 2 and is  */
   /*    not generally available to client applications.                    */
   /*                                                                       */
   typedef struct FT_Face_InternalRec_*  FT_Face_Internal;
@@ -517,7 +516,7 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /* <Fields>                                                              */
   /*    num_faces           :: In the case where the face is located in a  */
-  /*                           collection (i.e., a file which embed        */
+  /*                           collection (i.e., a file which embeds       */
   /*                           several faces), this is the total number of */
   /*                           faces found in the resource.  1 by default. */
   /*                                                                       */
@@ -566,7 +565,7 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /*    available_sizes     :: An array of sizes specifying the available  */
   /*                           bitmap/graymap sizes that are contained in  */
-  /*                           in the font face. Should be set to NULL if  */
+  /*                           in the font face.  Should be set to NULL if */
   /*                           the field `num_fixed_sizes' is set to 0.    */
   /*                                                                       */
   /*    num_charmaps        :: The total number of character maps in the   */
@@ -576,7 +575,7 @@ FT_BEGIN_HEADER
   /*                           Used to scan the list of available charmaps */
   /*                           -- this table might change after a call to  */
   /*                           @FT_Attach_File or @FT_Attach_Stream (e.g.  */
-  /*                           when used to hook an additional encoding or */
+  /*                           if used to hook an additional encoding or   */
   /*                           CMap to the face object).                   */
   /*                                                                       */
   /*    generic             :: A field reserved for client uses.  See the  */
@@ -655,9 +654,9 @@ FT_BEGIN_HEADER
   /*                           can need more than one slot to ease their   */
   /*                           task.                                       */
   /*                                                                       */
-  /*    size                :: the current active size for this face       */
+  /*    size                :: The current active size for this face.      */
   /*                                                                       */
-  /*    charmap             :: the current active charmap for this face    */
+  /*    charmap             :: The current active charmap for this face.   */
   /*                                                                       */
   typedef struct  FT_FaceRec_
   {
@@ -803,8 +802,8 @@ FT_BEGIN_HEADER
   /* <Description>                                                         */
   /*    A bit-field constant, used to indicate that a given face contains  */
   /*    kerning information.  When set, this information can be retrieved  */
-  /*    through the function @FT_Get_Kerning().  Note that when unset,     */
-  /*    this function will always return the kerning vector (0,0).         */
+  /*    through the function @FT_Get_Kerning.  Note that if unset, this    */
+  /*    function will always return the kerning vector (0,0).              */
   /*                                                                       */
 #define FT_FACE_FLAG_KERNING  0x40
 
@@ -825,8 +824,8 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /* <Note>                                                                */
   /*    This bit flag is deprecated, because even if the bitmaps are       */
-  /*    available directly in the font file, the glyph sub-system is       */
-  /*    very likely to be faster anyway...                                 */
+  /*    available directly in the font file, the glyph sub-system is very  */
+  /*    likely to be faster anyway.                                        */
   /*                                                                       */
 #define FT_FACE_FLAG_FAST_GLYPHS  0x80
 
@@ -839,7 +838,7 @@ FT_BEGIN_HEADER
   /* <Description>                                                         */
   /*    A bit-field constant, used to indicate that the font contains      */
   /*    multiple masters and is capable of interpolating between them.     */
-  /*    See the multiple-masters specific API for more details             */
+  /*    See the multiple-masters specific API for more details.            */
   /*                                                                       */
 #define FT_FACE_FLAG_MULTIPLE_MASTERS  0x100
 
@@ -851,7 +850,7 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /* <Description>                                                         */
   /*    A bit-field constant, used to indicate that the font contains      */
-  /*    glyph names that can be retrieved through @FT_Get_Glyph_Name().    */
+  /*    glyph names that can be retrieved through @FT_Get_Glyph_Name.      */
   /*                                                                       */
 #define FT_FACE_FLAG_GLYPH_NAMES  0x200
 
@@ -864,7 +863,7 @@ FT_BEGIN_HEADER
   /* <Description>                                                         */
   /*    This bit field is used internally by FreeType to indicate that     */
   /*    a face's stream was provided by the client application and should  */
-  /*    not be destroyed by @FT_Done_Face().                               */
+  /*    not be destroyed by @FT_Done_Face.                                 */
   /*                                                                       */
 #define FT_FACE_FLAG_EXTERNAL_STREAM  0x4000
 
@@ -874,14 +873,15 @@ FT_BEGIN_HEADER
 
   /*************************************************************************/
   /*                                                                       */
-  /* @macro: FT_HAS_HORIZONTAL (face)                                      */
+  /* @macro:                                                               */
+  /*    FT_HAS_HORIZONTAL( face )                                          */
   /*                                                                       */
   /* @description:                                                         */
-  /*   A macro that returns true whenever a face object contains           */
-  /*   horizontal metrics (this is true for all font formats though).      */
+  /*    A macro that returns true whenever a face object contains          */
+  /*    horizontal metrics (this is true for all font formats though).     */
   /*                                                                       */
   /* @also:                                                                */
-  /*   @FT_HAS_VERTICAL can be used to check for vertical metrics.         */
+  /*    @FT_HAS_VERTICAL can be used to check for vertical metrics.        */
   /*                                                                       */
 #define FT_HAS_HORIZONTAL( face ) \
           ( face->face_flags & FT_FACE_FLAG_HORIZONTAL )
@@ -889,11 +889,12 @@ FT_BEGIN_HEADER
 
   /*************************************************************************/
   /*                                                                       */
-  /* @macro: FT_HAS_VERTICAL (face)                                        */
+  /* @macro:                                                               */
+  /*    FT_HAS_VERTICAL( face )                                            */
   /*                                                                       */
   /* @description:                                                         */
-  /*   A macro that returns true whenever a face object contains vertical  */
-  /*   metrics.                                                            */
+  /*    A macro that returns true whenever a face object contains vertical */
+  /*    metrics.                                                           */
   /*                                                                       */
 #define FT_HAS_VERTICAL( face ) \
           ( face->face_flags & FT_FACE_FLAG_VERTICAL )
@@ -901,11 +902,12 @@ FT_BEGIN_HEADER
 
   /*************************************************************************/
   /*                                                                       */
-  /* @macro: FT_HAS_KERNING (face)                                         */
+  /* @macro:                                                               */
+  /*    FT_HAS_KERNING( face )                                             */
   /*                                                                       */
   /* @description:                                                         */
-  /*   A macro that returns true whenever a face object contains kerning   */
-  /*   data that can be accessed with @FT_Get_Kerning.                     */
+  /*    A macro that returns true whenever a face object contains kerning  */
+  /*    data that can be accessed with @FT_Get_Kerning.                    */
   /*                                                                       */
 #define FT_HAS_KERNING( face ) \
           ( face->face_flags & FT_FACE_FLAG_KERNING )
@@ -913,12 +915,13 @@ FT_BEGIN_HEADER
 
   /*************************************************************************/
   /*                                                                       */
-  /* @macro: FT_IS_SCALABLE (face)                                         */
+  /* @macro:                                                               */
+  /*    FT_IS_SCALABLE( face )                                             */
   /*                                                                       */
   /* @description:                                                         */
-  /*   A macro that returns true whenever a face object contains a         */
-  /*   scalable font face (true for TrueType, Type 1, CID, and             */
-  /*   OpenType/CFF font formats.                                          */
+  /*    A macro that returns true whenever a face object contains a        */
+  /*    scalable font face (true for TrueType, Type 1, CID, and            */
+  /*    OpenType/CFF font formats.                                         */
   /*                                                                       */
 #define FT_IS_SCALABLE( face ) \
           ( face->face_flags & FT_FACE_FLAG_SCALABLE )
@@ -926,16 +929,17 @@ FT_BEGIN_HEADER
 
   /*************************************************************************/
   /*                                                                       */
-  /* @macro: FT_IS_SFNT (face)                                             */
+  /* @macro:                                                               */
+  /*    FT_IS_SFNT( face )                                                 */
   /*                                                                       */
   /* @description:                                                         */
-  /*   A macro that returns true whenever a face object contains a font    */
-  /*   whose format is based on the SFNT storage scheme.  This usually     */
-  /*   means: TrueType fonts, OpenType fonts, as well as SFNT-based        */
-  /*   embedded bitmap fonts.                                              */
+  /*    A macro that returns true whenever a face object contains a font   */
+  /*    whose format is based on the SFNT storage scheme.  This usually    */
+  /*    means: TrueType fonts, OpenType fonts, as well as SFNT-based       */
+  /*    embedded bitmap fonts.                                             */
   /*                                                                       */
-  /*   If this macro is true, all functions defined in @FT_SFNT_NAMES_H    */
-  /*   and @FT_TRUETYPE_TABLES_H are available.                            */
+  /*    If this macro is true, all functions defined in @FT_SFNT_NAMES_H   */
+  /*    and @FT_TRUETYPE_TABLES_H are available.                           */
   /*                                                                       */
 #define FT_IS_SFNT( face ) \
           ( face->face_flags & FT_FACE_FLAG_SFNT )
@@ -943,12 +947,13 @@ FT_BEGIN_HEADER
 
   /*************************************************************************/
   /*                                                                       */
-  /* @macro: FT_IS_FIXED_WIDTH (face)                                      */
+  /* @macro:                                                               */
+  /*    FT_IS_FIXED_WIDTH( face )                                          */
   /*                                                                       */
   /* @description:                                                         */
-  /*   A macro that returns true whenever a face object contains a font    */
-  /*   face that contains fixed-width (or "monospace", "fixed-pitch",      */
-  /*   etc.) glyphs.                                                       */
+  /*    A macro that returns true whenever a face object contains a font   */
+  /*    face that contains fixed-width (or "monospace", "fixed-pitch",     */
+  /*    etc.) glyphs.                                                      */
   /*                                                                       */
 #define FT_IS_FIXED_WIDTH( face ) \
           ( face->face_flags & FT_FACE_FLAG_FIXED_WIDTH )
@@ -956,12 +961,13 @@ FT_BEGIN_HEADER
 
   /*************************************************************************/
   /*                                                                       */
-  /* @macro: FT_IS_FIXED_SIZES (face)                                      */
+  /* @macro:                                                               */
+  /*    FT_IS_FIXED_SIZES( face )                                          */
   /*                                                                       */
   /* @description:                                                         */
-  /*   A macro that returns true whenever a face object contains some      */
-  /*   embedded bitmaps.  See the `fixed_sizes' field of the @FT_FaceRec   */
-  /*   structure.                                                          */
+  /*    A macro that returns true whenever a face object contains some     */
+  /*    embedded bitmaps.  See the `fixed_sizes' field of the @FT_FaceRec  */
+  /*    structure.                                                         */
   /*                                                                       */
 #define FT_HAS_FIXED_SIZES( face ) \
           ( face->face_flags & FT_FACE_FLAG_FIXED_SIZES )
@@ -972,11 +978,12 @@ FT_BEGIN_HEADER
 
   /*************************************************************************/
   /*                                                                       */
-  /* @macro: FT_HAS_FAST_GLYPHS (face)                                     */
+  /* @macro:                                                               */
+  /*    FT_HAS_FAST_GLYPHS( face )                                         */
   /*                                                                       */
   /* @description:                                                         */
-  /*   Deprecated, indicates that the face contains so-called "fast"       */
-  /*   glyph bitmaps.                                                      */
+  /*    Deprecated; indicates that the face contains so-called "fast"      */
+  /*    glyph bitmaps.                                                     */
   /*                                                                       */
 #define FT_HAS_FAST_GLYPHS( face ) \
           ( face->face_flags & FT_FACE_FLAG_FAST_GLYPHS )
@@ -984,11 +991,12 @@ FT_BEGIN_HEADER
 
   /*************************************************************************/
   /*                                                                       */
-  /* @macro: FT_HAS_GLYPH_NAMES (face)                                     */
+  /* @macro:                                                               */
+  /*    FT_HAS_GLYPH_NAMES( face )                                         */
   /*                                                                       */
   /* @description:                                                         */
-  /*   A macro that returns true whenever a face object contains some      */
-  /*   glyph names that can be accessed through @FT_Get_Glyph_Names.       */
+  /*    A macro that returns true whenever a face object contains some     */
+  /*    glyph names that can be accessed through @FT_Get_Glyph_Names.      */
   /*                                                                       */
 #define FT_HAS_GLYPH_NAMES( face ) \
           ( face->face_flags & FT_FACE_FLAG_GLYPH_NAMES )
@@ -996,13 +1004,14 @@ FT_BEGIN_HEADER
 
   /*************************************************************************/
   /*                                                                       */
-  /* @macro: FT_HAS_MULTIPLE_MASTERS (face)                                */
+  /* @macro:                                                               */
+  /*    FT_HAS_MULTIPLE_MASTERS( face )                                    */
   /*                                                                       */
   /* @description:                                                         */
-  /*   A macro that returns true whenever a face object contains some      */
-  /*   multiple masters.  The functions provided by                        */
-  /*   @FT_MULTIPLE_MASTERS_H are then available to choose the exact       */
-  /*   design you want.                                                    */
+  /*    A macro that returns true whenever a face object contains some     */
+  /*    multiple masters.  The functions provided by                       */
+  /*    @FT_MULTIPLE_MASTERS_H are then available to choose the exact      */
+  /*    design you want.                                                   */
   /*                                                                       */
 #define FT_HAS_MULTIPLE_MASTERS( face ) \
           ( face->face_flags & FT_FACE_FLAG_MULTIPLE_MASTERS )
@@ -1204,7 +1213,7 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /*    metrics           :: The metrics of the last loaded glyph in the   */
   /*                         slot.  The returned values depend on the last */
-  /*                         load flags (see the FT_Load_Glyph() API       */
+  /*                         load flags (see the @FT_Load_Glyph API        */
   /*                         function) and can be expressed either in 26.6 */
   /*                         fractional pixels or font units.              */
   /*                                                                       */
@@ -1242,8 +1251,8 @@ FT_BEGIN_HEADER
   /*                         when the slot format is                       */
   /*                         ft_glyph_format_bitmap.  Note that the        */
   /*                         address and content of the bitmap buffer can  */
-  /*                         change between calls of @FT_Load_Glyph() and  */
-  /*                         a few other functions.                        */
+  /*                         change between calls of @FT_Load_Glyph and a  */
+  /*                         few other functions.                          */
   /*                                                                       */
   /*    bitmap_left       :: This is the bitmap's left bearing expressed   */
   /*                         in integer pixels.  Of course, this is only   */
@@ -1283,13 +1292,13 @@ FT_BEGIN_HEADER
   /*                         image format.                                 */
   /*                                                                       */
   /* <Note>                                                                */
-  /*    If @FT_Load_Glyph() is called with default flags (see              */
-  /*    @FT_LOAD_DEFAULT ) the glyph image is loaded in the glyph slot in  */
+  /*    If @FT_Load_Glyph is called with default flags (see                */
+  /*    @FT_LOAD_DEFAULT) the glyph image is loaded in the glyph slot in   */
   /*    its native format (e.g. a vectorial outline for TrueType and       */
   /*    Type 1 formats).                                                   */
   /*                                                                       */
   /*    This image can later be converted into a bitmap by calling         */
-  /*    FT_Render_Glyph().  This function finds the current renderer for   */
+  /*    @FT_Render_Glyph.  This function finds the current renderer for    */
   /*    the native image's format then invokes it.                         */
   /*                                                                       */
   /*    The renderer is in charge of transforming the native image through */
@@ -1460,7 +1469,7 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /* <Description>                                                         */
   /*    A simple structure used to pass more or less generic parameters    */
-  /*    to FT_Open_Face().                                                 */
+  /*    to @FT_Open_Face.                                                  */
   /*                                                                       */
   /* <Fields>                                                              */
   /*    tag  :: A 4-byte identification tag.                               */
@@ -1486,7 +1495,7 @@ FT_BEGIN_HEADER
   /* <Description>                                                         */
   /*    A structure used to indicate how to open a new font file/stream.   */
   /*    A pointer to such a structure can be used as a parameter for the   */
-  /*    functions @FT_Open_Face() & @FT_Attach_Stream().                   */
+  /*    functions @FT_Open_Face and @FT_Attach_Stream.                     */
   /*                                                                       */
   /* <Fields>                                                              */
   /*    flags       :: A set of bit flags indicating how to use the        */
@@ -1500,7 +1509,7 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /*    stream      :: A handle to a source stream object.                 */
   /*                                                                       */
-  /*    driver      :: This field is exclusively used by FT_Open_Face();   */
+  /*    driver      :: This field is exclusively used by @FT_Open_Face;    */
   /*                   it simply specifies the font driver to use to open  */
   /*                   the face.  If set to 0, FreeType will try to load   */
   /*                   the face with each one of the drivers in its list.  */
@@ -1523,8 +1532,8 @@ FT_BEGIN_HEADER
   /*    Otherwise, if the `ft_open_pathname' bit is set, assume that this  */
   /*    is a normal file and use `pathname' to open it.                    */
   /*                                                                       */
-  /*    If the `ft_open_driver' bit is set, @FT_Open_Face() will only      */
-  /*    try to open the file with the driver whose handler is in `driver'. */
+  /*    If the `ft_open_driver' bit is set, @FT_Open_Face will only try to */
+  /*    open the file with the driver whose handler is in `driver'.        */
   /*                                                                       */
   /*    If the `ft_open_params' bit is set, the parameters given by        */
   /*    `num_params' and `params' will be used.  They are ignored          */
@@ -1572,14 +1581,14 @@ FT_BEGIN_HEADER
   /*    slot for the face object which can be accessed directly through    */
   /*    `face->glyph'.                                                     */
   /*                                                                       */
-  /*    FT_New_Face() can be used to determine and/or check the font       */
-  /*    format of a given font resource.  If the `face_index' field is     */
-  /*    negative, the function will _not_ return any face handle in        */
-  /*    `aface'.  Its return value should be 0 if the font format is       */
-  /*    recognized, or non-zero otherwise.                                 */
+  /*    @FT_New_Face can be used to determine and/or check the font format */
+  /*    of a given font resource.  If the `face_index' field is negative,  */
+  /*    the function will _not_ return any face handle in `aface'.  Its    */
+  /*    return value should be 0 if the font format is recognized, or      */
+  /*    non-zero otherwise.                                                */
   /*                                                                       */
   /*    Each new face object created with this function also owns a        */
-  /*    default @FT_Size object, accessible as `face->size'                */
+  /*    default @FT_Size object, accessible as `face->size'.               */
   /*                                                                       */
   FT_EXPORT( FT_Error )
   FT_New_Face( FT_Library   library,
@@ -1623,9 +1632,9 @@ FT_BEGIN_HEADER
   /*    slot for the face object which can be accessed directly through    */
   /*    `face->glyph'.                                                     */
   /*                                                                       */
-  /*    FT_New_Memory_Face() can be used to determine and/or check the     */
-  /*    font format of a given font resource.  If the `face_index' field   */
-  /*    is negative, the function will _not_ return any face handle in     */
+  /*    @FT_New_Memory_Face can be used to determine and/or check the font */
+  /*    format of a given font resource.  If the `face_index' field is     */
+  /*    negative, the function will _not_ return any face handle in        */
   /*    `aface'.  Its return value should be 0 if the font format is       */
   /*    recognized, or non-zero otherwise.                                 */
   /*                                                                       */
@@ -1667,7 +1676,7 @@ FT_BEGIN_HEADER
   /*    slot for the face object which can be accessed directly through    */
   /*    `face->glyph'.                                                     */
   /*                                                                       */
-  /*    FT_Open_Face() can be used to determine and/or check the font      */
+  /*    @FT_Open_Face can be used to determine and/or check the font      */
   /*    format of a given font resource.  If the `face_index' field is     */
   /*    negative, the function will _not_ return any face handle in        */
   /*    `*face'.  Its return value should be 0 if the font format is       */
@@ -1702,7 +1711,7 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /* <Note>                                                                */
   /*    If your font file is in memory, or if you want to provide your     */
-  /*    own input stream object, use FT_Attach_Stream().                   */
+  /*    own input stream object, use @FT_Attach_Stream.                    */
   /*                                                                       */
   /*    The meaning of the `attach' action (i.e., what really happens when */
   /*    the new file is read) is not fixed by FreeType itself.  It really  */
@@ -1723,7 +1732,7 @@ FT_BEGIN_HEADER
   /*    FT_Attach_Stream                                                   */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    This function is similar to FT_Attach_File() with the exception    */
+  /*    This function is similar to @FT_Attach_File with the exception     */
   /*    that it reads the attachment from an arbitrary stream.             */
   /*                                                                       */
   /* <InOut>                                                               */
@@ -1800,7 +1809,7 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /* <Note>                                                                */
   /*    When dealing with fixed-size faces (i.e., non-scalable formats),   */
-  /*    use the function FT_Set_Pixel_Sizes().                             */
+  /*    use the function @FT_Set_Pixel_Sizes.                              */
   /*                                                                       */
   FT_EXPORT( FT_Error )
   FT_Set_Char_Size( FT_Face     face,
@@ -1884,7 +1893,7 @@ FT_BEGIN_HEADER
   /*    If the glyph image is not a bitmap, and if the bit flag            */
   /*    FT_LOAD_IGNORE_TRANSFORM is unset, the glyph image will be         */
   /*    transformed with the information passed to a previous call to      */
-  /*    FT_Set_Transform().                                                */
+  /*    @FT_Set_Transform.                                                 */
   /*                                                                       */
   /*    Note that this also transforms the `face.glyph.advance' field, but */
   /*    *not* the values in `face.glyph.metrics'.                          */
@@ -1929,7 +1938,7 @@ FT_BEGIN_HEADER
   /*    If the glyph image is not a bitmap, and if the bit flag            */
   /*    FT_LOAD_IGNORE_TRANSFORM is unset, the glyph image will be         */
   /*    transformed with the information passed to a previous call to      */
-  /*    FT_Set_Transform().                                                */
+  /*    @FT_Set_Transform.                                                 */
   /*                                                                       */
   /*    Note that this also transforms the `face.glyph.advance' field, but */
   /*    *not* the values in `face.glyph.metrics'.                          */
@@ -1946,7 +1955,7 @@ FT_BEGIN_HEADER
   /*    FT_LOAD_NO_SCALE                                                   */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A bit field constant, used with FT_Load_Glyph() to indicate that   */
+  /*    A bit field constant, used with @FT_Load_Glyph to indicate that    */
   /*    the vector outline being loaded should not be scaled to 26.6       */
   /*    fractional pixels, but kept in notional units.                     */
   /*                                                                       */
@@ -1959,7 +1968,7 @@ FT_BEGIN_HEADER
   /*    FT_LOAD_NO_HINTING                                                 */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A bit-field constant, used with FT_Load_Glyph() to indicate that   */
+  /*    A bit-field constant, used with @FT_Load_Glyph to indicate that    */
   /*    the vector outline being loaded should not be fitted to the pixel  */
   /*    grid but simply scaled to 26.6 fractional pixels.                  */
   /*                                                                       */
@@ -1974,11 +1983,11 @@ FT_BEGIN_HEADER
   /*    FT_LOAD_RENDER                                                     */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A bit-field constant, used with FT_Load_Glyph() to indicate that   */
+  /*    A bit-field constant, used with @FT_Load_Glyph to indicate that    */
   /*    the function should load the glyph and immediately convert it into */
-  /*    a bitmap, if necessary, by calling FT_Render_Glyph().              */
+  /*    a bitmap, if necessary, by calling @FT_Render_Glyph.               */
   /*                                                                       */
-  /*    Note that by default, FT_Load_Glyph() loads the glyph image in its */
+  /*    Note that by default, @FT_Load_Glyph loads the glyph image in its  */
   /*    native format.                                                     */
   /*                                                                       */
 #define FT_LOAD_RENDER  4
@@ -1990,11 +1999,11 @@ FT_BEGIN_HEADER
   /*    FT_LOAD_NO_BITMAP                                                  */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A bit-field constant, used with FT_Load_Glyph() to indicate that   */
+  /*    A bit-field constant, used with @FT_Load_Glyph to indicate that    */
   /*    the function should not load the bitmap or pixmap of a given       */
   /*    glyph.  This is useful when you do not want to load the embedded   */
   /*    bitmaps of scalable formats, as the native glyph image will be     */
-  /*    loaded, and can then be rendered through FT_Render_Glyph().        */
+  /*    loaded, and can then be rendered through @FT_Render_Glyph.         */
   /*                                                                       */
 #define FT_LOAD_NO_BITMAP  8
 
@@ -2005,7 +2014,7 @@ FT_BEGIN_HEADER
   /*    FT_LOAD_VERTICAL_LAYOUT                                            */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A bit-field constant, used with FT_Load_Glyph() to indicate that   */
+  /*    A bit-field constant, used with @FT_Load_Glyph to indicate that    */
   /*    the glyph image should be prepared for vertical layout.  This      */
   /*    basically means that `face.glyph.advance' will correspond to the   */
   /*    vertical advance height (instead of the default horizontal         */
@@ -2021,7 +2030,7 @@ FT_BEGIN_HEADER
   /*    FT_LOAD_FORCE_AUTOHINT                                             */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A bit-field constant, used with FT_Load_Glyph() to indicate that   */
+  /*    A bit-field constant, used with @FT_Load_Glyph to indicate that    */
   /*    the function should try to auto-hint the glyphs, even if a driver  */
   /*    specific hinter is available.                                      */
   /*                                                                       */
@@ -2034,7 +2043,7 @@ FT_BEGIN_HEADER
   /*    FT_LOAD_CROP_BITMAP                                                */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A bit-field constant, used with FT_Load_Glyph() to indicate that   */
+  /*    A bit-field constant, used with @FT_Load_Glyph to indicate that    */
   /*    the font driver should try to crop the bitmap (i.e. remove all     */
   /*    space around its black bits) when loading it.  For now, this       */
   /*    really only works with embedded bitmaps in TrueType fonts.         */
@@ -2048,7 +2057,7 @@ FT_BEGIN_HEADER
   /*    FT_LOAD_PEDANTIC                                                   */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A bit-field constant, used with FT_Load_Glyph() to indicate that   */
+  /*    A bit-field constant, used with @FT_Load_Glyph to indicate that    */
   /*    the glyph loader should perform a pedantic bytecode                */
   /*    interpretation.  Many popular fonts come with broken glyph         */
   /*    programs.  When this flag is set, loading them will return an      */
@@ -2064,7 +2073,7 @@ FT_BEGIN_HEADER
   /*    FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH                                */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A bit-field constant, used with FT_Load_Glyph() to indicate that   */
+  /*    A bit-field constant, used with @FT_Load_Glyph to indicate that    */
   /*    the glyph loader should ignore the global advance width defined    */
   /*    in the font.  As far as we know, this is only used by the          */
   /*    X-TrueType font server, in order to deal correctly with the        */
@@ -2079,7 +2088,7 @@ FT_BEGIN_HEADER
   /*    FT_LOAD_NO_RECURSE                                                 */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A bit-field constant, used with FT_Load_Glyph() to indicate that   */
+  /*    A bit-field constant, used with @FT_Load_Glyph to indicate that    */
   /*    the glyph loader should not load composite glyph recursively.      */
   /*    Rather, when a composite glyph is encountered, it should set       */
   /*    the values of `num_subglyphs' and `subglyphs', as well as set      */
@@ -2087,7 +2096,7 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /*    This is for use by the auto-hinter and possibly other tools.       */
   /*    For nearly all applications, this flags should be left unset       */
-  /*    when invoking FT_Load_Glyph().                                     */
+  /*    when invoking @FT_Load_Glyph.                                      */
   /*                                                                       */
   /*    Note that the flag forces the load of unscaled glyphs.             */
   /*                                                                       */
@@ -2100,7 +2109,7 @@ FT_BEGIN_HEADER
   /*    FT_LOAD_IGNORE_TRANSFORM                                           */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A bit-field constant, used with FT_Load_Glyph() to indicate that   */
+  /*    A bit-field constant, used with @FT_Load_Glyph to indicate that    */
   /*    the glyph loader should not try to transform the loaded glyph      */
   /*    image.                                                             */
   /*                                                                       */
@@ -2116,7 +2125,7 @@ FT_BEGIN_HEADER
   /*    Only used with FT_LOAD_RENDER set, it indicates that the returned  */
   /*    glyph image should be 1-bit monochrome.  This really tells the     */
   /*    glyph loader to use `ft_render_mode_mono' when calling             */
-  /*    FT_Render_Glyph().                                                 */
+  /*    @FT_Render_Glyph.                                                  */
   /*                                                                       */
 #define FT_LOAD_MONOCHROME  4096
 
@@ -2127,7 +2136,7 @@ FT_BEGIN_HEADER
   /*    FT_LOAD_LINEAR_DESIGN                                              */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A bit-field constant, used with FT_Load_Glyph() to indicate that   */
+  /*    A bit-field constant, used with @FT_Load_Glyph to indicate that    */
   /*    the function should return the linearly scaled metrics expressed   */
   /*    in original font units, instead of the default 16.16 pixel values. */
   /*                                                                       */
@@ -2143,7 +2152,7 @@ FT_BEGIN_HEADER
   /*    FT_LOAD_DEFAULT                                                    */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A bit-field constant, used with FT_Load_Glyph() to indicate that   */
+  /*    A bit-field constant, used with @FT_Load_Glyph to indicate that    */
   /*    the function should try to load the glyph normally, i.e.,          */
   /*    embedded bitmaps are favored over outlines, vectors are always     */
   /*    scaled and grid-fitted.                                            */
@@ -2159,7 +2168,7 @@ FT_BEGIN_HEADER
   /* <Description>                                                         */
   /*    A function used to set the transformation that is applied to glyph */
   /*    images just before they are converted to bitmaps in a glyph slot   */
-  /*    when FT_Render_Glyph() is called.                                  */
+  /*    when @FT_Render_Glyph is called.                                   */
   /*                                                                       */
   /* <InOut>                                                               */
   /*    face   :: A handle to the source face object.                      */
@@ -2174,7 +2183,7 @@ FT_BEGIN_HEADER
   /*    The transformation is only applied to scalable image formats after */
   /*    the glyph has been loaded.  It means that hinting is unaltered by  */
   /*    the transformation and is performed on the character size given in */
-  /*    the last call to FT_Set_Char_Sizes() or FT_Set_Pixel_Sizes().      */
+  /*    the last call to @FT_Set_Char_Sizes or @FT_Set_Pixel_Sizes.        */
   /*                                                                       */
   FT_EXPORT( void )
   FT_Set_Transform( FT_Face     face,
@@ -2251,7 +2260,7 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /* <Description>                                                         */
   /*    An enumeration used to specify which kerning values to return in   */
-  /*    FT_Get_Kerning().                                                  */
+  /*    @FT_Get_Kerning.                                                   */
   /*                                                                       */
   /* <Fields>                                                              */
   /*    ft_kerning_default  :: Return scaled and grid-fitted kerning       */
@@ -2287,7 +2296,7 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /*    right_glyph :: The index of the right glyph in the kern pair.      */
   /*                                                                       */
-  /*    kern_mode   :: See FT_Kerning_Mode() for more information.         */
+  /*    kern_mode   :: See @FT_Kerning_Mode for more information.          */
   /*                   Determines the scale/dimension of the returned      */
   /*                   kerning vector.                                     */
   /*                                                                       */
@@ -2681,7 +2690,7 @@ FT_BEGIN_HEADER
   /* <Note>                                                                */
   /*    The optimization for FT_DivFix() is simple: If (a << 16) fits in   */
   /*    32 bits, then the division is computed directly.  Otherwise, we    */
-  /*    use a specialized version of the old FT_MulDiv64().                */
+  /*    use a specialized version of the old @FT_MulDiv64.                 */
   /*                                                                       */
   FT_EXPORT( FT_Long )
   FT_DivFix( FT_Long  a,
diff --git a/include/freetype/fttypes.h b/include/freetype/fttypes.h
index 757817f..3abb0f8 100644
--- a/include/freetype/fttypes.h
+++ b/include/freetype/fttypes.h
@@ -43,7 +43,7 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /* <Description>                                                         */
   /*    This section contains the basic data types defined by FreeType 2,  */
-  /*    ranging from simple scalar types to bitmap descriptors. More       */
+  /*    ranging from simple scalar types to bitmap descriptors.  More      */
   /*    font-specific structures are defined in a different section.       */
   /*                                                                       */
   /* <Order>                                                               */
diff --git a/src/autohint/ahhint.c b/src/autohint/ahhint.c
index be5c0a2..169d983 100644
--- a/src/autohint/ahhint.c
+++ b/src/autohint/ahhint.c
@@ -1030,6 +1030,7 @@
     {
       FT_Matrix  imatrix;
 
+
       imatrix              = internal->glyph_matrix;
       hinter->trans_delta  = internal->glyph_delta;
       hinter->trans_matrix = imatrix;