mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-26 15:21:51 -08:00
(PIXEL_TO_POINT): Clarify usage in comment.
This commit is contained in:
parent
3a8105cd57
commit
c4e8ee5e6f
1 changed files with 5 additions and 2 deletions
|
|
@ -477,8 +477,11 @@ struct font_bitmap
|
|||
on resolution DPI. */
|
||||
#define POINT_TO_PIXEL(POINT, DPI) ((POINT) * (DPI) / PT_PER_INCH + 0.5)
|
||||
|
||||
/* Return a point size (double) corresponding to POINT size (integer)
|
||||
on resolution DPI. */
|
||||
/* Return a point size corresponding to POINT size (integer)
|
||||
on resolution DPI. Note that though point size is a double, we expect
|
||||
it to be rounded to an int, so we add 0.5 here. If the desired value
|
||||
is tenths of points (as in xfld specs), then the pixel size should
|
||||
be multiplied BEFORE the conversion to avoid magnifying the error. */
|
||||
#define PIXEL_TO_POINT(PIXEL, DPI) ((PIXEL) * PT_PER_INCH / (DPI) + 0.5)
|
||||
|
||||
/* Ignore the difference of font pixel sizes less than or equal to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue