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 52290] New: Fop offers no way to select between condensed and non-condensed font variants
Date Tue, 06 Dec 2011 03:35:43 GMT

             Bug #: 52290
           Summary: Fop offers no way to select between condensed and
                    non-condensed font variants
           Product: Fop
           Version: 1.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: fonts
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: ringerc@ringerc.id.au
    Classification: Unclassified

If one has a collection of faces for a font, some of which are condensed and
some which are not, fop doesn't offer any way to select between them.

According to the XSL-FO standard it appears that the "font-stretch" property
should be used to pick between condensed/expanded/regular faces of a font.
font-stretch is documented as unimplemented in fop. The only questions about on
the mailing list have referred to using font-stretch to artificially condense
or expand a regular face, which is *not* what I need to do, and an idea that
was rejected anyway.

It looks like Fop stores font info as (family, style, weight) triplets, where
"style" here refers to oblique/regular. It doesn't seem to have to track any
additional style attributes like small-caps or whether the face is a condensed
or expanded face.

To support font-stretch, fop will need to:

- Identify whether a font face is condensed/expanded/regular when examining it
- Track additional font metadata, not just the basic font-triplet, treating 
  condensed and non-condensed faces as different fonts.
- Consider the value of font-stretch when matching fonts.

There are some free condensed fonts, including http://dejavu-fonts.org/ which
has a variety of condensed faces, so this isn't something that requires
commercial fonts (though it'll be mostly useful with them).

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

View raw message