Bug#609253:

2011-09-12 Thread Mathieu Malaterre
Smaller example taken from:

https://issues.apache.org/bugzilla/show_bug.cgi?id=47279

thread info:

http://www.mail-archive.com/fop-users@xmlgraphics.apache.org/msg14198.html

-- 
Mathieu
?xml version=1.0 standalone=no?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
fo:simple-page-master master-name=page
  page-height=15cm page-width=15cm margin=1cm
  fo:region-body background-color=#F0F0F0/
/fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference=page
fo:flow flow-name=xsl-region-body
  fo:block font-weight=boldText that can be rendered using the default sans-serif font 
family only./fo:block
/fo:flow
  /fo:page-sequence
/fo:root


Bug#609253: your mail

2011-09-11 Thread Mathieu Malaterre
On Sun, Sep 11, 2011 at 2:55 AM, brian m. carlson
sand...@crustytoothpaste.net wrote:
 On Fri, Sep 09, 2011 at 11:14:24AM +0200, Mathieu Malaterre wrote:
 tag 609253 moreinfo
 thanks

 Brian, I cannot reproduce this issue today using your wonderer.fo file.

 I can still reproduce it.  Try using the attached configuration file
 with -c.

Brian, I can *still* not reproduce your issue (not a single warning).
Your fop.xconf seems to be reading from /etc/fop/hyph, which does
not exists on my debian system.
What is supposed to be located here ?

Simply commenting out hyphenation-base XML element makes your
fop.xconf valid for me.

Thanks
-- 
Mathieu



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#609253: your mail

2011-09-11 Thread brian m. carlson
On Sun, Sep 11, 2011 at 02:25:23PM +0200, Mathieu Malaterre wrote:
 Brian, I can *still* not reproduce your issue (not a single warning).

I still get:

  lakeview ok % fop -c ./fop.xconf -fo wonderer.fo wonderer.pdf 
  Sep 11, 2011 6:42:45 PM org.apache.fop.apps.FopFactoryConfigurator configure
  INFO: Default page-height set to: 11in
  Sep 11, 2011 6:42:45 PM org.apache.fop.apps.FopFactoryConfigurator configure
  INFO: Default page-width set to: 8.5in
  Sep 11, 2011 6:42:47 PM org.apache.fop.events.LoggingEventListener 
processEvent
  WARNING: Font Nimbus Roman No9 L,normal,700 not found. Substituting with 
Nimbus Roman No9 L,normal,500.
  Sep 11, 2011 6:42:47 PM org.apache.fop.events.LoggingEventListener 
processEvent
  WARNING: Font Symbol,normal,700 not found. Substituting with 
Symbol,normal,400.
  Sep 11, 2011 6:42:47 PM org.apache.fop.events.LoggingEventListener 
processEvent
  WARNING: Font ZapfDingbats,normal,700 not found. Substituting with 
ZapfDingbats,normal,400.

Do you have ttf-mscorefonts-installer installed?  Do you also have
gsfonts-x11 installed?  fop won't complain about Nimbus Roman No9 L if
it's actually used; if the actual Times New Roman is installed, though,
Nimbus Roman No9 L will still be complained about.  Also, you need to
use the wonderer.fo file that I originally posted to the bug, which is
designed to trigger the problem.

If you look at the properties of the produced PDF file (such as with
evince), it should list only Times New Roman, not Nimbus Roman No9 L.
Since it's not using Nimbus Roman No9 L, it shouldn't complain about the
fact that the desired boldness is not present.  Similarly, since it
doesn't actually use Symbol or ZapfDingbats, there's no reason to
complain about them, either.

 Your fop.xconf seems to be reading from /etc/fop/hyph, which does
 not exists on my debian system.
 What is supposed to be located here ?

