Docbook available fonts

Here should go questions about transforming XML with XSLT and FOP.
alendoxy
Posts: 5
Joined: Fri May 06, 2011 12:08 pm

Docbook available fonts

Post by alendoxy »

I'm using oxygen 12.1 on my MAC OS 10.6.7.
I'm trying to change font on my Docbook document. I configured fop-config.xml with <fonts><auto-detect></auto-detect></fonts>.
I would like to understand where docbook trasformation get fonts because if I put in body.font.family 'arial' in place of serif the trasformation returns # in place of characters, if I put 'Arial' that exits in /Library/Fonts the transformation returns error "Couldn't find hyphenation pattern it". If I put "Arial Unicode MS" (that doesn't exists in /Library/Fonts) it works but it doesn't transform bold and italic ...

So my questions are:
- where are fonts discovered with with auto-detect?
- what it means hyphenation pattern, how can provide it?
thanx
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Docbook available fonts

Post by adrian »

Hello,

The fonts are searched in the default paths of the operating system(printenv PATH in a terminal).
Details here:
http://xmlgraphics.apache.org/fop/0.95/ ... autodetect

The hyphenation patterns represents the support for hyphenating words(divide or connect them with a hyphen). This is not mandatory and rarely used.
Details here:
http://xmlgraphics.apache.org/fop/0.95/hyphenation.html

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
alendoxy
Posts: 5
Joined: Fri May 06, 2011 12:08 pm

Re: Docbook available fonts

Post by alendoxy »

Thanks a lot Adrian, I put in fop-config.xml
<directory>/Library/Fonts</directory>
that is the place my operating system mantains fonts and it works.
Post Reply