[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Weird problem with inital frame sizing
From: |
Perry E. Metzger |
Subject: |
Re: Weird problem with inital frame sizing |
Date: |
Thu, 13 Sep 2018 17:34:01 -0400 |
On Thu, 13 Sep 2018 16:20:10 -0400 Stefan Monnier
<address@hidden> wrote:
> >> (set-face-attribute 'default nil
> >> :family "DejaVu Sans Mono" :height
> >> 140)
>
> I'd recommend you move away from set-face-attribute.
What's the reason for that?
> > I need to condition my init on whether I'm running under X, on a
> > terminal, or under cocoa ("ns"), so I need to know the value of
> > window-system when setting things in my init file. (I use a single
> > init file on many different machines for sanity's sake.)
>
> Faces can be set on a per-frame basis, and Custom knows how to
> describe face settings that depend on the terminal.
>
> You can try something like
>
> (face-spec-set 'default
> '((((type x)) :family "DejaVu Sans Mono" :height
> 140) (((type ns)) :family "Monaco" :height 100)
> (t :family :height 120)))
Why is this preferable? And what does it have to do with the overall
problem I'm having?
Perry
--
Perry E. Metzger address@hidden
- Re: Weird problem with inital frame sizing, (continued)
Re: Weird problem with inital frame sizing, Stefan Monnier, 2018/09/13
- Re: Weird problem with inital frame sizing, Perry E. Metzger, 2018/09/13
- Re: Weird problem with inital frame sizing, Perry E. Metzger, 2018/09/13
- Re: Weird problem with inital frame sizing, Perry E. Metzger, 2018/09/13
- Re: Weird problem with inital frame sizing, Perry E. Metzger, 2018/09/13
- Re: Weird problem with inital frame sizing, Perry E. Metzger, 2018/09/13
- Re: Weird problem with inital frame sizing, Stefan Monnier, 2018/09/13
- Re: Weird problem with inital frame sizing,
Perry E. Metzger <=
- Re: Weird problem with inital frame sizing, Stefan Monnier, 2018/09/13
- Re: Weird problem with inital frame sizing, Perry E. Metzger, 2018/09/15
- Re: Weird problem with inital frame sizing, Stefan Monnier, 2018/09/16
- Re: Weird problem with inital frame sizing, Perry E. Metzger, 2018/09/17
- Re: Weird problem with inital frame sizing, Noam Postavsky, 2018/09/17
Re: Weird problem with inital frame sizing, Eli Zaretskii, 2018/09/13
Re: Weird problem with inital frame sizing, Perry E. Metzger, 2018/09/13