GNU bug report logs -
#65803
29.1; Noto Sans Mono CJK JP has doubled-width on Windows
Previous Next
Full log
Message #59 received at 65803 <at> debbugs.gnu.org (full text, mbox):
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: Werner LEMBERG <wl <at> gnu.org>, 65803 <at> debbugs.gnu.org, shingo.fg8 <at> gmail.com
> Date: Sat, 09 Sep 2023 21:42:14 +0800
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > How does one know, using the OpenType specification info, whether a
> > given font is fixed-pitch or proportional? I seem to be unable to
> > find this in the spec, but maybe I need new glasses.
>
> This information is not available within the font file, at least in the
> TrueType specification which is the basis for OpenType. Programs which
> read TrueType fonts are obliged to judge for themselves, customarily by
> taking measurements of each font's glyphs, or by searching for ``Mono''
> within the font's family name. I don't know which approach Windows
> employs.
MS-Windows seems to report it in the data it holds about the font.
See the lfPitchAndFimily attribute in the LOGFONT structure:
https://learn.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-logfontw
and the tmPitchAndFamily attribute of the TEXTMETRIC structure:
https://learn.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-textmetricw
I have no idea how these attributes are determined by Windows.
This bug report was last modified 1 year and 280 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.