bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#2994: Fwd: NS: font regression?


From: David Reitter
Subject: bug#2994: Fwd: NS: font regression?
Date: Fri, 17 Apr 2009 08:05:18 -0400

For the problem stated below, it turns out this change (to font.c) is correlated with it. Without it, fonts work OK under NS.

Credits to Juanma for suggesting to try this.

--------------------------------------------------------------------------------
@@ -3455,7 +3461,8 @@ font_load_for_lface (f, attrs, spec)
{
 Lisp_Object entity;

-  entity = font_find_for_lface (f, attrs, spec, -1);
+  /* We assume that a font that supports 'A' supports ASCII chars.  */
+  entity = font_find_for_lface (f, attrs, spec, 'A');
 if (NILP (entity))
   {
     /* No font is listed for SPEC, but each font-backend may have
--------------------------------------------------------------------------------


Begin forwarded message:

From: David Reitter <david.reitter@gmail.com>
Date: April 16, 2009 6:09:33 PM EDT
To: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: NS: font regression?

Was there a regression regarding font handling?

In NS, this:

   (apply 'set-face-attribute 'default
           (selected-frame) (list :family "Mistral"
                                :height (* 10 14)))

used to work as expected. Now, it sets the height correctly, but not the font.

I verified correctness for revision [git] 7924617 ( Mon Mar 30 01:52:08 ).

I also tried HEAD minus f43fff3, nsfont.m (Stefan Monnier's change to nsfont.m), and that wasn't the problem as far as I can see.









reply via email to

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