> From: Chang Xiaoduan <dr...@sina.com> > Cc: help-emacs-windows@gnu.org > Date: Thu, 12 Sep 2024 10:14:23 +0800 > > > Windows doesn't consider the 'light weight to be a standard weight of > > a font family, it only supports regular, bold, italic, and > > bold-italic. > > I am a little confused by this, since in Windows' fonts management > interface, there are fonts of different weights, light among them. Then, > it is weird that it does not support light as a standard weight. Could > you point me to some documentation or code about this? That would be a > lot of help.
I'm not aware of any documentation. What I know is that Emacs calls the EnumFontFamiliesEx API to get the list of all installed fonts that belong to a given family (in your case Cascadia Code), and all it gets back as result are the above 4 variants, even if other weights are also installed. If someone knows how to make this process better to include other weights (without making it mush slower: e.g., examining all the installed fonts on the system would be unacceptably slow), please tell, because improvements in this area will certainly be welcome.