freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][master] * include/freetype/*: Fix documentation


From: Werner Lemberg (@wl)
Subject: [Git][freetype/freetype][master] * include/freetype/*: Fix documentation typos.
Date: Mon, 24 Oct 2022 04:52:32 +0000

Werner Lemberg pushed to branch master at FreeType / FreeType

Commits:

  • 05e1b37e
    by Ivan Panchenko at 2022-10-24T06:52:06+02:00
    * include/freetype/*: Fix documentation typos.
    

3 changed files:

Changes:

  • include/freetype/freetype.h
    ... ... @@ -646,7 +646,7 @@ FT_BEGIN_HEADER
    646 646
        *
    
    647 647
        * @note:
    
    648 648
        *   Despite the name, this enumeration lists specific character
    
    649
    -   *   repertories (i.e., charsets), and not text encoding methods (e.g.,
    
    649
    +   *   repertoires (i.e., charsets), and not text encoding methods (e.g.,
    
    650 650
        *   UTF-8, UTF-16, etc.).
    
    651 651
        *
    
    652 652
        *   Other encodings might be defined in the future.
    
    ... ... @@ -779,7 +779,7 @@ FT_BEGIN_HEADER
    779 779
        *   `encoding_id`.  If, for example, `encoding_id` is `TT_MAC_ID_ROMAN`
    
    780 780
        *   and the language ID (minus~1) is `TT_MAC_LANGID_GREEK`, it is the
    
    781 781
        *   Greek encoding, not Roman.  `TT_MAC_ID_ARABIC` with
    
    782
    -   *   `TT_MAC_LANGID_FARSI` means the Farsi variant the Arabic encoding.
    
    782
    +   *   `TT_MAC_LANGID_FARSI` means the Farsi variant of the Arabic encoding.
    
    783 783
        */
    
    784 784
       typedef enum  FT_Encoding_
    
    785 785
       {
    
    ... ... @@ -1167,9 +1167,9 @@ FT_BEGIN_HEADER
    1167 1167
        *   FT_FACE_FLAG_KERNING ::
    
    1168 1168
        *     The face contains kerning information.  If set, the kerning distance
    
    1169 1169
        *     can be retrieved using the function @FT_Get_Kerning.  Otherwise the
    
    1170
    -   *     function always return the vector (0,0).  Note that FreeType doesn't
    
    1171
    -   *     handle kerning data from the SFNT 'GPOS' table (as present in many
    
    1172
    -   *     OpenType fonts).
    
    1170
    +   *     function always returns the vector (0,0).  Note that FreeType
    
    1171
    +   *     doesn't handle kerning data from the SFNT 'GPOS' table (as present
    
    1172
    +   *     in many OpenType fonts).
    
    1173 1173
        *
    
    1174 1174
        *   FT_FACE_FLAG_FAST_GLYPHS ::
    
    1175 1175
        *     THIS FLAG IS DEPRECATED.  DO NOT USE OR TEST IT.
    
    ... ... @@ -3077,7 +3077,7 @@ FT_BEGIN_HEADER
    3077 3077
        *
    
    3078 3078
        *   FT_LOAD_NO_HINTING ::
    
    3079 3079
        *     Disable hinting.  This generally generates 'blurrier' bitmap glyphs
    
    3080
    -   *     when the glyph are rendered in any of the anti-aliased modes.  See
    
    3080
    +   *     when the glyphs are rendered in any of the anti-aliased modes.  See
    
    3081 3081
        *     also the note below.
    
    3082 3082
        *
    
    3083 3083
        *     This flag is implied by @FT_LOAD_NO_SCALE.
    
    ... ... @@ -3434,7 +3434,7 @@ FT_BEGIN_HEADER
    3434 3434
        *     are not interested in the value.
    
    3435 3435
        *
    
    3436 3436
        *   delta ::
    
    3437
    -   *     A pointer a translation vector.  Set this to NULL if you are not
    
    3437
    +   *     A pointer to a translation vector.  Set this to NULL if you are not
    
    3438 3438
        *     interested in the value.
    
    3439 3439
        *
    
    3440 3440
        * @since:
    
    ... ... @@ -3559,9 +3559,10 @@ FT_BEGIN_HEADER
    3559 3559
        *
    
    3560 3560
        *   2. The `sdf` rasterizer has limited support for handling intersecting
    
    3561 3561
        *      contours and *cannot* handle self-intersecting contours whatsoever.
    
    3562
    -   *      Self-intersection happens when a single connected contour intersect
    
    3563
    -   *      itself at some point; having these in your font definitely pose a
    
    3564
    -   *      problem to the rasterizer and cause artifacts, too.
    
    3562
    +   *      Self-intersection happens when a single connected contour
    
    3563
    +   *      intersects itself at some point; having these in your font
    
    3564
    +   *      definitely poses a problem to the rasterizer and cause artifacts,
    
    3565
    +   *      too.
    
    3565 3566
        *
    
    3566 3567
        *   3. Generating SDF for really small glyphs may result in undesirable
    
    3567 3568
        *      output; the pixel grid (which stores distance information) becomes
    

  • include/freetype/ftcolor.h
    ... ... @@ -475,7 +475,7 @@ FT_BEGIN_HEADER
    475 475
        *   extensions to the 'COLR' table, see
    
    476 476
        *   'https://github.com/googlefonts/colr-gradients-spec'.
    
    477 477
        *
    
    478
    -   *   The enumeration values losely correspond with the format numbers of
    
    478
    +   *   The enumeration values loosely correspond with the format numbers of
    
    479 479
        *   the specification: FreeType always returns a fully specified 'Paint'
    
    480 480
        *   structure for the 'Transform', 'Translate', 'Scale', 'Rotate', and
    
    481 481
        *   'Skew' table types even though the specification has different formats
    
    ... ... @@ -916,8 +916,7 @@ FT_BEGIN_HEADER
    916 916
        *   A structure representing a `PaintRadialGradient` value of the 'COLR'
    
    917 917
        *   v1 extensions, see
    
    918 918
        *   'https://github.com/googlefonts/colr-gradients-spec'.  The glyph
    
    919
    -   *   layer filled with this paint is drawn filled filled with a radial
    
    920
    -   *   gradient.
    
    919
    +   *   layer filled with this paint is drawn filled with a radial gradient.
    
    921 920
        *
    
    922 921
        * @fields:
    
    923 922
        *   colorline ::
    
    ... ... @@ -1202,7 +1201,7 @@ FT_BEGIN_HEADER
    1202 1201
        *
    
    1203 1202
        *   center_x ::
    
    1204 1203
        *     The x~coordinate of the pivot point of the rotation in font
    
    1205
    -   *     units) represented as a 16.16 fixed-point value.
    
    1204
    +   *     units represented as a 16.16 fixed-point value.
    
    1206 1205
        *
    
    1207 1206
        *   center_y ::
    
    1208 1207
        *     The y~coordinate of the pivot point of the rotation in font
    
    ... ... @@ -1283,9 +1282,8 @@ FT_BEGIN_HEADER
    1283 1282
        *   FT_PaintComposite
    
    1284 1283
        *
    
    1285 1284
        * @description:
    
    1286
    -   *   A structure representing a 'COLR'v1 `PaintComposite` paint table.
    
    1287
    -   *   Used for compositing two paints in a 'COLR' v1 directed acycling
    
    1288
    -   *   graph.
    
    1285
    +   *   A structure representing a 'COLR' v1 `PaintComposite` paint table.
    
    1286
    +   *   Used for compositing two paints in a 'COLR' v1 directed acyclic graph.
    
    1289 1287
        *
    
    1290 1288
        * @fields:
    
    1291 1289
        *   source_paint ::
    

  • include/freetype/fterrors.h
    ... ... @@ -29,7 +29,7 @@
    29 29
        *
    
    30 30
        * @description:
    
    31 31
        *   The header file `fterrors.h` (which is automatically included by
    
    32
    -   *   `freetype.h` defines the handling of FreeType's enumeration
    
    32
    +   *   `freetype.h`) defines the handling of FreeType's enumeration
    
    33 33
        *   constants.  It can also be used to generate error message strings
    
    34 34
        *   with a small macro trick explained below.
    
    35 35
        *
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]