Vincent Hennebert | 1 Feb 2007 10:06
Favicon

Re: Embedding font triplets w/ a single TTF file

Hi Daniel,

> Are there even any fonts which both support a large subset of unicode
> and have bold and italic variants?  I went searching a while back and
> found nothing.

I doubt you will find any free font with both large Unicode support and
several variants. You might want to give a try to FreeFont
(http://www.nongnu.org/freefont/), which have a fairly reasonable
support of Unicode, although not identical among the variants. I guess
you can find commercial fonts, too.

Otherwise it should be rather easy to build a large Unicode support from
several different fonts, each one supporting some given subset (say, a
latin one, a cyrillic, a japanese, etc.). If you stick to Times-like
shapes you should end up with a not too non-uniform set.

> The underlying problem here is that FOP's PDF renderer can't substitute
> fonts when the specified font doesn't exist (the Java2D renderer does
> this automatically as a side-effect of Java.)  As a result of this
> limitation, developers get forced to include some huge font like "Arial
> Unicode MS", even though there are enough fonts on their operating
> system that they don't need to use this font in any other application.

Actually both the PDF renderer and the Java2D one do the same thing,
that is fall back to default fonts. It's just that for PDF those default
fonts are the well-known base 14 fonts, which support only a limited
subset of Unicode (the latin range, basically). For Java2D those are the
 Lucida fonts with a larger range of glyphs.

(Continue reading)

Xavier Ottolini | 1 Feb 2007 11:34

Re: FOP Problem

Thanks Jeremias,

I installed j2sdk1.4.2_13.
I put the jars

- xml-apis-1.3.04.jar
- xalan-2.7.0.jar
- xercesImpl-2.7.1.jar
- serializer-2.7.0.jar

in JAVA_HOME/jre/lib/endorsed.

The message is not displayed any more. But another message is now 
displayed :

/usr/j2sdk1.4.2_13/bin/java -Djava.awt.headless=true
-classpath /home/srv/fop-0.93/build/fop.jar:
/home/srv/fop-0.93/lib/xalan-2.7.0.jar:
/home/srv/fop-0.93/lib/xercesImpl-2.7.1.jar:
/home/srv/fop-0.93/lib/avalon-framework-4.2.0.jar:
/home/srv/fop-0.93/lib/batik-all-1.6.jar:
/home/srv/fop-0.93/lib/serializer-2.7.0.jar:
/home/srv/fop-0.93/lib/activation.jar:
/home/srv/fop-0.93/lib/commons-io-1.1.jar:
/home/srv/fop-0.93/lib/xmlgraphics-commons-1.1.jar:
/home/srv/fop-0.93/lib/xml-apis-1.3.02.jar:
/home/srv/fop-0.93/lib/commons-logging-1.0.4.jar:
/home/srv/classes/ embedding.ExampleXML2PDF

Preparing...
(Continue reading)

Florent Georges | 1 Feb 2007 12:14
Picon
Favicon

Cell overflow: word too large

  Hi

  I just saw a strange overflow in a table cell.  The cell
contains two words, and the second word seems to being not
put on a new line if it is larger than the column width.
Here is a use case.  The second cell is a little bit less
large, then both words are kept on a single line, while in
the first cell the second word goes on a new line:

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  <fo:layout-master-set>
    <fo:simple-page-master master-name="main">
      <fo:region-body margin="25pt"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="main">
    <fo:flow flow-name="xsl-region-body">
      <fo:table font-family="Helvetica" font-size="8pt"
                width="239.75pt" table-layout="fixed">
        <fo:table-column column-width="121pt"/>
        <fo:table-column column-width="118.75pt"/>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell border-style="solid" border-width="0.25pt">
              <fo:block start-indent="3pt" end-indent="3pt"
                >NIEUWE AUTOMOBIELMAATSCHAPPIJ</fo:block>
            </fo:table-cell>
            <fo:table-cell border-style="solid" border-width="0.25pt">
              <fo:block start-indent="3pt" end-indent="3pt"
                >NIEUWE AUTOMOBIELMAATSCHAPPIJ</fo:block>
(Continue reading)

Cheffe | 1 Feb 2007 13:26
Picon
Favicon

Re: Cell overflow: word too large


Hi Florent,
Since 0.93 on <fo:block> the attribute wrap-option='wrap' is supported i
think. Give it a try

W3C:
7.15.13 "wrap-option"
XSL Definition:

Value:  no-wrap | wrap | inherit 
Initial:  wrap 
Applies to:  fo:block, fo:inline, fo:page-number, fo:page-number-citation 
Inherited:  yes 
Percentages:  N/A 
Media:  visual 

