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] Fop misclassifies condensed fonts as regular
Date Tue, 06 Dec 2011 07:30:39 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52289

--- Comment #2 from Craig Ringer <ringerc@ringerc.id.au> 2011-12-06 07:30:39 UTC ---
It looks like the DejaVu fonts work better, but still not quite right:

15:09:30,926 FINE  [org.apache.fop.fonts.FontInfo] (pool-8-thread-1) DejaVu
Sans,italic,700: Replacing DejaVu Sans Condensed Bold Oblique (priority=23) by
DejaVu Sans Bold Oblique (priority=13)
15:09:30,974 FINE  [org.apache.fop.fonts.FontInfo] (pool-8-thread-1) DejaVu
Sans,normal,700: Not replacing DejaVu Sans Bold (priority=5) by DejaVu Sans
Condensed Bold (priority=15)
15:09:31,008 FINE  [org.apache.fop.fonts.FontInfo] (pool-8-thread-1) DejaVu
Serif,italic,700: Replacing DejaVu Serif Condensed Bold Italic (priority=22) by
DejaVu Serif Bold Italic (priority=12)
15:09:31,041 FINE  [org.apache.fop.fonts.FontInfo] (pool-8-thread-1) DejaVu
Serif,italic,400: Replacing DejaVu Serif Condensed Italic (priority=17) by
DejaVu Serif Italic (priority=7)
15:09:31,084 FINE  [org.apache.fop.fonts.FontInfo] (pool-8-thread-1) DejaVu
Sans,italic,400: Not replacing DejaVu Sans Oblique (priority=8) by DejaVu Sans
Condensed Oblique (priority=18)
15:09:31,141 FINE  [org.apache.fop.fonts.FontInfo] (pool-8-thread-1) DejaVu
Serif,normal,400: Replacing DejaVu Serif Condensed (priority=10) by DejaVu
Serif (priority=0)
15:09:31,192 FINE  [org.apache.fop.fonts.FontInfo] (pool-8-thread-1) DejaVu
Sans,normal,400: Not replacing DejaVu Sans (priority=0) by DejaVu Sans
Condensed (priority=10)
15:09:31,237 FINE  [org.apache.fop.fonts.FontInfo] (pool-8-thread-1) DejaVu
Serif,normal,700: Not replacing DejaVu Serif Bold (priority=5) by DejaVu Serif
Condensed Bold (priority=15)

That said, the DejaVu fonts contain detailed face names, so fop registers them
with the full face name as an alternate family name, eg
DejaVuSerifCondensed-Bold is registered as
"DejaVuSerifCondensed-Bold,normal,400". This font can be selected by full name,
providing a workaround for the lack of font-stretch without requiring manual
registration of fonts. It's a bit of a hack and doesn't permit you to do things
like say "I want Helvetica Condensed" then apply selective bold/italic styling
and have the right face picked, though; you always have to specify the full
explicit font name.

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