Core Text renderer vs. underlining

63 views
Skip to first unread message

Carl Jacobsen

unread,
Sep 4, 2012, 5:54:49 AM9/4/12
to vim...@googlegroups.com
I've just switched over to snapshot 65, and turned on the Core Text
renderer, and I notice that it handles underlined text differently
than the Cocoa renderer -- when underlined text starts on one line
and ends on another, the Core Text renderer is underlining the
leading white space on the intervening lines, where the Cocoa
renderer doesn't.

A picture would probably explain better:

http://carlrj.com/pics/MacVim_underline_trouble.png

I like the way the Cocoa renderer is displaying the text quite a
bit more, but I can imagine there being plausible arguments for
either way being more correct. Comments?

Thanks,
Carl

björn

unread,
Sep 6, 2012, 10:35:23 AM9/6/12
to vim...@googlegroups.com
The Cocoa renderer does some kind of trickery to control the
underlining. The way the Core Text renderer underlines is how it
works on other GUI ports of Vim. It may look uglier but I think I'll
leave it that way in order to keep things uniform and to avoid
hackery.

Björn

Ben Schmidt

unread,
Sep 8, 2012, 2:14:20 AM9/8/12
to vim...@googlegroups.com, björn
Yeah, I think that's better.

If you want fancy non-underlining of spaces, your Vim syntax file, or
Vim itself, should do it, not MacVim.

Ben.



Reply all
Reply to author
Forward
0 new messages