Values have the following meanings:

no-wrap 
No line-wrapping will be performed.

In the case when lines are longer than the available width of the
content-rectangle, the overflow will be treated in accordance with the
"overflow" property specified on the reference-area.

wrap 
Line-breaking will occur if the line overflows the available block width. No
special markers or other treatment will occur. 

Specifies how line-wrapping (line-breaking) of the content of the formatting
(Continue reading)

Johan Johansson | 1 Feb 2007 14:03
Picon

render afp with images

Hi,

I'm not sure if it even is avaible yet in the current version (running 0.93). 
But if so, does any have any examples to look at? <fo:external-graphic> does not do any good anyway :-)

Best regards
IDATA, Johan Johansson
Sweden
Xavier Ottolini | 1 Feb 2007 18:17

Re: FOP Problem

Hi,

With a Red Hat Linux, I had to install the package RedHat  
|xorg-x11-deprecated-libs|.

Since I use the JDK 1.4, setting the following system property in the 
JVM command line was enough :
-Djava.awt.headless=true

Now the problem is fixed !

Thanks for your help !

Best Regards,

Xavier

Xavier Ottolini a écrit :
> Thanks Jeremias,
>
> I installed j2sdk1.4.2_13.
> I put the jars
>
> - xml-apis-1.3.04.jar
> - xalan-2.7.0.jar
> - xercesImpl-2.7.1.jar
> - serializer-2.7.0.jar
>
> in JAVA_HOME/jre/lib/endorsed.
>
(Continue reading)

Jim Tivy | 1 Feb 2007 21:02
Favicon

RE: Feature and Bug

Hi Chris

Thanks for the tip - regarding the use of a non-existent region for even
pages.  I will try it the next time I go into this.  Is the use of the
non-existent region or the use of an zero length body page allowed by the FO
spec or are these just features of .93.

Note, I have replied this time to the Fop users mail list - I must have
mis-interpretted because when I re-read the descriptions of the lists the
distinction is clear.

cheers
Jim

> -----Original Message-----
> From: Chris Bowditch [mailto:bowditch_chris <at> hotmail.com]
> Sent: Thursday, February 01, 2007 12:59 AM
> To: fop-dev <at> xmlgraphics.apache.org
> Subject: Re: Feature and Bug
>
>
> Jim Tivy wrote:
>
> > Hi Folks
> >
> > I am new to this community.  Thanks to all the FOP contributors
> to getting
> > this out.
> >
> > We are trying to deploy a formatting solution to a customer.
(Continue reading)

Florent Georges | 1 Feb 2007 22:03
Picon
Favicon

Re: Cell overflow: word too large

Cheffe wrote:

> Since 0.93 on <fo:block> the attribute wrap-option='wrap' is
> supported i
> think. Give it a try

  Thank you for the response.  Unfortunately, that doesn't solve my
problem.  Actually, it is not surprising, as 'wrap' is the default
value in one hane, and in the other hand the problem arise only in a
specific case (one cell is well formated, but the other is not, where
the word to wrap is longer than the cell width).

  Regards,

--drkm

	

	
		
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo!
Questions/Réponses 
http://fr.answers.yahoo.com
Thomas Zastrow | 1 Feb 2007 22:30
Picon
Favicon

Table-question

Hello,

I'm new to the FOP and I think it is a realy great tool! If I ask stupid 
questions, please be patient ;-)

I played around with the examples in the FOP-distribution. But I have 
one problem: If I set the style of a page to two-columns 
(column-count="2") and there is a table on that page which is bigger 
than one of the columns, the text of the second column flows into the 
table and not around it. I put my example online:

http://www.thomas-zastrow.de/temp/normal.pdf

The PDF is 29 kb, the table I mean is on  page  2.

It would be nice if anyone can give me a tip what I have to do that the 
text flows in both columns around the table?

Thank you very much!

Best regards,

Tom

-----------
http://www.opendtp.de
Andreas L Delmelle | 1 Feb 2007 22:52
Picon

Re: Cell overflow: word too large

On Feb 1, 2007, at 12:14, Florent Georges wrote:

>   I just saw a strange overflow in a table cell.  The cell
> contains two words, and the second word seems to being not
> put on a new line if it is larger than the column width.
> Here is a use case.  The second cell is a little bit less
> large, then both words are kept on a single line, while in
> the first cell the second word goes on a new line:
> <snip />
> Is there a way to force
> breaking line even if the word is too large for the cell?

The known workaround is to insert zero-width breaking spaces in the  
word at certain points.
Activating hyphenation should also do the trick, IIC.

HTH!

Andreas

Gmane