Page 1 of 1

Docbook available fonts

Posted: Fri May 06, 2011 12:38 pm
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

Re: Docbook available fonts

Posted: Fri May 06, 2011 6:08 pm
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

Re: Docbook available fonts

Posted: Sat May 07, 2011 7:52 am
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.