From hello at petervaro.com Sun Oct 7 06:24:13 2018 From: hello at petervaro.com (Peter Varo) Date: Sun, 07 Oct 2018 10:24:13 +0000 Subject: [openbox] Ignore size hint for specific applications Message-ID: Hi there, I've been using OpenBox for years now and although I love it there is one particular thing that was bugging me for ages before I finally made it into a question on one of the StackExchange sites as you can see it here: https://unix.stackexchange.com/questions/473183 The brilliant answer provided by the user 'mosvy' makes it very clear that there is no real workaround for this problem. Before I asked that question I did my investigation and I couldn't find any other alternatives myself. Now editing the source and recompiling it upon every update is just a pain in the bottom (not to mention, that the provided example/solution may not even be complete) so I think this really is an issue that should be handled by the project maintainers. At this point I would appreciate any official support, even like the most 'radical' one at the `resize` section: ... yes Or perhaps a more granular option should be present at the `action` level, something like: ... yes Which then could be restricted to specific applications only: MyApp ... yes ... Or maybe all of these possible options combined would give enough control to the user over this particular matter. Either way, I'm very interested in any kind of feedback regarding this problem and/or its possible solution(s). Many thanks, Peter Varo — Senior Software Engineer www.petervaro.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ohnonot-github at posteo.de Tue Oct 9 16:32:46 2018 From: ohnonot-github at posteo.de (ohnonot-github at posteo.de) Date: Tue, 09 Oct 2018 20:32:46 +0000 Subject: [openbox] Ignore size hint for specific applications In-Reply-To: References: Message-ID: <740DE74F-8298-41B6-826F-01FB329B0B1C@posteo.de> I know the problem with urxvt (and other terms). For many years now I've been using a patched rxvt-unicode. Please search aur.archlinux.org - The specific patch is called "no resize increment", but some packages apply a whole bunch of patches without specifically mentioning it. On October 7, 2018 10:24:13 AM UTC, Peter Varo wrote: >Hi there, > >I've been using OpenBox for years now and although I love it there is >one particular thing that was bugging me for ages before I finally made >it into a question on one of the StackExchange sites as you can see it >here: > >https://unix.stackexchange.com/questions/473183 > >The brilliant answer provided by the user 'mosvy' makes it very clear >that there is no real workaround for this problem. Before I asked that >question I did my investigation and I couldn't find any other >alternatives myself. > >Now editing the source and recompiling it upon every update is just a >pain in the bottom (not to mention, that the provided example/solution >may not even be complete) so I think this really is an issue that >should be handled by the project maintainers. > >At this point I would appreciate any official support, even like the >most 'radical' one at the `resize` section: > > > ... > yes > > >Or perhaps a more granular option should be present at the `action` >level, something like: > > > ... > yes > > >Which then could be restricted to specific applications only: > > > > > > MyApp > > > > > > > > ... > > yes > > > > > > > > ... > > > > > >Or maybe all of these possible options combined would give enough >control to the user over this particular matter. Either way, I'm very >interested in any kind of feedback regarding this problem and/or its >possible solution(s). > >Many thanks, > >Peter Varo >— >Senior Software Engineer >www.petervaro.com -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -------------- next part -------------- An HTML attachment was scrubbed... URL: From maitra at email.com Mon Oct 15 06:55:07 2018 From: maitra at email.com (Ranjan Maitra) Date: Mon, 15 Oct 2018 05:55:07 -0500 Subject: [openbox] using openbox with HiDPi display In-Reply-To: References: <20180924193912.8eee68bceb5eff1a62e312a8@email.com> Message-ID: <20181015055507.8052e0a682536e3e587a9ecc@email.com> On Tue, 25 Sep 2018 10:01:09 +0200 Jose Luis Pavón Pavón wrote: > I few days ago I found this Manjaro forum entry... I think it can work on any distro. > > https://forum.manjaro.org/t/do-you-think-hidpi-displays-are-worth-it-on-linux/52238/19 > > Hope it helps. Actually, it appears that one needs to be a forum member to have access to this entry. Do you mind letting us know what is in it by cutting and pasting the relevant text? Many thanks, Ranjan > > Enviat des del meu iPhone > > El 25 set 2018, a les 2:39, Ranjan Maitra va escriure: > > > Dear friends, > > > > My new XPS13 9370 has 4K resolution. I would like to use my trusted openbox on it. What should I do for it to be able to work with HiDPi scaled fonts? > > > > I am using Fedora 28. > > > > Thanks in advance for all help! > > > > Best wishes, > > Ranjan > > > > > > -- > > Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses. > > > > _______________________________________________ > > openbox mailing list > > openbox at icculus.org > > http://icculus.org/mailman/listinfo/openbox -- Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses. From jlpavon at me.com Mon Oct 15 08:24:43 2018 From: jlpavon at me.com (=?utf-8?Q?Jose_Luis_Pav=C3=B3n_Pav=C3=B3n?=) Date: Mon, 15 Oct 2018 14:24:43 +0200 Subject: [openbox] using openbox with HiDPi display In-Reply-To: <20181015055507.8052e0a682536e3e587a9ecc@email.com> References: <20180924193912.8eee68bceb5eff1a62e312a8@email.com> <20181015055507.8052e0a682536e3e587a9ecc@email.com> Message-ID: <9ECD4BAB-8190-4A4B-BC60-28E407318719@me.com> No problem. You have to put this in .Xresorces !-------------------------------------------- ! Custom DPI !-------------------------------------------- !Xft.dpi: 144 Xft.dpi: 192 Xft.autohint: 0 Xft.lcdfilter: lcddefault Xft.hintstyle: hintslight Xft.hinting: true Xft.antialias: 1 Xft.rgba: rgb Xcursor.size: 32 And this in.xinitrc xrandr --dpi 192 This works for me, hope it helps. Enviat des del meu iPhone El 15 oct 2018, a les 12:55, Ranjan Maitra va escriure: > On Tue, 25 Sep 2018 10:01:09 +0200 Jose Luis Pavón Pavón wrote: > >> I few days ago I found this Manjaro forum entry... I think it can work on any distro. >> >> https://forum.manjaro.org/t/do-you-think-hidpi-displays-are-worth-it-on-linux/52238/19 >> >> Hope it helps. > > Actually, it appears that one needs to be a forum member to have access to this entry. Do you mind letting us know what is in it by cutting and pasting the relevant text? > > Many thanks, > Ranjan > > >> >> Enviat des del meu iPhone >> >> El 25 set 2018, a les 2:39, Ranjan Maitra va escriure: >> >>> Dear friends, >>> >>> My new XPS13 9370 has 4K resolution. I would like to use my trusted openbox on it. What should I do for it to be able to work with HiDPi scaled fonts? >>> >>> I am using Fedora 28. >>> >>> Thanks in advance for all help! >>> >>> Best wishes, >>> Ranjan >>> >>> >>> -- >>> Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses. >>> >>> _______________________________________________ >>> openbox mailing list >>> openbox at icculus.org >>> http://icculus.org/mailman/listinfo/openbox > > > -- > Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses. > > _______________________________________________ > openbox mailing list > openbox at icculus.org > http://icculus.org/mailman/listinfo/openbox From maitra at email.com Mon Oct 22 22:05:36 2018 From: maitra at email.com (Ranjan Maitra) Date: Mon, 22 Oct 2018 21:05:36 -0500 Subject: [openbox] using openbox with HiDPi display In-Reply-To: <9ECD4BAB-8190-4A4B-BC60-28E407318719@me.com> References: <20180924193912.8eee68bceb5eff1a62e312a8@email.com> <20181015055507.8052e0a682536e3e587a9ecc@email.com> <9ECD4BAB-8190-4A4B-BC60-28E407318719@me.com> Message-ID: <20181022210536.58c818acbca5db95a2979038@email.com> Hi, Thanks, I did not have to use the xrandr -dpi 192 command: I had no .xinitrc and including that was crashing my login/openbox. However, things generally appear to work, but not everything. In fact, I use the font for emacs to be Fixed 10x20 but this is too small: it is not scaling. Any suggestions as to what I should be doing? Best wishes, Ranjan On Mon, 15 Oct 2018 14:24:43 +0200 Jose Luis Pavón Pavón wrote: > No problem. > > You have to put this in .Xresorces > > !-------------------------------------------- ! Custom DPI !-------------------------------------------- !Xft.dpi: 144 Xft.dpi: 192 Xft.autohint: 0 Xft.lcdfilter: lcddefault Xft.hintstyle: hintslight Xft.hinting: true Xft.antialias: 1 Xft.rgba: rgb Xcursor.size: 32 > > And this in.xinitrc > > xrandr --dpi 192 > > This works for me, hope it helps. > > Enviat des del meu iPhone > > El 15 oct 2018, a les 12:55, Ranjan Maitra va escriure: > > > On Tue, 25 Sep 2018 10:01:09 +0200 Jose Luis Pavón Pavón wrote: > > > >> I few days ago I found this Manjaro forum entry... I think it can work on any distro. > >> > >> https://forum.manjaro.org/t/do-you-think-hidpi-displays-are-worth-it-on-linux/52238/19 > >> > >> Hope it helps. > > > > Actually, it appears that one needs to be a forum member to have access to this entry. Do you mind letting us know what is in it by cutting and pasting the relevant text? > > > > Many thanks, > > Ranjan > > > > > >> > >> Enviat des del meu iPhone > >> > >> El 25 set 2018, a les 2:39, Ranjan Maitra va escriure: > >> > >>> Dear friends, > >>> > >>> My new XPS13 9370 has 4K resolution. I would like to use my trusted openbox on it. What should I do for it to be able to work with HiDPi scaled fonts? > >>> > >>> I am using Fedora 28. > >>> > >>> Thanks in advance for all help! > >>> > >>> Best wishes, > >>> Ranjan > >>> > >>> > >>> -- > >>> Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses. > >>> > >>> _______________________________________________ > >>> openbox mailing list > >>> openbox at icculus.org > >>> http://icculus.org/mailman/listinfo/openbox > > > > > > -- > > Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses. > > > > _______________________________________________ > > openbox mailing list > > openbox at icculus.org > > http://icculus.org/mailman/listinfo/openbox > _______________________________________________ > openbox mailing list > openbox at icculus.org > http://icculus.org/mailman/listinfo/openbox -- Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses. From jim at rees.org Mon Oct 22 22:57:45 2018 From: jim at rees.org (Jim Rees) Date: Mon, 22 Oct 2018 22:57:45 -0400 Subject: [openbox] using openbox with HiDPi display In-Reply-To: <20181022210536.58c818acbca5db95a2979038@email.com> References: <20180924193912.8eee68bceb5eff1a62e312a8@email.com> <20181015055507.8052e0a682536e3e587a9ecc@email.com> <9ECD4BAB-8190-4A4B-BC60-28E407318719@me.com> <20181022210536.58c818acbca5db95a2979038@email.com> Message-ID: <20181023025745.GA31254@rees.org> When you say "Fixed 10x20" do you mean you're using 10x20 from misc-fixed? Why? X fonts only come in 75 and 100 dpi. You can't use them on a hi-dpi display. You shouldn't use them on any display. They're obsolete. From ohnonot-github at posteo.de Tue Oct 23 04:38:15 2018 From: ohnonot-github at posteo.de (ohnonot-github at posteo.de) Date: Tue, 23 Oct 2018 08:38:15 +0000 Subject: [openbox] using openbox with HiDPi display In-Reply-To: <20181022210536.58c818acbca5db95a2979038@email.com> References: <20180924193912.8eee68bceb5eff1a62e312a8@email.com> <20181015055507.8052e0a682536e3e587a9ecc@email.com> <9ECD4BAB-8190-4A4B-BC60-28E407318719@me.com> <20181022210536.58c818acbca5db95a2979038@email.com> Message-ID: <2F60E0B8-6676-45EC-AC2F-FFE72E230841@posteo.de> If emacs uses non-scalable fonts, I recommend Terminus: it comes in many (larger) sizes. On October 23, 2018 2:05:36 AM UTC, Ranjan Maitra wrote: >Hi, > >Thanks, I did not have to use the xrandr -dpi 192 command: I had no >.xinitrc and including that was crashing my login/openbox. > >However, things generally appear to work, but not everything. In fact, >I use the font for emacs to be Fixed 10x20 but this is too small: it is >not scaling. Any suggestions as to what I should be doing? > >Best wishes, >Ranjan > >On Mon, 15 Oct 2018 14:24:43 +0200 Jose Luis Pavón Pavón > wrote: > >> No problem. >> >> You have to put this in .Xresorces >> >> !-------------------------------------------- ! Custom DPI >!-------------------------------------------- !Xft.dpi: 144 Xft.dpi: >192 Xft.autohint: 0 Xft.lcdfilter: lcddefault Xft.hintstyle: hintslight >Xft.hinting: true Xft.antialias: 1 Xft.rgba: rgb Xcursor.size: 32 >> >> And this in.xinitrc >> >> xrandr --dpi 192 >> >> This works for me, hope it helps. >> >> Enviat des del meu iPhone >> >> El 15 oct 2018, a les 12:55, Ranjan Maitra va >escriure: >> >> > On Tue, 25 Sep 2018 10:01:09 +0200 Jose Luis Pavón Pavón > wrote: >> > >> >> I few days ago I found this Manjaro forum entry... I think it can >work on any distro. >> >> >> >> >https://forum.manjaro.org/t/do-you-think-hidpi-displays-are-worth-it-on-linux/52238/19 >> >> >> >> Hope it helps. >> > >> > Actually, it appears that one needs to be a forum member to have >access to this entry. Do you mind letting us know what is in it by >cutting and pasting the relevant text? >> > >> > Many thanks, >> > Ranjan >> > >> > >> >> >> >> Enviat des del meu iPhone >> >> >> >> El 25 set 2018, a les 2:39, Ranjan Maitra va >escriure: >> >> >> >>> Dear friends, >> >>> >> >>> My new XPS13 9370 has 4K resolution. I would like to use my >trusted openbox on it. What should I do for it to be able to work with >HiDPi scaled fonts? >> >>> >> >>> I am using Fedora 28. >> >>> >> >>> Thanks in advance for all help! >> >>> >> >>> Best wishes, >> >>> Ranjan >> >>> >> >>> >> >>> -- >> >>> Important Notice: This mailbox is ignored: e-mails are set to be >deleted on receipt. Please respond to the mailing list if appropriate. >For those needing to send personal or professional e-mail, please use >appropriate addresses. >> >>> >> >>> _______________________________________________ >> >>> openbox mailing list >> >>> openbox at icculus.org >> >>> http://icculus.org/mailman/listinfo/openbox >> > >> > >> > -- >> > Important Notice: This mailbox is ignored: e-mails are set to be >deleted on receipt. Please respond to the mailing list if appropriate. >For those needing to send personal or professional e-mail, please use >appropriate addresses. >> > >> > _______________________________________________ >> > openbox mailing list >> > openbox at icculus.org >> > http://icculus.org/mailman/listinfo/openbox >> _______________________________________________ >> openbox mailing list >> openbox at icculus.org >> http://icculus.org/mailman/listinfo/openbox > >-- >Important Notice: This mailbox is ignored: e-mails are set to be >deleted on receipt. Please respond to the mailing list if appropriate. >For those needing to send personal or professional e-mail, please use >appropriate addresses. > >_______________________________________________ >openbox mailing list >openbox at icculus.org >http://icculus.org/mailman/listinfo/openbox -------------- next part -------------- An HTML attachment was scrubbed... URL: From maitra at email.com Tue Oct 23 09:10:20 2018 From: maitra at email.com (Ranjan Maitra) Date: Tue, 23 Oct 2018 08:10:20 -0500 Subject: [openbox] using openbox with HiDPi display In-Reply-To: <20181023025745.GA31254@rees.org> References: <20180924193912.8eee68bceb5eff1a62e312a8@email.com> <20181015055507.8052e0a682536e3e587a9ecc@email.com> <9ECD4BAB-8190-4A4B-BC60-28E407318719@me.com> <20181022210536.58c818acbca5db95a2979038@email.com> <20181023025745.GA31254@rees.org> Message-ID: <20181023081020.528cadbdb31e6e4d5c39b546@email.com> Hi, Thanks very much. Yes, I have been using Misc-Fixed 10x20 with everything and I feel that it is the most readable because it is clean and fixed-width. It is possible that it does not work with HiDPI, but strangely enough, it seems to work with my terminal (https://github.com/maitra/aNu). Any suggestions as to why, and how I can fix emacs in that case? I will also look at the terminus fonts, but I would have liked to stick with my preferred font. Many thanks, Ranjan On Mon, 22 Oct 2018 22:57:45 -0400 Jim Rees wrote: > When you say "Fixed 10x20" do you mean you're using 10x20 from misc-fixed? > Why? X fonts only come in 75 and 100 dpi. You can't use them on a hi-dpi > display. You shouldn't use them on any display. They're obsolete. > _______________________________________________ > openbox mailing list > openbox at icculus.org > http://icculus.org/mailman/listinfo/openbox -- Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses. From jim at rees.org Tue Oct 23 09:59:36 2018 From: jim at rees.org (Jim Rees) Date: Tue, 23 Oct 2018 09:59:36 -0400 Subject: [openbox] using openbox with HiDPi display In-Reply-To: <20181023081020.528cadbdb31e6e4d5c39b546@email.com> References: <20180924193912.8eee68bceb5eff1a62e312a8@email.com> <20181015055507.8052e0a682536e3e587a9ecc@email.com> <9ECD4BAB-8190-4A4B-BC60-28E407318719@me.com> <20181022210536.58c818acbca5db95a2979038@email.com> <20181023025745.GA31254@rees.org> <20181023081020.528cadbdb31e6e4d5c39b546@email.com> Message-ID: <20181023135936.GA24096@rees.org> X bitmap fonts are measured in pixels. If 10x20 is too small, use something bigger. But 10x20 is the biggest fixed font in X, so you may be out of luck. If it looks good in aNu, that means aNu is doing something non-standard, like doubling the size of the font. You can't expect other applications to do the same. That's why scalable fonts were invented. There may be some way to scale bitmap fonts in emacs, but I don't know what it would be. Maybe something like this? (set-face-attribute 'default nil :font "fixed" :height 120) But my recommendation to you is that you use scalable fonts. They should look better than bitmap fonts, not worse, especially on a hi-res display. If they don't look perfectly sharp and clear on your hi-dpi display, it's likely you've got something configured wrong. At one time I had to add something like this to my ~/.config/fontconfig/fonts.conf : rgb true hintslight true lcddefault In any case this isn't an openbox issue, and you may get better advice in an emacs or fontconfig forum. From maitra at email.com Tue Oct 23 23:57:52 2018 From: maitra at email.com (Ranjan Maitra) Date: Tue, 23 Oct 2018 22:57:52 -0500 Subject: [openbox] using openbox with HiDPi display In-Reply-To: <20181023135936.GA24096@rees.org> References: <20180924193912.8eee68bceb5eff1a62e312a8@email.com> <20181015055507.8052e0a682536e3e587a9ecc@email.com> <9ECD4BAB-8190-4A4B-BC60-28E407318719@me.com> <20181022210536.58c818acbca5db95a2979038@email.com> <20181023025745.GA31254@rees.org> <20181023081020.528cadbdb31e6e4d5c39b546@email.com> <20181023135936.GA24096@rees.org> Message-ID: <20181023225752.9fdcf2978182e86592ccacb6@email.com> Hi, Thank you for your detailed response. Your explanations make sense. On Tue, 23 Oct 2018 09:59:36 -0400 Jim Rees wrote: > X bitmap fonts are measured in pixels. If 10x20 is too small, use something > bigger. But 10x20 is the biggest fixed font in X, so you may be out of luck. > > If it looks good in aNu, that means aNu is doing something non-standard, > like doubling the size of the font. You can't expect other applications to > do the same. That's why scalable fonts were invented. There may be some way > to scale bitmap fonts in emacs, but I don't know what it would be. Maybe > something like this? > > (set-face-attribute 'default nil :font "fixed" :height 120) I tried this, but nothing seemed to change. So I looked around and found this with this response on the stackoverflow sites: https://emacs.stackexchange.com/questions/10438/how-to-set-the-default-font-size/10439#10439 where I got from: https://unix.stackexchange.com/questions/242067/emacs-on-hidpi-screen-renders-unreadable-fonts-arch-linux#242155 (add-to-list 'default-frame-alist '(font . FONT )) (set-face-attribute 'default t :font FONT ) where FONT is a string naming the font you want, for example, "Droid Sans Mono-10". Also, apparently we should also set the default font using .Xresources and the Emacs daemon. An example of a line suitable for ~/.Xresources for setting the default font size is Emacs.default.attributeHeight: 94 So, I was not sure what to put in with the FONT? Should it be Fixed 10x20 or Fixed Regular 10 or something else. I tried the first two but nothing seemed to change so was wondering for some more help here. I do understand that this is not an openbox question but an emacs on HiDPI question. Many thanks and best wishes, Ranjan > > But my recommendation to you is that you use scalable fonts. They should > look better than bitmap fonts, not worse, especially on a hi-res display. If > they don't look perfectly sharp and clear on your hi-dpi display, it's > likely you've got something configured wrong. At one time I had to add > something like this to my ~/.config/fontconfig/fonts.conf : > > > > rgb > > > true > > > hintslight > > > true > > > lcddefault > > > > In any case this isn't an openbox issue, and you may get better advice in an > emacs or fontconfig forum. > _______________________________________________ > openbox mailing list > openbox at icculus.org > http://icculus.org/mailman/listinfo/openbox -- Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses. From ohnonot-github at posteo.de Wed Oct 24 03:06:43 2018 From: ohnonot-github at posteo.de (ohnonot-github at posteo.de) Date: Wed, 24 Oct 2018 07:06:43 +0000 Subject: [openbox] using openbox with HiDPi display In-Reply-To: <20181023225752.9fdcf2978182e86592ccacb6@email.com> References: <20180924193912.8eee68bceb5eff1a62e312a8@email.com> <20181015055507.8052e0a682536e3e587a9ecc@email.com> <9ECD4BAB-8190-4A4B-BC60-28E407318719@me.com> <20181022210536.58c818acbca5db95a2979038@email.com> <20181023025745.GA31254@rees.org> <20181023081020.528cadbdb31e6e4d5c39b546@email.com> <20181023135936.GA24096@rees.org> <20181023225752.9fdcf2978182e86592ccacb6@email.com> Message-ID: OK it seems you're confusing bitmap and scalable fonts and different font notations now. If Emacs supports scalable you should use it (at least on hidpi). So try the example given. If droid isn't installed, install it, or use something else if you feel you're confident with the notation. I repeat: misc fixed is NOT scalable! @jimrees I'm pretty sure 20px is not a hard limit. Terminus goes larger and I never had problems with that. On October 24, 2018 3:57:52 AM UTC, Ranjan Maitra wrote: >Hi, > >Thank you for your detailed response. Your explanations make sense. > >On Tue, 23 Oct 2018 09:59:36 -0400 Jim Rees wrote: > >> X bitmap fonts are measured in pixels. If 10x20 is too small, use >something >> bigger. But 10x20 is the biggest fixed font in X, so you may be out >of luck. >> >> If it looks good in aNu, that means aNu is doing something >non-standard, >> like doubling the size of the font. You can't expect other >applications to >> do the same. That's why scalable fonts were invented. There may be >some way >> to scale bitmap fonts in emacs, but I don't know what it would be. >Maybe >> something like this? >> >> (set-face-attribute 'default nil :font "fixed" :height 120) > >I tried this, but nothing seemed to change. So I looked around and >found this with this response on the stackoverflow sites: > >https://emacs.stackexchange.com/questions/10438/how-to-set-the-default-font-size/10439#10439 > >where I got from: >https://unix.stackexchange.com/questions/242067/emacs-on-hidpi-screen-renders-unreadable-fonts-arch-linux#242155 > >(add-to-list 'default-frame-alist '(font . FONT )) >(set-face-attribute 'default t :font FONT ) > >where FONT is a string naming the font you want, for example, "Droid >Sans Mono-10". > >Also, apparently we should also set the default font using .Xresources >and the Emacs daemon. An example of a line suitable for ~/.Xresources >for setting the default font size is > >Emacs.default.attributeHeight: 94 > >So, I was not sure what to put in with the FONT? Should it be Fixed >10x20 or Fixed Regular 10 or something else. I tried the first two but >nothing seemed to change so was wondering for some more help here. I do >understand that this is not an openbox question but an emacs on HiDPI >question. > >Many thanks and best wishes, >Ranjan > >> >> But my recommendation to you is that you use scalable fonts. They >should >> look better than bitmap fonts, not worse, especially on a hi-res >display. If >> they don't look perfectly sharp and clear on your hi-dpi display, >it's >> likely you've got something configured wrong. At one time I had to >add >> something like this to my ~/.config/fontconfig/fonts.conf : >> >> >> >> rgb >> >> >> true >> >> >> hintslight >> >> >> true >> >> >> lcddefault >> >> >> >> In any case this isn't an openbox issue, and you may get better >advice in an >> emacs or fontconfig forum. >> _______________________________________________ >> openbox mailing list >> openbox at icculus.org >> http://icculus.org/mailman/listinfo/openbox > >-- >Important Notice: This mailbox is ignored: e-mails are set to be >deleted on receipt. Please respond to the mailing list if appropriate. >For those needing to send personal or professional e-mail, please use >appropriate addresses. > >_______________________________________________ >openbox mailing list >openbox at icculus.org >http://icculus.org/mailman/listinfo/openbox -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at rees.org Wed Oct 24 07:45:47 2018 From: jim at rees.org (Jim Rees) Date: Wed, 24 Oct 2018 07:45:47 -0400 Subject: [openbox] using openbox with HiDPi display In-Reply-To: <20181023225752.9fdcf2978182e86592ccacb6@email.com> References: <20180924193912.8eee68bceb5eff1a62e312a8@email.com> <20181015055507.8052e0a682536e3e587a9ecc@email.com> <9ECD4BAB-8190-4A4B-BC60-28E407318719@me.com> <20181022210536.58c818acbca5db95a2979038@email.com> <20181023025745.GA31254@rees.org> <20181023081020.528cadbdb31e6e4d5c39b546@email.com> <20181023135936.GA24096@rees.org> <20181023225752.9fdcf2978182e86592ccacb6@email.com> Message-ID: <20181024114547.GA9753@rees.org> Ranjan Maitra wrote: (add-to-list 'default-frame-alist '(font . FONT )) (set-face-attribute 'default t :font FONT ) I believe that will set the font, but not its size. It's approximately equivalent to the elisp I suggested but without the height attribute. But it applies this to the default frame, which is probably what you want. Emacs.default.attributeHeight: 94 That will probably work too, if you don't want to do this in your .emacs. However, this all assumes that you can apply a height attribute to a bitmap font and have it get scaled. I don't know if this is possible. So, I was not sure what to put in with the FONT? It's been so many years since I used bitmap fonts that I no longer remember the details of how they are named. The long name is something like -misc-fixed-medium-r-semicondensed--13-*-*-*-c-*-iso10646-1 This was my default font back in the day. Fonts can have nicknames too. These go in a file called fonts.alias. There should be a system one somewhere and you can also have your own. You can set the default font for all your X applications by using an X resource like this: *font: -misc-fixed-medium-r-semicondensed--13-*-*-*-c-*-iso10646-1 Thanks for the trip down memory lane but I think that's about everything I remember about the old-fashioned bitmap fonts. From jim at rees.org Wed Oct 24 07:48:56 2018 From: jim at rees.org (Jim Rees) Date: Wed, 24 Oct 2018 07:48:56 -0400 Subject: [openbox] using openbox with HiDPi display In-Reply-To: References: <20180924193912.8eee68bceb5eff1a62e312a8@email.com> <20181015055507.8052e0a682536e3e587a9ecc@email.com> <9ECD4BAB-8190-4A4B-BC60-28E407318719@me.com> <20181022210536.58c818acbca5db95a2979038@email.com> <20181023025745.GA31254@rees.org> <20181023081020.528cadbdb31e6e4d5c39b546@email.com> <20181023135936.GA24096@rees.org> <20181023225752.9fdcf2978182e86592ccacb6@email.com> Message-ID: <20181024114856.GB9753@rees.org> ohnonot-github at posteo.de wrote: OK it seems you're confusing bitmap and scalable fonts and different font notations now. If Emacs supports scalable you should use it (at least on hidpi). So try the example given. If droid isn't installed, install it, or use something else if you feel you're confident with the notation. I repeat: misc fixed is NOT scalable! I already told him to use scalable fonts. I guess he didn't like that idea. I would normally agree that misc fixed is not scalable, but he says it's scaling for him in his terminal application. My guess is that his terminal is doing something special, and he will not be able to get emacs to do the same thing.