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] Fop offers no way to select between condensed and non-condensed font variants
Date Tue, 06 Dec 2011 03:37:55 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52290

--- Comment #1 from Craig Ringer <ringerc@ringerc.id.au> 2011-12-06 03:37:55 UTC ---
It appears that the issue can be worked around - albeit clumsily - by
registering each font manually in the config file, specifying a different
family name for condensed and non-condensed variants. I can then select the
condensed face by asking for "Helvetica Neue LT Condensed" as the family. It's
clunky and clumsy to set up, but it does work. See the generated config file
snippet below for an example.

Here's the config file snippet I'm using to get my fonts to work in the mean
time. In reality there are plenty more fonts, but here's how it works:

      <fonts>
        <font
embed-url="file:/opt/jboss/classads/fonts/HelveticaNeueLTStd-Roman.ttf">
          <font-triplet name="Helvetica Neue LT" style="normal" weight="400"/>
        </font>
        <font
embed-url="file:/opt/jboss/classads/fonts/HelveticaNeueLTStd-Cn.ttf">
          <font-triplet name="Helvetica Neue LT Condensed" style="normal"
weight="400"/>
        </font>
        <font
embed-url="file:/opt/jboss/classads/fonts/HelveticaNeueLTStd-BdCn.ttf">
          <font-triplet name="Helvetica Neue LT Condensed" style="normal"
weight="700"/>
        </font>
        <font
embed-url="file:/opt/jboss/classads/fonts/HelveticaNeueLTStd-BlkCn.ttf">
          <font-triplet name="Helvetica Neue LT Condensed" style="normal"
weight="900"/>
        </font>
      </fonts>

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