DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th October 2019
stanl stanl is offline
Real Name: Stan
Package Pilot
 
Join Date: Jun 2019
Location: New York
Posts: 163
Default spleen as console font

From what I read, spleen has been the default console font on OpenBSD for several months now.

I have 2 problems:

1) On the console, certain characters (apostrophes) do not show up correctly.

2) Following the instructions at:

https://github.com/fcambus/spleen

for how to use this font in xterm by editing Xdefaults returns:

xterm: did not find a usable bold TrueType font.

The line is: XTerm*faceName: spleenixelsize=16:antialias=false

I have the following in my .xsession:

xset fp default
for font in /usr/local/share/fonts/* ; do
xset fp+ $font
done

xset fp rehash

Is this correct or am I doing something wrong?

Thank you
Reply With Quote
  #2   (View Single Post)  
Old 28th October 2019
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

The Spleen font was added to the ports tree in September, 2018, for OpenBSD 6.4. It was added to wsfont(4) later the same month. It became the console font in January of this year, for OpenBSD 6.5. Font sizes are chosen based on column width. From the CVS log for src/sys/dev/wsfont/wsfont.c:
Code:
revision 1.55
date: 2019/01/09 11:23:32;  author: fcambus;  state: Exp;  lines: +29 -13;  commitid: MoBCxKiAlFajRvSm;
Enable Spleen in wsfont and modify the font selection logic at runtime
in rasops(9) to allow selecting larger fonts when available.

Summary of the changes:

- Enable spleen8x16 for all architectures, replacing bold8x16_iso1.
- Enable spleen12x24 on all arches but sparc64, replacing gallant12x22.
- Enable spleen16x32 and spleen32x64 on amd64, i386, and arm64 for
  GENERIC kernels.
- Modify the font selection logic in rasops(9) so the 16x32 and 32x64
  fonts are selected if at least 120 columns can be displayed. Screens
  with widths equal or larger than 1920px will use the 16x32 font, and
  screens with widths equal or larger than 3840px the 32x64 one.

OK kettenis@, ratchov@, deraadt@
To use the font in X, first install the spleen package with # pkg_add spleen, then add it to an xorg.conf(5) snippet file, such as this entry in my /etc/X11/xorg.conf.d/packagefonts.conf file:
Code:
Section "Files"
       .
       .
       FontPath "/usr/local/share/fonts/spleen"
       .
       .
EndSection
Reply With Quote
  #3   (View Single Post)  
Old 28th October 2019
stanl stanl is offline
Real Name: Stan
Package Pilot
 
Join Date: Jun 2019
Location: New York
Posts: 163
Default spleen as console font

Thank you for replying, jggimi. Unfortunately, I'm still confused about the console.
If spleen is the default console font then shouldn't it just work? On my ThinkPad x220 certain characters (apostrophes for example) do not show up correctly.

I read the FAQ section on keyboard and display controls but since I use the drm driver I don't see a way to fix this.

In an ideal world I'd like to use the Terminus font but I'll take any font that renders properly.

Thanks again
Reply With Quote
  #4   (View Single Post)  
Old 28th October 2019
johnR johnR is offline
Fdisk Soldier
 
Join Date: Nov 2017
Posts: 57
Default

Quote:
Originally Posted by stanl View Post
On my ThinkPad x220 certain characters (apostrophes for example) do not show up correctly.
What do they show up as? That might give a clue to what is wrong.
Reply With Quote
  #5   (View Single Post)  
Old 29th October 2019
stanl stanl is offline
Real Name: Stan
Package Pilot
 
Join Date: Jun 2019
Location: New York
Posts: 163
Default spleen as console font

Double quotation marks and apostrophes show up as the letter 'a' under ^. â

I don't know what other information I can give but if there is anything, please let me know.
Reply With Quote
  #6   (View Single Post)  
Old 29th October 2019
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 304
Default

Are you setting LC_CTYPE in your ~/.profile or elsewhere?

I had a similar issue with LC_CTYPE=en_US.UTF-8. I mostly saw issues in man pages only in the console.

If that's your issue, move that setting out of .profile and into ~.xinitrc or ~.xsession instead.
Reply With Quote
  #7   (View Single Post)  
Old 29th October 2019
stanl stanl is offline
Real Name: Stan
Package Pilot
 
Join Date: Jun 2019
Location: New York
Posts: 163
Default spleen as console font

I had that line in ~/.kshrc. I moved it into ~/.xsession as you suggested and it solves my problem, altho Idon't understand why. I would have thought xsession and kshrc only came into play when running X and wouldn't affect virtual terminals.

In any case, thank you very much. I sincerely appreciate the help you and others have provided.
Reply With Quote
  #8   (View Single Post)  
Old 29th October 2019
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

$HOME/.kshrc is usually invoked when ksh(1) is run as an interactive shell. This could happen either in a virtual terminal or under X in an xterm or similar.

Last edited by IdOp; 29th October 2019 at 02:39 PM. Reason: grammar|spelling
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Font size psypro OpenBSD General 8 3rd March 2017 05:19 AM
How To: Terminus font in console Mike-Sanders FreeBSD General 5 7th July 2015 03:06 PM
font-misc-ethiopic & font-misc-meltho Beastie General software and network 0 27th February 2009 11:21 AM
CLI font size idefix FreeBSD General 3 7th February 2009 11:19 AM
Odd font display TerryP Feedback and Suggestions 4 2nd November 2008 11:22 AM


All times are GMT. The time now is 02:42 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick