emacs-devel
[Top][All Lists]
Advanced

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

Re: HTML-Info design


From: Lars Ingebrigtsen
Subject: Re: HTML-Info design
Date: Mon, 29 Dec 2014 17:32:52 +0100
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> Fortunately, such a capability already exists, I think: see the
> function 'font-get-glyphs'.  Does it solve your problem?  If not, what
> API would you like to have?

I've just looked at the doc string of that function briefly, and I'm not
sure how I would use that to do filling.  I need to know the width a
text will take in the buffer, so that I know when to break the line and
start a new one.  Is it now possible to write a function like
`pixel-region-width' that would say how much space the text will occupy?

Given that the font used for that text is variable-width (and the region
possibly uses many fonts).  If that's possible, I'm all for moving eww
to use a proportional font by default.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



reply via email to

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