Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

5 votes
3 answers
2561 views
How to use Xfig on high DPI screen?
On a [high DPI][1] screen, lines in Xfig are very thin. *Is it possible to scale the lines, or the entire Xfig UI?* Note that I don't want to scale the entire desktop. Other application UIs are legible on high DPI screens. Perhaps a Wayland compositor can scale an individual window? [1]: https://uni...
On a high DPI screen, lines in Xfig are very thin. *Is it possible to scale the lines, or the entire Xfig UI?* Note that I don't want to scale the entire desktop. Other application UIs are legible on high DPI screens. Perhaps a Wayland compositor can scale an individual window?
feklee (563 rep)
Mar 25, 2015, 07:10 PM • Last activity: Aug 26, 2024, 01:36 PM
22 votes
3 answers
23383 views
Larger "xterm" fonts on HIDPI displays
After several years of happily using different terminal emulators like [Konsole][1], [Gnome-TERMINAL][2], and lately [XFCE Terminal][3] in their appropriate desktop environments, I decided to use good old [**xterm**][4] with its **bitmap fonts**. It works just fine, it supports Unicode, and the defa...
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 .
Ho1 (2674 rep)
Jul 30, 2015, 11:18 PM • Last activity: Jun 6, 2020, 09:05 PM
5 votes
1 answers
4119 views
Drawing a straight line with Pinta
I'm trying to superimpose a straight line onto a .png image. [GIMP][1] is notoriously impossible to use for simple things, so people have suggested [Pinta][2]. However, as far as I can tell, the only lines you can draw with this program are freeform ones, i.e., there doesn't appear to be anything li...
I'm trying to superimpose a straight line onto a .png image. GIMP is notoriously impossible to use for simple things, so people have suggested Pinta . However, as far as I can tell, the only lines you can draw with this program are freeform ones, i.e., there doesn't appear to be anything like a ruler tool. How can I draw a straight line? Or is there another program that does it? Again, I need to be super-imposing on an existing .png file, so Xfig won't work.
Leo Simon (453 rep)
Nov 4, 2019, 10:07 PM • Last activity: Apr 15, 2020, 04:16 AM
1 votes
1 answers
655 views
How to use special characters in xfig
I am trying to write special characters in `xfig`. I am putting character code within `$` sign, as normally done in latex > $x_1$ or $\mu$ or $\sigma$ I tried setting `Text Flags`, `Special Flag = Special`, but it didn't helped. When I export the file in `.eps` format, characters appears as it i.e....
I am trying to write special characters in xfig. I am putting character code within $ sign, as normally done in latex > $x_1$ or $\mu$ or $\sigma$ I tried setting Text Flags, Special Flag = Special, but it didn't helped. When I export the file in .eps format, characters appears as it i.e. $x_1$ or $\mu$ or $\sigma$. How to resolve this issue.
Atinesh Singh (113 rep)
Apr 24, 2017, 06:22 AM • Last activity: Apr 25, 2017, 12:10 AM
2 votes
0 answers
646 views
Legacy Xorg fonts.alias matching does not work anymore
I have # xset -q [...] Font-Path: /usr/share/fonts/misc/,/usr/share/fonts/TTF/,/usr/share/fonts/100dpi/,built-ins [...] and for example a /usr/share/fonts/misc/fonts.alias, that defines "fixed": (cd /usr/share/fonts; grep '^fixed' */fonts.alias) cyrillic/fonts.alias misc/fonts.alias and I though tha...
I have # xset -q [...] Font-Path: /usr/share/fonts/misc/,/usr/share/fonts/TTF/,/usr/share/fonts/100dpi/,built-ins [...] and for example a /usr/share/fonts/misc/fonts.alias, that defines "fixed": (cd /usr/share/fonts; grep '^fixed' */fonts.alias) cyrillic/fonts.alias misc/fonts.alias and I though that the fonts.alias would match for fontnames: # xlsfonts -fn fixed -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1 fixed (though the encoding iso8859-1 isn't even listed in any fonts.dir), actually # grep '^fixed' */fonts.alias # in /usr/share/fonts misc/fonts.alias:fixed -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1 that seems the right match, but # grep '^7x13bold' */fonts.alias misc/fonts.alias:7x13bold -misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-1 I get # xlsfonts -fn 7x13bold xlsfonts: pattern "7x13bold" unmatched and # xfig Warning: Cannot convert string "7x13bold" to type FontStruct so as far as I used to understand it, the XServer **should** match against fonts.alias, but doesn't. How does the Xorg Server matches fixed otherwise and fails to match 7x13bold or any other short form? _Please don't tell me about fontconfig. I know fontconfig and how to use it, but that does **not** help with legacy XLoadFont operation that XFig uses, for example._ May I need a xfontserver? I can't even see a gentoo package for the old xfs, possible because of security issues. Any further ideas welcome!
ikrabbe (2203 rep)
Sep 12, 2015, 07:19 AM
Showing page 1 of 5 total questions