GNU bug report logs -
#31702
26.1; Effective font height is different from set value
Previous Next
Reported by: Carlos Piat <carlosjosepita <at> gmail.com>
Date: Mon, 4 Jun 2018 03:15:01 UTC
Severity: normal
Tags: notabug
Found in version 26.1
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 31702 <at> debbugs.gnu.org (full text, mbox):
Ok, I think I now understand the problem a bit better:
1. Changing the height from 102 to 109 sets the effective height to
105. This size is the same of that of the font which both the font
select dialog and gnome-terminal show for "Hack 11" (I have counted
pixel by pixel in comparative xmag shots).
2. From 110 to 116 the effective size is 113 as stated above. This is
the size corresponding to "Hack 12" in the font selector and in
gnome-terminal.
3. 117 rounds up to 120, etc.
So I guess it's just a different way of rounding up to the next
available size (I don't know which is the precision of the underlying
font renderer but I assume it's not a tenth of a point... from the
numbers above it seems to be about 6 or 7 tenths of a point).
But:
* The fact that setting the font from the font dialog offered in the
menu bar of emacs itself doesn't set a font with the height that was
previewed in the dialog is a bit disturbing.
* Besides, since the height attribute documentation explicitly states
that the it is measured in tenths of a point, the rendering of a font
with height P * 10 in emacs should exactly match the rendering of the
same font with size P in the system. There is no "rounding up" excuse
for the mismatch between 110 and 11, for example.
This bug report was last modified 5 years and 201 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.