After several years of happily using different terminal emulators like Konsole , Gnome-TERMINAL , and lately XFCE Terminal in their appropriate desktop environments, I decided to use good old **xterm** with its **bitmap fonts**. It works just fine, it supports Unicode, and the default **fixed font family** contains characters from nearly all languages, which is great.
But I came across an important problem. The fonts are really small. Even the so called *Huge* size (which is 10x20 bitmap font) is very small for me, and unusable.
My default setting for the XFCE environment is set to 120 dpi, but
xpdyinfo
reports 97x97 DPI
$ xdpyinfo |grep resolution
resolution: 97x97 dots per inch
So I tried to change the DPI with xrandr
, but It didn't help.
$ xrandr --dpi 120
The result seems to be applied
$ xdpyinfo | grep resolution
resolution: 120x120 dots per inch
but it does not change the resolution of xterm
at all. I have even tried to use scaling, but it affected the whole X, rather than a single application:
$ xrandr --output LVDS1 --scale 0.5x0.5
There are workarounds for Qt and Gtk , but what about Xlib
-based applications like Xterm
, Xcalc
, Xman
, Xfige
, etc? *Should we watch them fade away, as the display DPI goes up? Please Help if you know any workarounds.*
-----------
*This is what I have done, which worked somehow, but I couldn't be able to use the original "fixed font family", so it may now work for some languages only.*
-----------
PS1: I have installed 100 DPI fonts for X, but I couldn't use them
$ sudo apt-get install xfonts-100dpi
PS2: Fontforge
which also uses Xlib
, uses a nice theme and normal font sizes. I don't know how it does that.
PS3: I am testing otf2bdf
and bdftopcf
utiliites to create experimental PCF
bitmap fonts for HIDPI from vector TTF/OTF
fonts.
PS4: After installing 100DPI fonts, this was good, although it lacks great language support of the default fixed
font.
$ xterm -font -Adobe-Courier-Bold-r-Normal-*-34-*-100-100-*-*-*-*
I have used fontsel
. It is really helpful.
PS5: This is also useful.
PS6: I could be able to create 120DPI bitmap font from **Courier New** with 20pt
$ otf2bdf -p 20 -r 120 cour.ttf > cour.bdf
$ bdftopcf cour.bdf | gzip - > cour.pcf.gz
$ sudo cp cour.pcf.gz /usr/share/fonts/X11/misc/
$ fc-cache
$ xterm -font -*-*-*-*-*-*-*-*-120-120-*-*-*-*
PS7: 75 DPI is hardcoded in the BDF font. Maybe changing it will help.
PS8: vncdesk is a good tool to use to scale up a single window .
Asked by Ho1
(2674 rep)
Jul 30, 2015, 11:18 PM
Last activity: Jun 6, 2020, 09:05 PM
Last activity: Jun 6, 2020, 09:05 PM