Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
10-27-2012, 09:44 AM
|
#1
|
|
Senior Member
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,856
|
Underline "_" in Xterm invisible
Hi,
in my .Xresources file I have the following line
Code:
XTerm.*.faceName: Deja Vu Sans Mono:pixelsize=14:spacing=mono
which configures the font for my xterm. Unfortunately the "_" (underline) is only visible when the text is bold.
In fact I like this font, but it is very inconvenient when programming because one cannot see if for example "my_variable" is one or two words.
Is there a workaround?
Markus
|
|
|
|
10-27-2012, 10:32 AM
|
#2
|
|
Member
Registered: Jun 2009
Posts: 36
Rep:
|
Quote:
Originally Posted by markush
Hi,
in my .Xresources file I have the following line
Code:
XTerm.*.faceName: Deja Vu Sans Mono:pixelsize=14:spacing=mono
which configures the font for my xterm. Unfortunately the "_" (underline) is only visible when the text is bold.
|
The scaleHeight resource, as mentioned here: http://invisible-island.net/xterm/xt...html#xterm_276
|
|
|
1 members found this post helpful.
|
10-27-2012, 11:52 AM
|
#3
|
|
Senior Member
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,856
Original Poster
|
Hello, thanks for the answer, the sh-option seems to work, but when I use
I get double linespace and values of 1.1 or 1.2 up to 1.9 make no difference.
Markus
|
|
|
|
10-30-2012, 05:53 AM
|
#4
|
|
Member
Registered: Jun 2009
Posts: 36
Rep:
|
Quote:
Originally Posted by markush
Hello, thanks for the answer, the sh-option seems to work, but when I use
I get double linespace and values of 1.1 or 1.2 up to 1.9 make no difference.
Markus
|
hmm - if I can reproduce this, I can investigate. At the moment I'm not seeing this (with
Debian 6.0). On that, fc-list says I have "DejaVu Sans Mono:Bold Oblique". Running xterm
with/without the space makes no difference (underlines always show up).
|
|
|
1 members found this post helpful.
|
10-30-2012, 07:10 AM
|
#5
|
|
Senior Member
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,856
Original Poster
|
dickey, your help is very welcome, but the problem's still present.
I could now verify that this problem occurs for pixelsizes from 14 upwards.
I think I'll have to try another font.
Markus
Last edited by markush; 10-30-2012 at 07:11 AM.
|
|
|
|
10-30-2012, 07:17 AM
|
#6
|
|
Senior Member
Registered: May 2008
Posts: 2,841
|
Deja Vu sans mono works fine here and is my preferred font.
hinting can make a significant effect on this font though.
Code:
cd /etc/fonts/conf.d && ln -s ../conf.avail/10-autohint.conf
.Xresources:
Code:
gazl@ws1:~$ cat .Xresources
xft.antialias: true
XTerm.*.background: black
XTerm.*.foreground: lightblue
XTerm.*.faceName: Deja Vu Sans Mono
XTerm.*.metaSendsEscape: true
XTerm.*.backarrowKey: false
! Tango Color Scheme
*color0: #2e3436
*color1: #cc0000
*color2: #4e9a06
*color3: #c4a000
*color4: #3465a4
*color5: #75507b
*color6: #0b939b
*color7: #d3d7cf
*color8: #555753
*color9: #ef2929
*color10: #8ae234
*color11: #fce94f
*color12: #729fcf
*color13: #ad7fa8
*color14: #00f5e9
*color15: #eeeeec
|
|
|
|
10-30-2012, 07:54 AM
|
#7
|
|
Senior Member
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,856
Original Poster
|
No difference. Gazl, it seems my .Xresources file is very similar to your's.
Where is a detailed documentation about the fonts in X?
Markus
|
|
|
|
10-30-2012, 08:29 AM
|
#8
|
|
Member
Registered: Jan 2011
Distribution: Slackware 14.0
Posts: 94
Rep:
|
Quote:
Originally Posted by markush
Hello, thanks for the answer, the sh-option seems to work, but when I use
I get double linespace and values of 1.1 or 1.2 up to 1.9 make no difference.
|
When you get double linespace can you see the "_" character?
|
|
|
1 members found this post helpful.
|
10-30-2012, 08:30 AM
|
#9
|
|
Senior Member
Registered: May 2008
Posts: 2,841
|
I don't think there is one source of information for this stuff. It's all rather messy and certain bits have evolved or been obsoleted over time. Best just to google for 'X' and 'fonts' and start there.
The desktop environments such as kde/xfce have their own hinting settings which can have a major effect. if you're using one of those desktops then perhaps try playing with the settings. You may also want to try using a minimal window-manager based desktop (which is what I use) which won't interfere with the font rendering.
Other than that, the only other thing I can think of that might cause your underscore to go missing would be if your X display is not running at the native resolution of your screen (assuming lcd panel).
Other than the above, I can't think of any other suggestions.
Last edited by GazL; 10-30-2012 at 08:47 AM.
Reason: spelling/typos
|
|
|
1 members found this post helpful.
|
10-30-2012, 08:30 AM
|
#10
|
|
Senior Member
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,856
Original Poster
|
Quote:
Originally Posted by fgcl2k
When you get double linespace can you see the "_" character?
|
Yes, then it is visible.
Markus
|
|
|
|
10-30-2012, 08:48 AM
|
#11
|
|
Senior Member
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,856
Original Poster
|
Gazl, I had an idea and tried other WMs, normally I use Xmonad. The problem with xterm is the same with fluxbox and blackbox, XFCE has completely other settings for xterm.
Now I am using Terminal from XFCE and this works fine.
Markus
|
|
|
|
10-30-2012, 09:05 AM
|
#12
|
|
Senior Member
Registered: May 2008
Posts: 2,841
|
Very odd that we get different results. I've tried xterm with font sizes from tiny->huge and they all display just fine (though when I use xmag it does look like the underscore is only a single pixel high when rendered so it would be susceptible to obliteration by any errant rendering.
Just out of interest. If you run xmag -mag 16 and select the area where the missing underscore is, do you see it in the magnification
|
|
|
1 members found this post helpful.
|
10-30-2012, 09:09 AM
|
#13
|
|
Senior Member
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,856
Original Poster
|
Quote:
Originally Posted by GazL
...
Just out of interest. If you run xmag -mag 16 and select the area where the missing underscore is, do you see it in the magnification
|
No, even in the magnification it is invisible.
Markus
|
|
|
|
10-31-2012, 04:47 AM
|
#14
|
|
Member
Registered: Jun 2009
Posts: 36
Rep:
|
Quote:
Originally Posted by GazL
Very odd that we get different results.
|
Not so odd, considering that a lot of the hinting configuration is installed automatically (and not consistently from one platform to another). Given a specific version and configuration, it's (usually...) possible to isolate the problem.
|
|
|
|
12-12-2012, 06:06 PM
|
#15
|
|
Senior Member
Registered: May 2008
Posts: 2,841
|
Don't know whether you got anywhere with this Markus, but I just thought you'd be interested to know that when I just tried the latest nouveau and libdrm version from git on my system, my underscores disappeared too, so you're not alone in this. I swapped back to using the nvidia blob.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:04 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|