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 &lt;maitra@email=2Ecom&gt; wrote:<br>&gt;Hi,<br>&gt;<br>&gt;Thank you=
 for your detailed response=2E Your explanations make sense=2E<br>&gt;<br>&=
gt;On Tue, 23 Oct 2018 09:59:36 -0400 Jim Rees &lt;jim@rees=2Eorg&gt; wrote=
:<br>&gt;<br>&gt;&gt; X bitmap fonts are measured in pixels=2E If 10x20 is =
too small, use<br>&gt;something<br>&gt;&gt; bigger=2E But 10x20 is the bigg=
est fixed font in X, so you may be out<br>&gt;of luck=2E<br>&gt;&gt; <br>&g=
t;&gt; If it looks good in aNu, that means aNu is doing something<br>&gt;no=
n-standard,<br>&gt;&gt; like doubling the size of the font=2E You can't exp=
ect other<br>&gt;applications to<br>&gt;&gt; do the same=2E That's why scal=
able fonts were invented=2E There may be<br>&gt;some way<br>&gt;&gt; to sca=
le bitmap fonts in emacs, but I don't know what it would be=2E<br>&gt;Maybe=
<br>&gt;&gt; something like this?<br>&gt;&gt; <br>&gt;&gt; (set-face-attrib=
ute 'default nil :font "fixed" :height 120)<br>&gt;<br>&gt;I tried this, bu=
t nothing seemed to change=2E So I looked around and<br>&gt;found this with=
 this response on the stackoverflow sites:<br>&gt;<br>&gt;https://emacs=2Es=
tackexchange=2Ecom/questions/10438/how-to-set-the-default-font-size/10439#1=
0439<br>&gt;<br>&gt;where I got from:<br>&gt;https://unix=2Estackexchange=
=2Ecom/questions/242067/emacs-on-hidpi-screen-renders-unreadable-fonts-arch=
-linux#242155<br>&gt;<br>&gt;(add-to-list 'default-frame-alist '(font =2E F=
ONT ))<br>&gt;(set-face-attribute 'default t :font FONT )<br>&gt;<br>&gt;wh=
ere FONT is a string naming the font you want, for example, "Droid<br>&gt;S=
ans Mono-10"=2E<br>&gt;<br>&gt;Also, apparently we should also set the defa=
ult font using =2EXresources<br>&gt;and the Emacs daemon=2E An example of a=
 line suitable for ~/=2EXresources<br>&gt;for setting the default font size=
 is<br>&gt;<br>&gt;Emacs=2Edefault=2EattributeHeight: 94<br>&gt;<br>&gt;So,=
 I was not sure what to put in with the FONT? Should it be Fixed<br>&gt;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>&gt;understand that this is not an openbox question but an emacs on HiD=
PI<br>&gt;question=2E <br>&gt;<br>&gt;Many thanks and best wishes,<br>&gt;R=
anjan<br>&gt;<br>&gt;&gt; <br>&gt;&gt; But my recommendation to you is that=
 you use scalable fonts=2E They<br>&gt;should<br>&gt;&gt; look better than =
bitmap fonts, not worse, especially on a hi-res<br>&gt;display=2E If<br>&gt=
;&gt; they don't look perfectly sharp and clear on your hi-dpi display,<br>=
&gt;it's<br>&gt;&gt; likely you've got something configured wrong=2E At one=
 time I had to<br>&gt;add<br>&gt;&gt; something like this to my ~/=2Econfig=
/fontconfig/fonts=2Econf :<br>&gt;&gt; <br>&gt;&gt;   &lt;match target=3D"f=
ont"&gt;<br>&gt;&gt;     &lt;edit mode=3D"assign" name=3D"rgba"&gt;<br>&gt;=
&gt;       &lt;const&gt;rgb&lt;/const&gt;<br>&gt;&gt;     &lt;/edit&gt;<br>=
&gt;&gt;     &lt;edit mode=3D"assign" name=3D"hinting"&gt;<br>&gt;&gt;     =
  &lt;bool&gt;true&lt;/bool&gt;<br>&gt;&gt;     &lt;/edit&gt;<br>&gt;&gt;  =
   &lt;edit mode=3D"assign" name=3D"hintstyle"&gt;<br>&gt;&gt;       &lt;co=
nst&gt;hintslight&lt;/const&gt;<br>&gt;&gt;     &lt;/edit&gt;<br>&gt;&gt;  =
   &lt;edit mode=3D"assign" name=3D"antialias"&gt;<br>&gt;&gt;       &lt;bo=
ol&gt;true&lt;/bool&gt;<br>&gt;&gt;     &lt;/edit&gt;<br>&gt;&gt;     &lt;e=
dit mode=3D"assign" name=3D"lcdfilter"&gt;<br>&gt;&gt;       &lt;const&gt;l=
cddefault&lt;/const&gt;<br>&gt;&gt;     &lt;/edit&gt;<br>&gt;&gt;   &lt;/ma=
tch&gt;<br>&gt;&gt; <br>&gt;&gt; In any case this isn't an openbox issue, a=
nd you may get better<br>&gt;advice in an<br>&gt;&gt; emacs or fontconfig f=
orum=2E<br>&gt;&gt; _______________________________________________<br>&gt;=
&gt; openbox mailing list<br>&gt;&gt; openbox@icculus=2Eorg<br>&gt;&gt; <a =
href=3D"http://icculus=2Eorg/mailman/listinfo/openbox">http://icculus=2Eorg=
/mailman/listinfo/openbox</a><br>&gt;<br>&gt;-- <br>&gt;Important Notice: T=
his mailbox is ignored: e-mails are set to be<br>&gt;deleted on receipt=2E =
Please respond to the mailing list if appropriate=2E<br>&gt;For those needi=
ng to send personal or professional e-mail, please use<br>&gt;appropriate a=
ddresses=2E<br>&gt;<br>&gt;_______________________________________________<=
br>&gt;openbox mailing list<br>&gt;openbox@icculus=2Eorg<br>&gt;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==--