emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with narrow vs condensed fonts


From: Stefan Monnier
Subject: Re: Problem with narrow vs condensed fonts
Date: Mon, 25 Feb 2008 23:48:37 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>> > But, as you changed the numeric value of of `normal' weight
>> > from 100 to 101, ftfont_list doesn't include regular weight
>> > font (most of ttf has regular weight).

>> Why does it only accept an exact-match?

> Because that's the spec I desided for that API of (struct
> font_driver *)->list.  I wanted to distinguish required
> (i.e. mandatory) font-spec and preferred font-spec.  `list'
> returns fonts matching with a required spec, and
> font-selection routine find a font besting matching with
> preferred spec from them.

> So, we should not give FONT-SPEC containing just preferred
> specs to `list'.

Right: the defaulting to "normal" should be done when the value is later
used as a preferred spec, but a wildcard should be used instead if the
value is later used as an exact spec.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]