xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52289] New: Condensed font selection and identification
Date Tue, 06 Dec 2011 03:18:19 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52289

             Bug #: 52289
           Summary: Condensed font selection and identification
           Product: Fop
           Version: 1.0
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: fonts
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: ringerc@ringerc.id.au
    Classification: Unclassified


Created attachment 28030
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28030
Fop font loading log

Fop appears to be misclassifying the font faces I have.

I'm loading the fonts by having fop scan the directory they're in using the
<fonts><directory> config param and it's finding them fine. However, Fop
doesn't seem to be able to tell the difference between the condensed and
non-condensed faces of these fonts. It also seems to think they all have the
same weight (400) as per the log excerpts below.

Here's an excerpt of the log output from fop where it detects the fonts. The
full log is at  http://pastebin.com/91u9bW10 . You can see that it seems unable
to distinguish the weights or how condensed they are:

Registering: HelveticaNeueLT Std Cn,normal,400 under F17
HelveticaNeueLT Std Cn,normal,400: Replacing HelveticaNeueLTStd-BdCn
(priority=23) by HelveticaNeueLTStd-Cn (priority=21)
Registering: HelveticaNeueLTStd-BlkCn,normal,400 under F18
Registering: Helvetica Neue LT Std,normal,400 under F18
Helvetica Neue LT Std,normal,400: Not replacing HelveticaNeueLTStd-Cn
(priority=21) by HelveticaNeueLTStd-BlkCn (priority=24)
Registering: HelveticaNeueLT Std Blk Cn,normal,400 under F18

By contrast, fontconfig identifies them as I'd expect:

$ fc-list | grep Neue
Helvetica Neue LT Std:style=55 Roman,Regular
Helvetica Neue LT Std,HelveticaNeueLT Std Cn:style=57 Condensed,Regular
Helvetica Neue LT Std,HelveticaNeueLT Std Blk Cn:style=97 Black
Condensed,Regular
Helvetica Neue LT Std,HelveticaNeueLT Std Cn:style=77 Bold Condensed,Bold

These were originally OpenType fonts with CFF outlines; they were converted to
TrueType using FontForge. They behave as expected with other tools including
FontConfig and can be used normally in apps.

As these are commercial fonts I can't attach them to this bug report directly,
but I can lend them to anyone who needs them for testing purposes *only*. You
know how it is with font foundries.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message