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

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

bug#17486: 24.4.50; set-face-font problem on OSX


From: Jan Djärv
Subject: bug#17486: 24.4.50; set-face-font problem on OSX
Date: Fri, 16 May 2014 17:13:16 +0200

Hi.

16 maj 2014 kl. 16:53 skrev Dmitry Antipov <address@hidden>:

>>> 13 maj 2014 kl. 20:21 skrev Christian Lynbech <address@hidden>:
>>> 
>>>> 
>>>> There is an issue when trying to set the font of face in recent versions
>>>> of emacs build for OSX.
>>>> 
>>>> Evaluating this form works as expected:
>>>> 
>>>>    (set-face-font 'region 
>>>> "-*-Menlo-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1")
>>>> 
>>>> It used to be that one could also say something like this:
>>>> 
>>>>    (set-face-font 'region  "bitstream vera sans mono-26")
>>>> 
>>>> but when I try to do that on a newly built emacs, I get this stack
>>>> trace:
>>>> 
>>>>    Debugger entered--Lisp error: (wrong-type-argument font [#<font-entity 
>>>> ns apple Menlo nil iso10646-1 medium normal normal 0 nil 100 0 nil>])
>>>>      internal-set-lisp-face-attribute(region :font "bitstream vera sans 
>>>> mono-26" 0)
>>>>      set-face-attribute(region nil :font "bitstream vera sans mono-26")
>>>>      set-face-font(region "bitstream vera sans mono-26")
>>>>      eval((set-face-font (quote region) "bitstream vera sans mono-26") nil)
>>>>      eval-last-sexp-1(nil)
>>>>      eval-last-sexp(nil)
>>>>      call-interactively(eval-last-sexp nil nil)
>>>>      command-execute(eval-last-sexp)
> 
> Ugh. Is it possible to eval (frame-font-cache) immediately after you get this 
> error?

("zeplin.localdomain" (ns 1 (#<font-spec ns nil bitstream\ vera\ sans\ mono nil 
nil unspecified unspecified unspecified 26 nil nil nil ((:name . "bitstream 
vera sans mono-26") (user-spec . "bitstream vera sans mono-26"))> . 
[#<font-entity ns apple Menlo nil iso10646-1 medium normal normal 0 nil 100 0 
nil>]) (#<font-spec ns nil Menlo nil iso10646-1 nil nil nil nil nil 100 nil 
((user-spec . "Menlo"))> . [#<font-entity ns apple Menlo nil iso10646-1 bold 
italic normal 0 nil 100 0 ((user-spec . "Menlo"))> #<font-entity ns apple Menlo 
nil iso10646-1 bold normal normal 0 nil 100 0 ((user-spec . "Menlo"))> 
#<font-entity ns apple Menlo nil iso10646-1 medium italic normal 0 nil 100 0 
((user-spec . "Menlo"))> #<font-entity ns apple Menlo nil iso10646-1 medium 
normal normal 0 nil 100 0 ((user-spec . "Menlo"))>])) (mac-ct 1 (#<font-spec 
mac-ct nil Menlo nil iso10646-1 nil nil nil nil nil 100 nil ((user-spec . 
"Menlo"))> . [#<font-entity mac-ct nil Menlo nil iso10646-1 normal normal 
normal 0 nil 100 0 ((:font-entity . #<save-value <pointer 0x100b872e0> <integer 
2147484672> <unused> <unused>>) (user-spec . "Menlo"))> #<font-entity mac-ct 
nil Menlo nil iso10646-1 normal italic normal 0 nil 100 0 ((:font-entity . 
#<save-value <pointer 0x100b94970> <integer 2147484673> <unused> <unused>>) 
(user-spec . "Menlo"))> #<font-entity mac-ct nil Menlo nil iso10646-1 bold 
normal normal 0 nil 100 0 ((:font-entity . #<save-value <pointer 0x100b946c0> 
<integer 2147484674> <unused> <unused>>) (user-spec . "Menlo"))> #<font-entity 
mac-ct nil Menlo nil iso10646-1 bold italic normal 0 nil 100 0 ((:font-entity . 
#<save-value <pointer 0x100b95260> <integer 2147484675> <unused> <unused>>) 
(user-spec . "Menlo"))>]))

        Jan D.






reply via email to

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