fonts - How to get the height of the emacs mode line? -
actually, want generate xpm-format image , draw on mode line using display
attribute of text string. however, height of mode line turns different result of different fontset.
that means need know height of emacs mode line , use generate corresponding size of xpm-format image, generated image can fill mode line totally.
my question showing title, how can know (finally rendered) height of mode line after applying specific fontset?
i have searched emacs documentation via apropos
, found is:
can use font-info
function font height in current frame. guess maybe can want based on this, although unlucky until now.
and, cannot find function related mode line height.
try
(- (elt (window-pixel-edges) 3) (elt (window-inside-pixel-edges) 3))
Comments
Post a Comment