Dear David, my sincere apologies for missing your mail-- fortunately the most recent update breakage reminded me to check the bug tracker again.
>> Emacs used the "Purisa" font as default font. This font has the same Font >> Foundry as "Terminus (TTF)" but is a "Comic Sans"-like special-purpose font >> and unsuitable for normal operations. > > For me, it is Fantasque Sans Mono, but I agree it is not selecting the correct > font. The selected font seems non-deterministic, possibly state > dependent. After some various choices of Mono font, I ended up with > > Can you duplicate the problem for other fonts? I tried 4 or 5 other > monospaced fonts and they all seemed to work, at least in a fresh "emacs > -Q". I had no trouble with the other monospaced fonts that I tried. > I observed that choosing some non-existing font name (e.g. FooBar) had > more or less the same effect. So maybe the issue is just that emacs > cannot find "Terminus (TTF)". A wild guess would be the parens in the > name causing the problem. My working assumption at the time of my investigation was that default font selection searches for fonts with some hardcoded default values and only applies some user-requested properties after it has already selected the font. Basically, font selection (for the default font only-- other fonts take a different code path) seems to follow the following steps, as far as I understood it: - Set hardcoded default font settings, including: - weight = regular - slant = ...? (probably also regular) - Apply user preferences for: - font foundry - font family - Search for a font in the current font foundry that satisfies the current font family, weight, and slant requirements - Apply user preferences for: - weight - slant - Return the font This is greatly simplified-- the search step returns a list of possible matches, for instance, and there are several selection heuristics involved that I don't remember much about. If my interpretation is correct, then another workaround could be to change "Terminus (TTF)" to report a "regular" weight that is identical to its "medium" weight, but I have not had the time to figure out how to try this. > Apologies if this is covered already in your extensive report. Apologies for the verbosity of my earlier report; had I understood the problem fully, I would have kept it shorter... All the best, -- Christoph
signature.asc
Description: PGP signature