LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-28-2018, 03:38 AM   #1
bakura_666
LQ Newbie
 
Registered: May 2017
Distribution: Slackware64 14.2
Posts: 13

Rep: Reputation: Disabled
xterm throw errors with latest terminus-font in latest -current


Hello,

I just update my notebook today with latest Slackware64-current packages and xterm with terminus-font does not work, displaying this error:

Code:
xterm: Selected font has no non-zero height for ISO-8859-1 encoding
Both versions of xterm and terminus-font are:

Code:
/var/lib/pkgtools/packages/xterm-341-x86_64-1
/var/lib/pkgtools/packages/terminus-font-4.40-noarch-3
And my .Xdefaults file is:

Code:
xterm*faceName: xft:Terminus:pixelsize=15
#xterm*faceName: xft:Monospace:pixelsize=15
xterm*background: #000000
xterm*foreground: #FFFFFF
Has anyone found this problem too?

Thanks.
 
Old 12-28-2018, 05:22 AM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,918

Rep: Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035
Working here, using these settings:
Code:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!  These resources will, as much as possible, configure xterm to look
!  like a linux console.
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

XTerm.termName: xterm-new
!   Use the more featureful 'xterm-new' terminfo entry.
XTerm.locale: true
!   Enable conversion between the locale and utf-8 if necessary.
!XTerm.ptyInitialErase: false
!   Set the tty erase setting to match the terminfo/cap definition for
!   this terminal type.
!XTerm.backarrowKeyIsErase: true
!   Send the erase character when the backarrow key (a.k.a. backspace)
!   is pressed.
XTerm.vt100.metaSendsEscape: true
!   Send meta-characters as a two-byte sequence prefixed with ESCAPE.
!   "XTerm.vt100.eightBitInput: false" is an alternative approach
!   but metaSendsEscape has a menu option in the ctrl-button1
!   popup menu, allowing the user to turn it off if need be. The
!   Linux console and most other terminal emulators do this by default.
XTerm.vt100.bellIsUrgent: true
!   Enable urgency hit for Window managers.
XTerm.vt100.renderFont: false
!   Use bitmap fonts by default.User can switch to ttyfonts from menu,
!   if required. 
XTerm.vt100.font: -*-terminus-bold-r-normal-*-20-*-*-*-*-*-iso10646-1
XTerm.vt100.font1: -*-terminus-bold-r-normal-*-12-*-*-*-*-*-iso10646-1
XTerm.vt100.font2: -*-terminus-bold-r-normal-*-14-*-*-*-*-*-iso10646-1
XTerm.vt100.font3: -*-terminus-bold-r-normal-*-16-*-*-*-*-*-iso10646-1
XTerm.vt100.font4: -*-terminus-bold-r-normal-*-20-*-*-*-*-*-iso10646-1
XTerm.vt100.font5: -*-terminus-bold-r-normal-*-24-*-*-*-*-*-iso10646-1
XTerm.vt100.font6: -*-terminus-bold-r-normal-*-32-*-*-*-*-*-iso10646-1

XTerm.vt100.faceName: monospace
XTerm.vt100.faceSize: 14.0
XTerm*Background: rgb:00/00/00
XTerm*Foreground: rgb:aa/aa/aa
XTerm*cursorUnderLine: true
XTerm*cursorBlink: true
XTerm*boldMode: false
XTerm*colorULMode: true
XTerm*colorUL: rgb:00/aa/aa
XTerm*colorBDMode: true
XTerm*colorBD: rgb:ff/ff/ff
! CGA 16-colour palatte:
XTerm*color0: rgb:00/00/00
XTerm*color1: rgb:aa/00/00
XTerm*color2: rgb:00/aa/00
XTerm*color3: rgb:aa/55/00
XTerm*color4: rgb:00/00/aa
XTerm*color5: rgb:aa/00/aa
XTerm*color6: rgb:00/aa/aa
XTerm*color7: rgb:aa/aa/aa
XTerm*color8: rgb:55/55/55
XTerm*color9: rgb:ff/55/55
XTerm*color10: rgb:55/ff/55
XTerm*color11: rgb:ff/ff/55
XTerm*color12: rgb:55/55/ff
XTerm*color13: rgb:ff/55/ff
XTerm*color14: rgb:55/ff/ff
XTerm*color15: rgb:ff/ff/ff

XTerm*charClass: 45-47:48,58:48,64:48

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
4 members found this post helpful.
Old 12-29-2018, 03:42 AM   #3
bakura_666
LQ Newbie
 
Registered: May 2017
Distribution: Slackware64 14.2
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hello GazL,

I tested your settings and Xterm just works with Terminus font, so I adapt your settings to my Xdefaults file and this is how my Xdefault looks now:

Code:
!XTerm.VT100.faceName: terminus
XTerm.VT100.renderFont: false
XTerm.VT100.font: -*-terminus-bold-r-normal-*-14-*-*-*-*-*-iso10646-1
!XTerm.VT100.font: -*-terminus-bold-r-normal-*-20-*-*-*-*-*-iso8859-1
!XTerm.VT100.font1: -*-terminus-bold-r-normal-*-12-*-*-*-*-*-iso10646-1
!XTerm.VT100.font2: -*-terminus-bold-r-normal-*-14-*-*-*-*-*-iso10646-1
!XTerm.VT100.font3: -*-terminus-bold-r-normal-*-16-*-*-*-*-*-iso10646-1
!XTerm.VT100.font4: -*-terminus-bold-r-normal-*-20-*-*-*-*-*-iso10646-1
!XTerm.VT100.font5: -*-terminus-bold-r-normal-*-24-*-*-*-*-*-iso10646-1
!XTerm.VT100.font6: -*-terminus-bold-r-normal-*-32-*-*-*-*-*-iso10646-1