/etc/fop/hyph contains the hyphenation package for English that I
installed on my system.  These aren't officially distributed with fop
because of licensing reasons (they're not Apache 2.0 licensed).  You can
safely remove that line.  I've attached a stripped-down configuration
file that removes that line and also the /usr/local font directories
that I can still use to reproduce the problem.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
?xml version=1.0?

!--

This is an example configuration file for FOP.
This file contains the same settings as the default values
and will have no effect if used unchanged.

Relative config url's will be resolved relative to
the location of this file.

--

!-- NOTE: This is the version of the configuration --
fop version=1.0

  !-- Base URL for resolving relative URLs --
  base./base
  
  !-- Source resolution in dpi (dots/pixels per inch) for determining the size 
of pixels in SVG and bitmap images, default: 72dpi --
  source-resolution72/source-resolution
  !-- Target resolution in dpi (dots/pixels per inch) for specifying the 
target resolution for generated bitmaps, default: 72dpi --
  target-resolution72/target-resolution
  
  !-- Default page-height and page-width, in case
   value is specified as auto --
  default-page-settings height=11in width=8.5in/
  
  !-- Information for specific renderers --
  !-- Uses renderer mime type for renderers --
  renderers
renderer mime=application/pdf
  filterList
!-- provides compression using zlib flate (default is on) --
!--valueflate/value--
  
!-- encodes binary data into printable ascii characters (default off)
 This provides about a 4:5 expansion of data size --
!-- valueascii-85/value --
  
!-- encodes binary data with hex representation (default off)
 This filter is not recommended as it doubles the data size --
!-- valueascii-hex/value --
  /filterList

  fonts
!-- embedded fonts --
!--
This information must exactly match the font specified
in the fo file. Otherwise it will use a default font.

For example,
fo:inline font-family=Arial font-weight=bold font-style=normal
Arial-normal-normal font
/fo:inline
for the font triplet specified by:
font-triplet name=Arial style=normal weight=bold/

If you do not want to embed the font in the pdf document
then do not include the embed-url attribute.
The font will be needed where the document is viewed
for it to be displayed properly.

possible styles: normal | italic | oblique | backslant
possible weights: normal | bold | 100 | 200 | 300 | 400
  | 500 | 600 | 700 | 800 | 900
(normal = 400, bold = 700)
--
directory recursive=true/usr/share/fonts//directory
auto-detect 

Bug#609253:

2011-09-09 Thread Mathieu Malaterre
tag 609253 moreinfo
thanks

Brian, I cannot reproduce this issue today using your wonderer.fo file.


$ apt-cache policy fop
fop:
  Installed: 1:1.0.dfsg2-2
  Candidate: 1:1.0.dfsg2-2
  Version table:
 *** 1:1.0.dfsg2-2 0
200 http://ftp.fr.debian.org/debian/ testing/main amd64 Packages
100 http://ftp.fr.debian.org/debian/ unstable/main amd64 Packages
100 /var/lib/dpkg/status
 1:0.95.dfsg-11 0
500 http://ftp.fr.debian.org/debian/ squeeze/main amd64 Packages

-- 
Mathieu



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#609253: fop: warns about fonts that are never used

2011-01-07 Thread brian m. carlson
Package: fop
Version: 1:1.0.dfsg-3
Severity: minor

When I run fop on the attached file, it complains:

  [WARN] FOUserAgent - Font Nimbus Roman No9 L,normal,700 not found. 
Substituting with Nimbus Roman No9 L,normal,500.
  [WARN] FOUserAgent - Font Symbol,normal,700 not found. Substituting with 
Symbol,normal,400.
  [WARN] FOUserAgent - Font ZapfDingbats,normal,700 not found. Substituting 
with ZapfDingbats,normal,400.

While these fonts are specified in the font-family attribute, none of
them are actually used (since Times New Roman is used instead); evince's
font dialog reflects this.  Therefore, there is no reason to warn about
the lack of appropriately bold versions of these fonts.

(The reason several equivalent fonts are listed in the font-family
attribute is because that way an appropriate font is used regardless of
what platform is in use or whether msttcorefonts is installed.)

If you have questions or need me to test something, please let me know;
I'm happy to do so.

-- System Information:
Debian Release: 6.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-rc5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages fop depends on:
ii  default-jre-headless [jav 1:1.6-40   Standard Java or Java compatible R
ii  gcj-4.4-jre-headless [jav 4.4.5-9Java runtime environment using GIJ
ii  gcj-jre-headless [java2-r 4:4.4.5-2  Java runtime environment using GIJ
ii  java-wrappers 0.1.16 wrappers for java executables
ii  libavalon-framework-java  4.2.0-7Common framework for Java server a
ii  libbatik-java 1.7-7  xml.apache.org SVG Library
ii  libbsf-java   1:2.4.0-4  Bean Scripting Framework to suppor
ii  libcommons-io-java1.4-3  Common useful IO related classes
ii  libcommons-logging-java   1.1.1-8commmon wrapper interface for seve
ii  libxalan2-java2.7.1-5XSL Transformations (XSLT) process
ii  libxerces2-java   2.9.1-4.1  Validating XML parser for Java wit
ii  libxml-commons-external-j 1.3.05-2   XML Commons external code - DOM, S
ii  libxmlgraphics-commons-ja 1.4.dfsg-1 reusable components used by Batik 
ii  libxp61:1.0.0.xsf1-2 X Printing Extension (Xprint) clie
ii  libxt61:1.0.7-1  X11 toolkit intrinsics library
ii  libxtst6  2:1.2.0-1  X11 Testing -- Record extension li
ii  openjdk-6-jre-headless [j 6b20~pre1-2OpenJDK Java runtime, using Hotspo

Versions of packages fop recommends:
ii  libsaxon-java 1:6.5.5-6  The Saxon XSLT Processor

Versions of packages fop suggests:
ii  fop-doc 1:1.0.dfsg-3 Documentation for fop
ii  libservlet2.4-java  5.0.30-12Servlet 2.4 and JSP 2.0 Java libra

-- no debconf information

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
?xml version=1.0?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; font-family=Times New 
Roman,Nimbus Roman No9 L,Times,Symbol,ZapfDingbats font-size=10pt 
text-align=justify line-height=normal 
font-selection-strategy=character-by-character 
line-height-shift-adjustment=disregard-shifts writing-mode=lr-tb 
language=enfo:layout-master-setfo:simple-page-master master-name=blank 
page-width=8.5in page-height=11in margin-top=0.5in margin-bottom=0.5in 
margin-left=1in margin-right=1info:region-body display-align=center 
margin-bottom=0.5in margin-top=0.5in/fo:region-before 
region-name=xsl-region-before-blank extent=0.4in 
display-align=before/fo:region-after region-name=xsl-region-after-blank 
extent=0.4in 
display-align=after//fo:simple-page-masterfo:simple-page-master 
master-name=titlepage-first page-width=8.5in page-height=11in 
margin-top=0.5in margin-bottom=0.5in margin-left=1in 
margin-right=1info:region-body margin-bottom=0.5in margin-top=0.5in 
column-gap=12pt column-count=1/fo:region-before 
region-name=xsl-region-before-first extent=0.4in 
display-align=before/fo:region-after region-name=xsl-region-after-first 
extent=0.4in 
display-align=after//fo:simple-page-masterfo:simple-page-master 
master-name=titlepage-odd page-width=8.5in page-height=11in 
margin-top=0.5in margin-bottom=0.5in margin-left=1in 
margin-right=1info:region-body margin-bottom=0.5in margin-top=0.5in 
column-gap=12pt column-count=1/fo:region-before 
region-name=xsl-region-before-odd extent=0.4in 
display-align=before/fo:region-after region-name=xsl-region-after-odd 
extent=0.4in 
display-align=after//fo:simple-page-masterfo:simple-page-master 
master-name=titlepage-even page-width=8.5in page-height=11in 
margin-top=0.5in margin-bottom=0.5in margin-left=1in 
margin-right=1info:region-body