Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set global font-family in Apache FOP?

This is what I've used before:

 <fo:block font-family="Tahoma">Text</fo:block>

How can I specify that "Tahoma" is the font-family for the entire document?

I am looking for an equivalent of CSS's

body {
  font-family: "Tahoma";
}
like image 707
Luce Ian Avatar asked Jul 19 '13 08:07

Luce Ian


1 Answers

If you want to set default font for whole document you can set it in fo:root. It should get inherited by every child-node without specified font-family.

<fo:root font-family="Tahoma">
    <!-- rest of document -->
</fo:root>
like image 63
Michał Krzemiński Avatar answered Nov 08 '22 14:11

Michał Krzemiński