!XTerm.VT100.faceSize: 10
!XTerm.VT100.renderFont: true
!XTerm.VT100.faceName: terminus
!XTerm.VT100.faceSize: 14

!XTerm.VT100.faceName: monospace
!XTerm.VT100.faceSize: 12.0
XTerm*background: #000000
XTerm*foreground: #FFFFFF
XTerm*boldMode: false
I just realize than the problem was the encoding setting: in my first post, the Xdefault does not have the encoding setting and in this new Xdefault, the encoding ISO8859-1 does not work and throw the error I posted, but after I changed it to ISO10646 xterm runs again, so maybe there is a problem with new XTerm version and the ISO8859-1 encoding. In my other computer running Slackware64 14.2, XTerm does not have this problem (XTerm version is 325-x86_64-1 and terminus-font version is 4.40-noarch-1) and my previous Xdefaults works fine.
 
Old 12-31-2018, 11:24 AM   #4
phalange
Member
 
Registered: May 2018
Distribution: Slackware, FreeBSD, Debian
Posts: 355

Rep: Reputation: 184Reputation: 184
Quote:
Originally Posted by bakura_666 View Post
Has anyone found this problem too?
I can confirm I had this problem too. After upgrading current yesterday I couldn't launch xterm or uxterm. The issue was indeed the font settings which I had defined in my .Xresources file.

Quote:
Originally Posted by GazL View Post
Working here, using these settings
GazL, thanks for posting your settings - they worked for me, and I adapted them to my setup. Plus you really captured the classic look.

++

I haven't had a chance to root out the problem, but it seems that using old-school XLFD font settings sorted things out, at least in the case of terminus font.

Previously I was using xft syntax
Code:
XTerm*faceName: terminus:antialias=true
XTerm*faceSize: 14
 
Old 12-31-2018, 02:18 PM   #5
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,918

Rep: Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035
terminus is a bit-mapped font, so I'm not sure there's much point in trying to render it through the freetype engine. Plus, xterm supports DECDHL (double width/height lines) when using bit-mapped fonts, which is the main reason I configure it the way I do.

Anyway, I'm glad you found it helpful.
 
Old 01-01-2019, 02:55 AM   #6
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,938

Rep: Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568
After Mon Dec 31 21:33:54 UTC 2018 (xterm-341-x86_64-2.txz) I get "xterm: cannot load font "-*-terminus-bold-r-normal-*-20-*-*-*-*-*-iso10646-1"
" and very small fonts when launching xterm on a Slackware-current box. I don't think I have terminus fonts on cygwin (on windows 10) where my X server runs. mv /etc/X11/app-defaults/XTerm.upstream.default /etc/X11/app-defaults/XTerm fixed it.
 
Old 01-01-2019, 08:29 AM   #7
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
my .Xdefaults

Code:
xterm*font:	 -xos4-terminus-bold-r-normal-*-32-*-*-*-*-*-*-*
xterm*saveLines: 2000
xterm*foreground: rgb:ff/ff/ff
xterm*background: rgb:00/00/00
xft.dpi: 96
xft.hinting:1
xft.dpi: 96
Xcursor*theme: redglass
maybe try running xfontsel and make sure you have the line for xterm*font set correctly, i have a 1080x1900 monitor which is rather large so i set my fonts large, you might want to set your fonts to a comfortable size for your viewing pleasure
 
Old 01-01-2019, 08:49 AM   #8
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by Okie View Post
i have a 1080x1900 monitor which is rather large
Mine is 25.5" with a resolution of 1920x1200 (Samsung SyncMaster 2693HM).
Is nice when you get older like me.
 
Old 01-01-2019, 03:50 PM   #9
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,348

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948
archlinux patch the terminus package with this patch , im not test ,and im not sure if this helps to solved the problem.

https://git.archlinux.org/svntogit/c.../terminus-font
 
Old 01-01-2019, 07:14 PM   #10
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,548

Rep: Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557
Quote:
Originally Posted by USUARIONUEVO View Post
archlinux patch the terminus package with this patch , im not test ,and im not sure if this helps to solved the problem.

https://git.archlinux.org/svntogit/c.../terminus-font
I think that only makes a difference with more recent versions of the Terminus font. BTW, that renaming of the font family is why I've stayed away from those versions for now. There's no noticeable advantage that I can see to them, and it messes up everyone's existing settings.
 
1 members found this post helpful.
Old 01-02-2019, 03:47 AM   #11
bakura_666
LQ Newbie
 
Registered: May 2017
Distribution: Slackware64 14.2
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thanks you all guys for the replys!

I just upgrade XTerm to the latest version upload yesterday (xterm-341-x86_64-3) and I can set the Terminus font using this Xdefaults settings:

Code:
xterm*font: -*-terminus-medium-r-*-*-17-*-*-*-*-*-iso8859-15
!xterm*faceName: terminus
!xterm*faceSize: 16
xterm*background: #000000
xterm*foreground: #FFFFFF
xterm*geometry: 80x25
Thanks you!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
terminus-font not displaying correctly in gtk. 313 Linux - Newbie 1 09-13-2013 06:29 AM
terminus package doesn't work properly / cant use terminus font polemon DamnSmallLinux 2 10-14-2007 03:39 PM
terminus-font for console syvy Slackware 8 08-14-2007 05:27 PM
How to use terminus font? ccccc Linux - General 2 01-15-2007 02:28 PM
Terminus-font vs Monospace vs Vera sans mono macondo Debian 2 05-16-2006 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration