[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)))) ;; ^^^^^^^^^^
D'oh.
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/
- Re: HTML-Info design, Lars Ingebrigtsen, 2015/01/24
- Re: HTML-Info design, Eli Zaretskii, 2015/01/25
- Re: HTML-Info design, Lars Ingebrigtsen, 2015/01/25
- Re: HTML-Info design, Eli Zaretskii, 2015/01/26
- Re: HTML-Info design,
Lars Ingebrigtsen <=
- Re: HTML-Info design, Lars Ingebrigtsen, 2015/01/26
- Re: HTML-Info design, Eli Zaretskii, 2015/01/27
- Re: HTML-Info design, Lars Ingebrigtsen, 2015/01/27
- Re: HTML-Info design, Eli Zaretskii, 2015/01/28
- Pixel-based display functions (was: HTML-Info design), Lars Ingebrigtsen, 2015/01/27
- Re: Pixel-based display functions, Thien-Thi Nguyen, 2015/01/28
- Re: Pixel-based display functions, Eli Zaretskii, 2015/01/28
- Re: Pixel-based display functions, Ivan Shmakov, 2015/01/28
- Re: Pixel-based display functions, Lars Ingebrigtsen, 2015/01/28
- Re: Pixel-based display functions, Stefan Monnier, 2015/01/28