bugThe FreeType Project - Bugs: bug #48748, Set FT_MM_Var.num_namedstyles to...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #48748: Set FT_MM_Var.num_namedstyles to zero for Type 1 Multiple Masters

Submitter:  None
Submitted:  Wed 10 Aug 2016 12:26:56 PM UTC
   
 
Severity:  3 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  wl Open/Closed:  Closed
Planned Release:  2.7.0

Tue 06 Sep 2016 02:30:51 PM UTC, comment #1: 

Good idea, now implemented in git, thanks.

Werner LEMBERG <wl>
Group administrator
Wed 10 Aug 2016 12:26:56 PM UTC, original submission:  

When loading a Type 1 Multiple Masters font into FreeType,
the code in src/type1/t1load.c sets (on line 321) mmvar->num_namedstyles to ~0U. It probably does this to indicate that the loaded font has no named styles.

If the code was setting this value to zero, num_namedstyles would be meaningful with all variation font formats. This would simplify the code of FreeType clients, and reduce the chance of programming errors.

The documentation for num_namedstyles could then be changed from this:

> 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’.


to something like this:

> The number of named styles. For Type 1 Multiple Masters fonts, this value is zero because the format does not support named styles.


https://www.freetype.org/freetype2/docs/reference/ft2-multiple_masters.html#FT_MM_Var

-- Sascha, -email is unavailable-

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by wl (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-09-06 wl StatusNone Fixed
        Assigned toNone wl
        Open/ClosedOpen Closed
        Planned ReleaseNone 2.7.0

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code