freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master ebbb8b2: [type1] MM fonts support exactly zero named


From: Werner LEMBERG
Subject: [freetype2] master ebbb8b2: [type1] MM fonts support exactly zero named instances (#48748).
Date: Tue, 6 Sep 2016 14:30:41 +0000 (UTC)

branch: master
commit ebbb8b2e19d82e12bbf8856a5fba2efe8fb9defa
Author: Werner Lemberg <address@hidden>
Commit: Werner Lemberg <address@hidden>

    [type1] MM fonts support exactly zero named instances (#48748).
    
    * src/type1/t1load.c (T1_Get_MM_Var): Set `num_namedstyles' to zero.
---
 ChangeLog               |    6 ++++++
 include/freetype/ftmm.h |   14 +++++++++-----
 src/type1/t1load.c      |    2 +-
 3 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 904fd8e..60438b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-09-06  Werner Lemberg  <address@hidden>
+
+       [type1] MM fonts support exactly zero named instances (#48748).
+
+       * src/type1/t1load.c (T1_Get_MM_Var): Set `num_namedstyles' to zero.
+
 2016-09-06  Jonathan Kew  <address@hidden>
 
        [cff] Fix uninitialized memory.
diff --git a/include/freetype/ftmm.h b/include/freetype/ftmm.h
index 6c05f0c..b5d6858 100644
--- a/include/freetype/ftmm.h
+++ b/include/freetype/ftmm.h
@@ -195,11 +195,15 @@ FT_BEGIN_HEADER
   /*                       (where every glyph could have a different       */
   /*                       number of designs).                             */
   /*                                                                       */
-  /*    num_namedstyles :: The number of named styles; only meaningful for */
-  /*                       GX that allows certain design coordinates to    */
-  /*                       have a string ID (in the `name' table)          */
-  /*                       associated with them.  The font can tell the    */
-  /*                       user that, for example, Weight=1.5 is `Bold'.   */
+  /*    num_namedstyles :: The number of named styles; a `named style' is  */
+  /*                       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'.               */
+  /*                                                                       */
+  /*                       For Type 1 Multiple Masters fonts, this value   */
+  /*                       is always zero because the format does not      */
+  /*                       support named styles.                           */
   /*                                                                       */
   /*    axis            :: An axis descriptor table.                       */
   /*                       GX fonts contain slightly more data than MM.    */
diff --git a/src/type1/t1load.c b/src/type1/t1load.c
index f8bf313..e728cf4 100644
--- a/src/type1/t1load.c
+++ b/src/type1/t1load.c
@@ -321,7 +321,7 @@
 
     mmvar->num_axis        = mmaster.num_axis;
     mmvar->num_designs     = mmaster.num_designs;
-    mmvar->num_namedstyles = ~0U;                        /* Does not apply */
+    mmvar->num_namedstyles = 0;                           /* Not supported */
     mmvar->axis            = (FT_Var_Axis*)&mmvar[1];
                                       /* Point to axes after MM_Var struct */
     mmvar->namedstyle      = NULL;



reply via email to

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