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

 
 

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

Submitted by:  None
Submitted on:  Wed 10 Aug 2016 12:26:56 PM UTC  
 
Severity: 3 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.7.0

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Good idea, now implemented in git, thanks.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
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, -unavailable-

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 06 Sep 2016 02:30:51 PM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.7.0

    Back to the top


    Powered by Savane 3.1-cleanup1