Mathias Dahl <[EMAIL PROTECTED]> writes:
>> I think that `frame-char-height' and `frame-char-width' is what you
>> are looking for.
> That seems to be exactly what I wanted. Strange I missed it. I will
> try using that instead and see how it works.
It worked very well and feels much better than
"Ehud Karni" <[EMAIL PROTECTED]> writes:
> On 06 May 2005 17:40:41 +0200, Mathias Dahl wrote:
>>
>> (defun window-height-pixels ()
>> (let ((line-pixel-height-ratio (/ (+ (frame-pixel-height) 0.0)
>> (frame-height
>> (truncate (* (window-height) line-pixel-height-ratio
>>
>> (defun
On 06 May 2005 17:40:41 +0200, Mathias Dahl wrote:
>
> (defun window-height-pixels ()
> (let ((line-pixel-height-ratio (/ (+ (frame-pixel-height) 0.0)
> (frame-height
> (truncate (* (window-height) line-pixel-height-ratio
>
> (defun window-width-pixels ()
> (let ((column-pixel-widt
Kevin Rodgers <[EMAIL PROTECTED]> writes:
> Mathias Dahl wrote:
> > (defun window-height-pixels ()
> > (let ((line-pixel-height-ratio (/ (+ (frame-pixel-height) 0.0)
> > (frame-height
> > (truncate (* (window-height) line-pixel-height-ratio
> > (defun window-width-pixels ()
> > (l
Mathias Dahl wrote:
(defun window-height-pixels ()
(let ((line-pixel-height-ratio (/ (+ (frame-pixel-height) 0.0)
(frame-height
(truncate (* (window-height) line-pixel-height-ratio
(defun window-width-pixels ()
(let ((column-pixel-width-ratio (/ (+ (frame-pixel-width) 0.0)
(frame-
Mathias Dahl <[EMAIL PROTECTED]> writes:
> And even better:
>
> (defun window-height-pixels ()
> (let ((line-pixel-height-ratio (/ (+ (frame-pixel-height) 0.0)
> (frame-height
> (truncate (* (window-height) line-pixel-height-ratio
>
> (defun window-width-pixels ()
> (let ((colum
Mathias Dahl <[EMAIL PROTECTED]> writes:
> Which means I can use this:
>
> (defun window-height-pixels ()
> (let ((line-pixel-height-ratio (/ (+ (frame-pixel-height) 0.0)
> (frame-height)))
> (column-pixel-width-ratio (/ (+ (frame-pixel-width) 0.0)
> (frame-width
> (ftruncat
Stefan Monnier <[EMAIL PROTECTED]> writes:
> > Is it possible to calculate an Emacs window's size in pixels?
> > `window-height' and `window-width' returns lines and columns.
>
> There's frame-pixel-height in Emacs-CVS.
> There's also window-pixel-edges if you care about windows rather
> than fra
> Is it possible to calculate an Emacs window's size in pixels?
> `window-height' and `window-width' returns lines and columns.
There's frame-pixel-height in Emacs-CVS.
There's also window-pixel-edges if you care about windows rather
than frames.
Stefan
__
Mathias Dahl <[EMAIL PROTECTED]> writes:
> Is it possible to calculate an Emacs window's size in pixels?
> `window-height' and `window-width' returns lines and columns.
>
> I guess this have to do with the frame's default font or
> something. Having two functions, `window-height-pixels' and
> `win
10 matches
Mail list logo