Re: using openbox with HiDPi display
[email protected] Wed, 24 Oct 2018 07:06:43 +0000
| Newsgroups | gmane.comp.window-managers.openbox |
|---|---|
| Message-ID | <[email protected]> |
--===============3216963893149326939== Content-Type: multipart/alternative; boundary="----AU6WXOFGOVK29X67NORKHJFM3XHK6E" Content-Transfer-Encoding: 7bit ------AU6WXOFGOVK29X67NORKHJFM3XHK6E Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable OK it seems you're confusing bitmap and scalable fonts and different font n= otations now=2E If Emacs supports scalable you should use it (at least on hidpi)=2E So try the example given=2E If droid isn't installed, install it, or use something else if you feel yo= u're confident with the notation=2E I repeat: misc fixed is NOT scalable! @jimrees I'm pretty sure 20px is not a hard limit=2E Terminus goes larger = and I never had problems with that=2E On October 24, 2018 3:57:52 AM UTC, Ranjan Maitra <maitra@email=2Ecom> wro= te: >Hi, > >Thank you for your detailed response=2E Your explanations make sense=2E > >On Tue, 23 Oct 2018 09:59:36 -0400 Jim Rees <jim@rees=2Eorg> wrote: > >> X bitmap fonts are measured in pixels=2E If 10x20 is too small, use >something >> bigger=2E But 10x20 is the biggest fixed font in X, so you may be out >of luck=2E >>=20 >> If it looks good in aNu, that means aNu is doing something >non-standard, >> like doubling the size of the font=2E You can't expect other >applications to >> do the same=2E That's why scalable fonts were invented=2E There may be >some way >> to scale bitmap fonts in emacs, but I don't know what it would be=2E >Maybe >> something like this? >>=20 >> (set-face-attribute 'default nil :font "fixed" :height 120) > >I tried this, but nothing seemed to change=2E So I looked around and >found this with this response on the stackoverflow sites: > >https://emacs=2Estackexchange=2Ecom/questions/10438/how-to-set-the-defaul= t-font-size/10439#10439 > >where I got from: >https://unix=2Estackexchange=2Ecom/questions/242067/emacs-on-hidpi-screen= -renders-unreadable-fonts-arch-linux#242155 > >(add-to-list 'default-frame-alist '(font =2E FONT )) >(set-face-attribute 'default t :font FONT ) > >where FONT is a string naming the font you want, for example, "Droid >Sans Mono-10"=2E > >Also, apparently we should also set the default font using =2EXresources >and the Emacs daemon=2E An example of a line suitable for ~/=2EXresources >for setting the default font size is > >Emacs=2Edefault=2EattributeHeight: 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=2E I tried the first two but >nothing seemed to change so was wondering for some more help here=2E I do >understand that this is not an openbox question but an emacs on HiDPI >question=2E=20 > >Many thanks and best wishes, >Ranjan > >>=20 >> But my recommendation to you is that you use scalable fonts=2E They >should >> look better than bitmap fonts, not worse, especially on a hi-res >display=2E If >> they don't look perfectly sharp and clear on your hi-dpi display, >it's >> likely you've got something configured wrong=2E At one time I had to >add >> something like this to my ~/=2Econfig/fontconfig/fonts=2Econf : >>=20 >> <match target=3D"font"> >> <edit mode=3D"assign" name=3D"rgba"> >> <const>rgb</const> >> </edit> >> <edit mode=3D"assign" name=3D"hinting"> >> <bool>true</bool> >> </edit> >> <edit mode=3D"assign" name=3D"hintstyle"> >> <const>hintslight</const> >> </edit> >> <edit mode=3D"assign" name=3D"antialias"> >> <bool>true</bool> >> </edit> >> <edit mode=3D"assign" name=3D"lcdfilter"> >> <const>lcddefault</const> >> </edit> >> </match> >>=20 >> In any case this isn't an openbox issue, and you may get better >advice in an >> emacs or fontconfig forum=2E >> _______________________________________________ >> openbox mailing list >> openbox@icculus=2Eorg >> http://icculus=2Eorg/mailman/listinfo/openbox > >--=20 >Important Notice: This mailbox is ignored: e-mails are set to be >deleted on receipt=2E Please respond to the mailing list if appropriate= =2E >For those needing to send personal or professional e-mail, please use >appropriate addresses=2E > >_______________________________________________ >openbox mailing list >openbox@icculus=2Eorg >http://icculus=2Eorg/mailman/listinfo/openbox ------AU6WXOFGOVK29X67NORKHJFM3XHK6E Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable OK it seems you're confusing bitmap and scalable fonts and different font n= otations now=2E<br>If Emacs supports scalable you should use it (at least o= n hidpi)=2E<br>So try the example given=2E<br>If droid isn't installed, ins= tall it, or use something else if you feel you're confident with the notati= on=2E<br>I repeat: misc fixed is NOT scalable!<br><br>@jimrees I'm pretty s= ure 20px is not a hard limit=2E Terminus goes larger and I never had proble= ms with that=2E<br><br><br><br>On October 24, 2018 3:57:52 AM UTC, Ranjan M= aitra <maitra@email=2Ecom> wrote:<br>>Hi,<br>><br>>Thank you= for your detailed response=2E Your explanations make sense=2E<br>><br>&= gt;On Tue, 23 Oct 2018 09:59:36 -0400 Jim Rees <jim@rees=2Eorg> wrote= :<br>><br>>> X bitmap fonts are measured in pixels=2E If 10x20 is = too small, use<br>>something<br>>> bigger=2E But 10x20 is the bigg= est fixed font in X, so you may be out<br>>of luck=2E<br>>> <br>&g= t;> If it looks good in aNu, that means aNu is doing something<br>>no= n-standard,<br>>> like doubling the size of the font=2E You can't exp= ect other<br>>applications to<br>>> do the same=2E That's why scal= able fonts were invented=2E There may be<br>>some way<br>>> to sca= le bitmap fonts in emacs, but I don't know what it would be=2E<br>>Maybe= <br>>> something like this?<br>>> <br>>> (set-face-attrib= ute 'default nil :font "fixed" :height 120)<br>><br>>I tried this, bu= t nothing seemed to change=2E So I looked around and<br>>found this with= this response on the stackoverflow sites:<br>><br>>https://emacs=2Es= tackexchange=2Ecom/questions/10438/how-to-set-the-default-font-size/10439#1= 0439<br>><br>>where I got from:<br>>https://unix=2Estackexchange= =2Ecom/questions/242067/emacs-on-hidpi-screen-renders-unreadable-fonts-arch= -linux#242155<br>><br>>(add-to-list 'default-frame-alist '(font =2E F= ONT ))<br>>(set-face-attribute 'default t :font FONT )<br>><br>>wh= ere FONT is a string naming the font you want, for example, "Droid<br>>S= ans Mono-10"=2E<br>><br>>Also, apparently we should also set the defa= ult font using =2EXresources<br>>and the Emacs daemon=2E An example of a= line suitable for ~/=2EXresources<br>>for setting the default font size= is<br>><br>>Emacs=2Edefault=2EattributeHeight: 94<br>><br>>So,= I was not sure what to put in with the FONT? Should it be Fixed<br>>10x= 20 or Fixed Regular 10 or something else=2E I tried the first two but<br>&g= t;nothing seemed to change so was wondering for some more help here=2E I do= <br>>understand that this is not an openbox question but an emacs on HiD= PI<br>>question=2E <br>><br>>Many thanks and best wishes,<br>>R= anjan<br>><br>>> <br>>> But my recommendation to you is that= you use scalable fonts=2E They<br>>should<br>>> look better than = bitmap fonts, not worse, especially on a hi-res<br>>display=2E If<br>>= ;> they don't look perfectly sharp and clear on your hi-dpi display,<br>= >it's<br>>> likely you've got something configured wrong=2E At one= time I had to<br>>add<br>>> something like this to my ~/=2Econfig= /fontconfig/fonts=2Econf :<br>>> <br>>> <match target=3D"f= ont"><br>>> <edit mode=3D"assign" name=3D"rgba"><br>>= > <const>rgb</const><br>>> </edit><br>= >> <edit mode=3D"assign" name=3D"hinting"><br>>> = <bool>true</bool><br>>> </edit><br>>> = <edit mode=3D"assign" name=3D"hintstyle"><br>>> <co= nst>hintslight</const><br>>> </edit><br>>> = <edit mode=3D"assign" name=3D"antialias"><br>>> <bo= ol>true</bool><br>>> </edit><br>>> <e= dit mode=3D"assign" name=3D"lcdfilter"><br>>> <const>l= cddefault</const><br>>> </edit><br>>> </ma= tch><br>>> <br>>> In any case this isn't an openbox issue, a= nd you may get better<br>>advice in an<br>>> emacs or fontconfig f= orum=2E<br>>> _______________________________________________<br>>= > openbox mailing list<br>>> openbox@icculus=2Eorg<br>>> <a = href=3D"http://icculus=2Eorg/mailman/listinfo/openbox">http://icculus=2Eorg= /mailman/listinfo/openbox</a><br>><br>>-- <br>>Important Notice: T= his mailbox is ignored: e-mails are set to be<br>>deleted on receipt=2E = Please respond to the mailing list if appropriate=2E<br>>For those needi= ng to send personal or professional e-mail, please use<br>>appropriate a= ddresses=2E<br>><br>>_______________________________________________<= br>>openbox mailing list<br>>openbox@icculus=2Eorg<br>>http://iccu= lus=2Eorg/mailman/listinfo/openbox<br> ------AU6WXOFGOVK29X67NORKHJFM3XHK6E-- --===============3216963893149326939== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18Kb3BlbmJveCBt YWlsaW5nIGxpc3QKb3BlbmJveEBpY2N1bHVzLm9yZwpodHRwOi8vaWNjdWx1cy5vcmcvbWFpbG1h bi9saXN0aW5mby9vcGVuYm94 --===============3216963893149326939==--