emacs-devel
[Top][All Lists]
Advanced

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

Re: Pixel-based display functions


From: Stefan Monnier
Subject: Re: Pixel-based display functions
Date: Thu, 05 Feb 2015 09:01:38 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>       (vertical-motion (cons (/ PIXELS (frame-char-width)) 0))

> right?  That won't work, since `frame-char-width' apparently does its
> calculation based on "On a graphical screen, the width is the standard
> width of the default font.", and we have lots of different fonts in the
> buffer.

IIRC this "standard width of the default font" matches the unit assumed
by `vertical-motion', so it should indeed work (IOW, vertical-motion
will do the equivalent of multiplying its arg by (frame-char-width)
internally to get a pixel size).


        Stefan



reply via email to

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