Fixed bug in handling of font tag, closes #292

A font tag would always take the intValue of the "size" attribute, even if it was not present. This would cause it to be set to 0, even if the size was set by a "style" attribute before.