freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] * include/freetype/ftcache.h: Typo, pu


From: Werner Lemberg (@wl)
Subject: [Git][freetype/freetype][master] * include/freetype/ftcache.h: Typo, punctuation.
Date: Fri, 12 May 2023 03:59:52 +0000

Werner Lemberg pushed to branch master at FreeType / FreeType

Commits:

  • 3af4772d
    by Werner Lemberg at 2023-05-12T05:59:00+02:00
    * include/freetype/ftcache.h: Typo, punctuation.
    

1 changed file:

Changes:

  • include/freetype/ftcache.h
    ... ... @@ -44,20 +44,20 @@ FT_BEGIN_HEADER
    44 44
        *   images while limiting their maximum memory usage.
    
    45 45
        *
    
    46 46
        *   Note that all types and functions begin with the `FTC_` prefix rather
    
    47
    -   *   than the usual `FT_` prefix int the rest of FreeType.
    
    47
    +   *   than the usual `FT_` prefix in the rest of FreeType.
    
    48 48
        *
    
    49 49
        *   The cache is highly portable and, thus, doesn't know anything about
    
    50 50
        *   the fonts installed on your system, or how to access them.  Therefore,
    
    51
    -   *   it requires the following:
    
    51
    +   *   it requires the following.
    
    52 52
        *
    
    53
    -   *   * @FTC_FaceID, an arbitrary non-zero value, that uniquely identifies
    
    53
    +   *   * @FTC_FaceID, an arbitrary non-zero value that uniquely identifies
    
    54 54
        *     available or installed font faces, has to be provided to the
    
    55 55
        *     cache by the client.  Note that the cache only stores and compares
    
    56
    -   *     these values, and doesn't try to interpret them in any way but they
    
    56
    +   *     these values and doesn't try to interpret them in any way, but they
    
    57 57
        *     have to be persistent on the client side.
    
    58 58
        *
    
    59 59
        *   * @FTC_Face_Requester, a method to convert an @FTC_FaceID into a new
    
    60
    -   *     @FT_Face object, when necessary, has to be provided to the cache by
    
    60
    +   *     @FT_Face object when necessary, has to be provided to the cache by
    
    61 61
        *     the client.  The @FT_Face object is completely managed by the cache,
    
    62 62
        *     including its termination through @FT_Done_Face.  To monitor
    
    63 63
        *     termination of face objects, the finalizer callback in the `generic`
    
    ... ... @@ -65,7 +65,7 @@ FT_BEGIN_HEADER
    65 65
        *     to store the @FTC_FaceID of the face.
    
    66 66
        *
    
    67 67
        *   Clients are free to map face IDs to anything useful.  The most simple
    
    68
    -   *   usage is, for example, to associate them to a {pathname,face_index}
    
    68
    +   *   usage is, for example, to associate them to a `{pathname,face_index}`
    
    69 69
        *   pair that is then used by @FTC_Face_Requester to call @FT_New_Face.
    
    70 70
        *   However, more complex schemes are also possible.
    
    71 71
        *
    
    ... ... @@ -73,7 +73,7 @@ FT_BEGIN_HEADER
    73 73
        *   **persistent**, which means that the contents they point to should not
    
    74 74
        *   change at runtime, or that their value should not become invalid.
    
    75 75
        *   If this is unavoidable (e.g., when a font is uninstalled at runtime),
    
    76
    -   *   you should call @FTC_Manager_RemoveFaceID as soon as possible, to let
    
    76
    +   *   you should call @FTC_Manager_RemoveFaceID as soon as possible to let
    
    77 77
        *   the cache get rid of any references to the old @FTC_FaceID it may keep
    
    78 78
        *   internally.  Failure to do so will lead to incorrect behaviour or even
    
    79 79
        *   crashes in @FTC_Face_Requester.
    
    ... ... @@ -83,7 +83,7 @@ FT_BEGIN_HEADER
    83 83
        *   then look up @FT_Face and @FT_Size objects with
    
    84 84
        *   @FTC_Manager_LookupFace and @FTC_Manager_LookupSize, respectively, and
    
    85 85
        *   use them in any FreeType work stream.  You can also cache other
    
    86
    -   *   FreeType objects as follows:
    
    86
    +   *   FreeType objects as follows.
    
    87 87
        *
    
    88 88
        *   * If you want to use the charmap caching, call @FTC_CMapCache_New,
    
    89 89
        *     then later use @FTC_CMapCache_Lookup to perform the equivalent of
    
    ... ... @@ -93,13 +93,12 @@ FT_BEGIN_HEADER
    93 93
        *     then later use @FTC_ImageCache_Lookup to retrieve the corresponding
    
    94 94
        *     @FT_Glyph objects from the cache.
    
    95 95
        *
    
    96
    -   *   * If you need lots of small bitmaps, it is much more memory efficient
    
    96
    +   *   * If you need lots of small bitmaps, it is much more memory-efficient
    
    97 97
        *     to call @FTC_SBitCache_New followed by @FTC_SBitCache_Lookup.  This
    
    98 98
        *     returns @FTC_SBitRec structures, which are used to store small
    
    99 99
        *     bitmaps directly.  (A small bitmap is one whose metrics and
    
    100 100
        *     dimensions all fit into 8-bit integers).
    
    101 101
        *
    
    102
    -   *
    
    103 102
        * @order:
    
    104 103
        *   FTC_Manager
    
    105 104
        *   FTC_FaceID
    


  • reply via email to

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