Apache FOP Code fix

Code fix
by
JM
:

Bugfix: Fixed a division by zero problem in TTFReader and improved the detection
of the capHeight and xHeight font metric values for TrueType fonts.