shithub: freetype+ttf2subf

Download patch

ref: f27992f295a5f84e9aae45fb07fb649f5d2516f3
parent: b1a98f9e0a0e44e24c9ded4504207b4288b7b81f
author: Werner Lemberg <[email protected]>
date: Mon Mar 6 15:45:08 EST 2017

Minor documentation fixes.

git/fs: mount .git/fs: mount/attach disallowed
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -911,7 +911,10 @@
   /*                           available for the current face if we have a */
   /*                           GX or OpenType variation (sub)font.  Bit 31 */
   /*                           is always zero (this is, `style_flags' is   */
-  /*                           always a positive value).                   */
+  /*                           always a positive value).  Note that a      */
+  /*                           variation font has always at least one      */
+  /*                           named instance, namely the default          */
+  /*                           instance.                                   */
   /*                                                                       */
   /*    num_glyphs          :: The number of glyphs in the face.  If the   */
   /*                           face is scalable and has sbits (see         */
--- a/include/freetype/ftmm.h
+++ b/include/freetype/ftmm.h
@@ -166,19 +166,19 @@
   /*    FT_Var_Named_Style                                                 */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A structure to model a named style in a TrueType GX or OpenType    */
+  /*    A structure to model a named instance in a TrueType GX or OpenType */
   /*    variation font.                                                    */
   /*                                                                       */
   /*    This structure can't be used for Adobe MM fonts.                   */
   /*                                                                       */
   /* <Fields>                                                              */
-  /*    coords :: The design coordinates for this style.                   */
+  /*    coords :: The design coordinates for this instance.                */
   /*              This is an array with one entry for each axis.           */
   /*                                                                       */
-  /*    strid  :: The entry in `name' table identifying this style.        */
+  /*    strid  :: The entry in `name' table identifying this instance.     */
   /*                                                                       */
   /*    psid   :: The entry in `name' table identifying a PostScript name  */
-  /*              for this style.                                          */
+  /*              for this instance.                                       */
   /*                                                                       */
   typedef struct  FT_Var_Named_Style_
   {
@@ -215,7 +215,8 @@
   /*                       a tuple of design coordinates that has a string */
   /*                       ID (in the `name' table) associated with it.    */
   /*                       The font can tell the user that, for example,   */
-  /*                       [Weight=1.5,Width=1.1] is `Bold'.               */
+  /*                       [Weight=1.5,Width=1.1] is `Bold'.  Another name */
+  /*                       for `named style' is `named instance'.          */
   /*                                                                       */
   /*                       For Adobe Multiple Masters fonts, this value is */
   /*                       always zero because the format does not support */
@@ -227,7 +228,7 @@
   /*                       Memory management of this pointer is done       */
   /*                       internally by FreeType.                         */
   /*                                                                       */
-  /*    namedstyle      :: A named style table.                            */
+  /*    namedstyle      :: A named style (instance) table.                 */
   /*                       Only meaningful for TrueType GX and OpenType    */
   /*                       variation fonts.  Memory management of this     */
   /*                       pointer is done internally by FreeType.         */