all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problem with narrow vs condensed fonts
@ 2008-02-18 22:21 Stefan Monnier
  2008-02-18 23:05 ` Lennart Borgman (gmail)
  2008-02-24 21:32 ` Andreas Schwab
  0 siblings, 2 replies; 21+ messages in thread
From: Stefan Monnier @ 2008-02-18 22:21 UTC (permalink / raw)
  To: emacs-devel


My Emacs by default fails to show me the variable-pitch face.
I tracked it down to the following problem:

My default font is misc-fixed-semicondensed-13, and on my system I have
some adobe-helvetica-narrow fonts.  Since semicondensed=87 and
narrow=75 (and normal is 100), Emacs decided to prefer
adobe-helvetica-narrow over adobe-helvetica-normal.  But by the time
this choice is made we don't have XLFD font names any more but font
entities, so the spec just say "swidth=75" and when we try to open the
font that we just listed this fails because 75 is translated back to
"condensed" rather than to "narrow".

In essence font-swidth-table needs to be bijective but isn't.
By changing "narrow"'s setting from 75 to 76 (so it doesn't get the
same value as any other any more) the problem disappears (and another
problem shows up: I now get this narrow font where I'd prefer the
normal font since helvetica is already pretty narrow).

Does this make sense?  Should we fix font-swidth-table and friends (and
change internal-set-font-style-table to check that the tables are indeed
bijective)?


        Stefan




^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: Problem with narrow vs condensed fonts
@ 2008-02-25  9:16 Angelo Graziosi
  0 siblings, 0 replies; 21+ messages in thread
From: Angelo Graziosi @ 2008-02-25  9:16 UTC (permalink / raw)
  To: emacs-devel, monnier, handa

Could this thread be related to these observations [1], [2]?


Cheers,
    Angelo.


---
[1] http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg02128.html
[2] http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg02197.html

Facesti come quei che va di notte,
che porta il lume dietro e se' non giova,
ma dopo se' fa le persone dotte.
-- 
                   DANTE, Purgatorio, xxii 67-69




^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2008-02-28 12:05 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-18 22:21 Problem with narrow vs condensed fonts Stefan Monnier
2008-02-18 23:05 ` Lennart Borgman (gmail)
2008-02-24 21:32 ` Andreas Schwab
2008-02-25  2:09   ` Stefan Monnier
2008-02-25  6:23     ` Kenichi Handa
2008-02-25  8:27       ` Jason Rumney
2008-02-25 11:24         ` Kenichi Handa
2008-02-25 11:35           ` Jason Rumney
2008-02-25 10:25       ` Andreas Schwab
2008-02-25 15:45       ` Stefan Monnier
2008-02-26  1:54         ` Kenichi Handa
2008-02-26  2:23           ` Stefan Monnier
2008-02-26  3:10             ` Kenichi Handa
2008-02-26  4:48               ` Stefan Monnier
2008-02-26  4:58                 ` Stefan Monnier
2008-02-26  9:45                   ` Jason Rumney
2008-02-26 11:18                     ` Kenichi Handa
2008-02-26 12:00                       ` Jason Rumney
2008-02-28 11:17                         ` Jason Rumney
2008-02-28 12:05                           ` Kenichi Handa
  -- strict thread matches above, loose matches on Subject: below --
2008-02-25  9:16 Angelo Graziosi

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.