[openbox] using openbox with HiDPi display

Jim Rees jim at rees.org
Tue Oct 23 09:59:36 EDT 2018

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 :

  <match target="font">
    <edit mode="assign" name="rgba">
    <edit mode="assign" name="hinting">
    <edit mode="assign" name="hintstyle">
    <edit mode="assign" name="antialias">
    <edit mode="assign" name="lcdfilter">

In any case this isn't an openbox issue, and you may get better advice in an
emacs or fontconfig forum.

More information about the openbox mailing list