Re: tex4ht: wrong image sizes



On Feb 26, 4:20 pm, Eitan M Gurari <gur...@xxxxxxxxxxxxxxxxxx> wrote:
Also, I noticed that the image size is specified in points
Doesn't the size of the "pt" unit depend
on things like the screen resolution?

No.

I haven't actually tried changing Windows's DPI settings because it
would have required installing some new fonts, but according to this
article, the size of "pt" does depend on it:

http://kb.mozillazine.org/Layout.css.dpi

The article explicitly says that a [printer] point is an absolute
unit:

CSS can use a variety of units for specifying dimensions. These units
are classified as either absolute or relative. Absolute units (inches,
centimeters, millimeters, points, and picas) ...

and that the display should calculate how many pixels are to be used for each point

This preference determines what DPI should be used for calculating
the dimensions of elements set using absolute width units. Some
examples: At 96dpi, a 12-point font is displayed with 16 pixels in
size (calculated as 12/72 = 16/96) ...


But doesn't this mean that an image whose size is specified as 200pt
in the attributes of the img tag will be 200/72*96 = 266 pixels wide
when Windows uses the 96 DPI setting, and 200/72*120 = 333 pixels wide
when it uses the 120 DPI setting? So the size of the image (in
pixels), depends on the screen resolution (or Windows settings)? This
would make it impossible to avoid image resizing on at least some
computers if the image size is specified in points. Which, of course,
can be a desirable thing for as long as the browser uses a decent
image sizing algorithm (i.e. not nearest neighbour).
.



Relevant Pages

  • RE: XP - Screen Settings
    ... Slide 'Screen Resolution' right to increase number of pixels - decreases ... size of fonts and 'zooms' out so you see more information at smaller scale. ...
    (microsoft.public.windowsxp.customize)
  • Re: DpiX does not change with screen resolution
    ... > DpiX and DpiY of the screen seem to be always 96 even when I changed the ... I thought the number of pixels per inch change when I ... > change screen resolution ... Dpi changes when you select small fonts vs. large fonts. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: What do I do to my web site for MAC users be able to click on
    ... fonts, and design techniques. ... Run the Design Checker in Publisher and see what it finds are design ... The next problem to fix is the fonts you have chosen to use. ... +/- pixels wide, then in my opinion that is a major mistake. ...
    (microsoft.public.publisher.webdesign)
  • Re: What do I do to my web site for MAC users be able to click on
    ... fonts, and design techniques. ... Run the Design Checker in Publisher and see what it finds are design ... The next problem to fix is the fonts you have chosen to use. ... +/- pixels wide, then in my opinion that is a major mistake. ...
    (microsoft.public.publisher.webdesign)
  • Re: What do I do to my web site for MAC users be able to click on
    ... You should design and test your Publisher webpages so that they work in both ... The next problem to fix is the fonts you have chosen to use. ... Options and on the General Tab change the Measurement units to pixels from ...
    (microsoft.public.publisher.webdesign)