[Mac] Improve TextLayout backend to better match its Gtk counterpart

The line height calculations and newline behavior now match the Gtk backend