[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: put the right amount of images on one line
- From: Katsumi Yamaoka <yamaoka@xxxxxxx>
- Date: Thu, 12 Jan 2012 08:25:22 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 11719
- References: <87fwfnpmny.fsf@xxxxxxxxxxx>
In [emacs-w3m : No.11717] jidanni@xxxxxxxxxxx wrote:
> Even with the hint 'width="125"', emacs-w3m just uses the width of the
> word "staticmap" to guess how many of the images will fit on one line,
> [staticmap] [staticmap] [staticmap] [staticmap] [staticmap] [staticmap]
> [staticmap] [staticmap] [staticmap] [staticmap]
> <img width="125"
That is w3m's work, not emacs-w3m's. When running `w3m -halfdump',
that emacs-w3m uses when rendering a page, w3m doesn't know what
number of letters corresponds to `width="125"'. IOW, emacs-w3m
informs `w3m -halfdump' about the window width in columns,
but w3m doesn't know the window width in pixels.
We have a little help for it: `w3m-pixels-per-character' Try
setting it to a number that is the pixel width of a letter that
Emacs uses (e.g. 7 for the 7x14 fixed font). It may make it
slightly better or may not help if you use a proportional font.
 `w3m-fill-column' controls it.