Fixed multiline text serialization, added support for font-weight and font-style

The mapped callback in the serializer for 'text' had mismatched arguments, so the line index wasn't getting passed through.

Also, I beefed-up the support for detecting font styles within text tags.

Thanks for this library!