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 10th December 2021
gustaf gustaf is offline
Fdisk Soldier
 
Join Date: Dec 2016
Posts: 69
Default What are X11 built-in fonts?

My X11 font path lists "built-ins," but doesn't provide any other clues as to where these built-ins might be.
Code:
$ xset -q
Font Path:
  /usr/X11R6/lib/X11/fonts/misc/,
  /usr/X11R6/lib/X11/fonts/TTF/,
  /usr/X11R6/lib/X11/fonts/OTF/,
  /usr/X11R6/lib/X11/fonts/Type1/,
  /usr/X11R6/lib/X11/fonts/100dpi/,
  /usr/X11R6/lib/X11/fonts/75dpi/,
  built-ins
I'm assuming that these are X font server fonts (as opposed to client fonts in the directories), although I could be wrong about this, since I don't completely understand how fonts are configured on OpenBSD.

Is there a command for finding the location of the X11 built-in fonts? Or some other way to determine what/where they are?

Thanks.
Reply With Quote
  #2   (View Single Post)  
Old 10th December 2021
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 465
Default

You can view all available fonts along with their location by using fc-list(1).
__________________
Are you infected with Wetiko?
Reply With Quote
  #3   (View Single Post)  
Old 10th December 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Per /usr/xenocara/lib/libXfont2/README.md:
Code:
  * builtins - copies of the "fixed" & "cursor" fonts required by the
    X protocol are built into the library so the X server always
    has the fonts it requires to start up.   Accessed via the
    special 'built-ins' entry in the X server font path.  
    Enabled by default, disable via --disable-builtins.
Reply With Quote
  #4   (View Single Post)  
Old 10th December 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Looking at the bottom of /usr/xenocara/lib/libXfont2/src/builtins/fonts.c, where these are built, both classes of fonts are 6x13 medium condensed.
Reply With Quote
  #5   (View Single Post)  
Old 11th December 2021
gustaf gustaf is offline
Fdisk Soldier
 
Join Date: Dec 2016
Posts: 69
Default

Hi jggimi,

Thanks for pointing me to /usr/xenocara/lib/libXfont2/README.md. From the first paragraph (emphasis mine):
Code:
libXfont provides the core of the legacy X11 font system, handling the index 
files (fonts.dir, fonts.alias, fonts.scale), the various font file formats,
and rasterizing them.  It is used by the X display servers (Xorg, Xvfb, etc.) 
and the X Font Server (xfs), but should not be used by normal X11 clients.  
X11 clients access fonts via either the new APIs in libXft, or the legacy 
APIs in libX11.
From reading this and other documentation, and poking around my file system, it seems that built-ins are only part of the libXfont library, and are only used to start the X server. Again, I could be wrong about this.

Do the built-in fonts show up in fc-list(1), xfontsel(1), file system directories, or application font lists, etc?

If the built-ins aren't used by anything after X starts, is it safe to remove "built-ins" from my font path?
Reply With Quote
  #6   (View Single Post)  
Old 11th December 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

How do you plan on removing them from your font path?
Reply With Quote
  #7   (View Single Post)  
Old 11th December 2021
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 465
Default

Quote:
Originally Posted by gustaf View Post
Do the built-in fonts show up in fc-list(1), xfontsel(1)
The fc-list(1) command only lists fonts known to fontconfig, which does not include bitmap fonts; xfontsel(1) does list bitmap fonts and should have fixed listed as one of the families ("fmly").
Quote:
Originally Posted by jggimi View Post
How do you plan on removing them from your font path?
This command in the relevant desktop startup file (eg, ~/.xsession) should work:
Code:
xset -fp built-ins
__________________
Are you infected with Wetiko?
Reply With Quote
  #8   (View Single Post)  
Old 14th December 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Quote:
Originally Posted by gustaf View Post
Do the built-in fonts show up in fc-list(1), xfontsel(1), file system directories, or application font lists, etc?
The fonts(7) man page explains that there are two separate font systems: Xft and the core font system. They are not compatible with each other.
Reply With Quote
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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PostgreSQL 9.0 beta has replication built in J65nko News 0 4th May 2010 10:32 PM
Headphones versus built-in speakers ddrx OpenBSD General 6 28th November 2009 05:07 PM
Misc. BSD/UNIX ZFS just got built-in deduplication vermaden News 3 3rd November 2009 01:03 PM
a novel idea: a sh with a `fork built-in? TerryP Programming 4 25th March 2009 07:17 PM
Keyboard with built in mouse trackball blodan FreeBSD General 2 21st June 2008 07:44 PM


All times are GMT. The time now is 10:57 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