[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Native line numbers, final testing

From: James Cloos
Subject: Re: Native line numbers, final testing
Date: Sun, 09 Jul 2017 16:16:23 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)


Having re-compiled master, I tried out the native line numbers, by
chance in a buffer in variable-pitch-mode.  It looks like the display
uses SPACE (U+20) or SPACE's width to offset the digits.

It would look better if it used FIGURE SPACE (U+2007) or FIGURE SPACE's
width instead.  Then the line numbers would, err, line up.

The code might need to check whether the current face provides a glyph

Alternatively, use the width of one of the digits (such as DIGIT EIGHT)
to determine how many pixels to skip.

Otherwise, it looks and works great.

James Cloos <address@hidden>         OpenPGP: 0x997A9F17ED7DAEA6

reply via email to

[Prev in Thread] Current Thread [Next in Thread]