Apache FOP Code update

Code update
by
JM
:

Additional checks to detect text overflows. The overflow property is now properly
handled where applicable.