From f27992f295a5f84e9aae45fb07fb649f5d2516f3 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Mon, 6 Mar 2017 20:45:08 +0100 Subject: [PATCH] Minor documentation fixes. --- include/freetype/freetype.h | 5 ++++- include/freetype/ftmm.h | 13 +++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h index cdbb9d1be..53896e8e0 100644 --- a/include/freetype/freetype.h +++ b/include/freetype/freetype.h @@ -911,7 +911,10 @@ FT_BEGIN_HEADER /* 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 */ diff --git a/include/freetype/ftmm.h b/include/freetype/ftmm.h index 96dd62523..c41b80ea6 100644 --- a/include/freetype/ftmm.h +++ b/include/freetype/ftmm.h @@ -166,19 +166,19 @@ FT_BEGIN_HEADER /* FT_Var_Named_Style */ /* */ /* */ - /* 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. */ /* */ /* */ - /* 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 @@ FT_BEGIN_HEADER /* 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 @@ FT_BEGIN_HEADER /* 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. */