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

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

Re: set-default-font


From: ken
Subject: Re: set-default-font
Date: Tue, 25 Aug 2020 18:15:41 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0

On 8/25/20 4:49 PM, 2QdxY4RzWzUUiLuE@potatochowder.com wrote:
> On 2020-08-25 at 16:38:16 -0400,
> ken <gebser@mousecar.com> wrote:
>
>> Changing to:
>>
>>   (set-face-attribute
>> "-*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-standard")
>>
>> errors out.  This is from *Backtrace*:
> Try something like this instead:
>
>     (set-face-attribute 'default nil :font "DejaVu Sans Mono-12")
>
> You can see how to call set-face-attribute in its help page, usually
> accessible by C-h f set-face-attribute <RET>.
Thanks.  Good page.  That helped me formulate the coding below.  And in
it the variable value "normal" should be acceptable, but emacs doesn't
like it for some reason (see below).*  Perhaps my syntax is off somewhere?


>
Thanks much, but that gives the same error as in my previous email.

So I tried this instead:

(set-face-attribute 'default nil :family "alegreya" :foundry "misc"
:slant "normal" :weight "normal" :height 258 :width "normal")

It works, but throws an error: Wrong type argument: symbolp, "normal"

Prior to this I tried the same, but without quotes around the three
instances of "normal" -- that didn't work at all.

Another problem is that the resulting font is too small, but changing
"258" to e.g. "358" doesn't change anything.  How can I find out an
appropriate specification?

Thanks again.

* I was going to say more about this, but emacs crashed.




reply via email to

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