[Top][All Lists]

[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, 26 Jan 2015 17:52:21 +1100
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> Try this instead:
> (defun pixel-region-width (start end)
>   (let ((width 0))
>     (while (< start end)
>       (let ((glyphs (font-get-glyphs (font-at start) start (1+ start))))
>       (setq width (+ width (aref (car glyphs) 4)))) ;;   ^^^^^^^^^^


Thanks for the help.  :-) I'll start experimenting with making shr using
proportional fonts for the text and see how far I get.  A new branch
will probably appear in the Emacs repo tomorrowish...

(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]