* NS font case sensitivity
@ 2009-06-18 13:13 Jason Rumney
2009-06-18 16:33 ` Glenn Morris
2009-06-19 5:04 ` Adrian Robert
0 siblings, 2 replies; 5+ messages in thread
From: Jason Rumney @ 2009-06-18 13:13 UTC (permalink / raw)
To: Emacs Devel
I just now came across this snippet in font.c:
Lisp_Object alters
= Fassoc_string (val, Vface_alternative_font_family_alist,
#ifndef HAVE_NS
Qt
#else
Qnil
#endif
);
Is there a good reason why the entries in
face-alternative-font-family-alist need to be case sensitive on NS when
they are not on other platforms?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: NS font case sensitivity
2009-06-18 13:13 NS font case sensitivity Jason Rumney
@ 2009-06-18 16:33 ` Glenn Morris
2009-06-19 5:04 ` Adrian Robert
1 sibling, 0 replies; 5+ messages in thread
From: Glenn Morris @ 2009-06-18 16:33 UTC (permalink / raw)
To: Emacs Devel
For reference, this is bug #2526.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: NS font case sensitivity
2009-06-18 13:13 NS font case sensitivity Jason Rumney
2009-06-18 16:33 ` Glenn Morris
@ 2009-06-19 5:04 ` Adrian Robert
2009-06-19 5:24 ` Jason Rumney
1 sibling, 1 reply; 5+ messages in thread
From: Adrian Robert @ 2009-06-19 5:04 UTC (permalink / raw)
To: emacs-devel
Jason Rumney <jasonr <at> gnu.org> writes:
> Is there a good reason why the entries in
> face-alternative-font-family-alist need to be case sensitive
> on NS when they are not on other platforms?
Font family matching is case sensitive in the API used
by the NS font driver.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: NS font case sensitivity
2009-06-19 5:04 ` Adrian Robert
@ 2009-06-19 5:24 ` Jason Rumney
2009-06-19 20:06 ` Adrian Robert
0 siblings, 1 reply; 5+ messages in thread
From: Jason Rumney @ 2009-06-19 5:24 UTC (permalink / raw)
To: Adrian Robert; +Cc: emacs-devel
Adrian Robert wrote:
> Jason Rumney <jasonr <at> gnu.org> writes:
>
>
>> Is there a good reason why the entries in
>> face-alternative-font-family-alist need to be case sensitive
>> on NS when they are not on other platforms?
>>
>
> Font family matching is case sensitive in the API used
> by the NS font driver.
>
I'm not sure that is relevant here. This variable (actually it is
exposed to lisp as face-font-family-alternatives) is only used when it
has already been determined that the named font does not exist in the
system, so for example on other platforms if some lisp code requests the
font "Sans Serif" or "sans serif" and a font by that name is not
defined, "helv", "helvetica", "arial" and "fixed" are tried as
alternatives. But on NS, that list will only be used if the lisp code
requests that font with matching case.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: NS font case sensitivity
2009-06-19 5:24 ` Jason Rumney
@ 2009-06-19 20:06 ` Adrian Robert
0 siblings, 0 replies; 5+ messages in thread
From: Adrian Robert @ 2009-06-19 20:06 UTC (permalink / raw)
To: Jason Rumney; +Cc: emacs-devel
On Jun 19, 2009, at 8:24 AM, Jason Rumney wrote:
> Adrian Robert wrote:
>> Jason Rumney <jasonr <at> gnu.org> writes:
>>
>>
>>> Is there a good reason why the entries in face-alternative-font-
>>> family-alist need to be case sensitive
>>> on NS when they are not on other platforms?
>>>
>>
>> Font family matching is case sensitive in the API used
>> by the NS font driver.
>>
>
> I'm not sure that is relevant here. This variable (actually it is
> exposed to lisp as face-font-family-alternatives) is only used when
> it has already been determined that the named font does not exist
> in the system, so for example on other platforms if some lisp code
> requests the font "Sans Serif" or "sans serif" and a font by that
> name is not defined, "helv", "helvetica", "arial" and "fixed" are
> tried as alternatives. But on NS, that list will only be used if
> the lisp code requests that font with matching case.
Logically, this behavior is consistent with family names being case
sensitive -- the user customizing face-font-family-alternatives may
want to specify different alternative lists for different family
names, even if they differ only in their case. But practically, I
doubt the situation will come up in that way -- so we might as well
remove the ifdef to streamline the code if that is best.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-06-19 20:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-18 13:13 NS font case sensitivity Jason Rumney
2009-06-18 16:33 ` Glenn Morris
2009-06-19 5:04 ` Adrian Robert
2009-06-19 5:24 ` Jason Rumney
2009-06-19 20:06 ` Adrian Robert
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.