bugThe FreeType Project - Bugs: bug #22675, Type1 font weights are taken from...

 
 

bug #22675: Type1 font weights are taken from FullName instead of Weight

Submitted by:  Laurence Darby <ldarby>
Submitted on:  Thu 20 Mar 2008 09:05:58 AM UTC  
 
Severity: 3 - NormalItem Group: Incorrect behaviour
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.3.6

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 21 Mar 2008 07:17:36 AM UTC, comment #1:

Applied, thanks.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Thu 20 Mar 2008 09:05:58 AM UTC, original submission:

Hi,

The Helvetica Neue Bold & Roman Type1 fonts have the following entries:

Bold:
FontName HelveticaNeue-Bold
FullName Helvetica 75 Bold
FamilyName Helvetica Neue
Weight Bold

Roman:
FontName HelveticaNeue-Roman
FullName Helvetica 55 Roman
FamilyName Helvetica Neue
Weight Regular

In src/type1/t1objs.c, the weight for the font is taken from the FullName, and only works if the FullName contains the FamilyName. This works for eg. Nimbus Mono Bold:

FontName NimbusMonL-Bold
FullName Nimbus Mono L Bold
FamilyName Nimbus Mono L
Weight Bold

The result is that Helvetica Bold gets assigned Regular weight, so it's chosen instead of the real Regular, making everything bold. It would be more sensible in general if weight is taken from Weight, then fallback to the FullName. Please consider the attached patch, which works for me.

Thanks,
Laurence

Laurence Darby <ldarby>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #15297:  type1_weights.patch added by ldarby (557B - application/octet-stream)

 

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)
  • -unavailable- added by ldarby (Submitted the item)
  •  

    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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 21 Mar 2008 07:17:36 AM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.3.6
    Thu 20 Mar 2008 09:05:58 AM UTCldarbyAttached File-=>Added type1_weights.patch, #15297

    Back to the top


    Powered by Savane 3.1-cleanup1