You are not logged in.

#1 2019-01-03 10:45:48

medicineman25
Member
Registered: 2014-12-03
Posts: 110

[SOLVED] Having some weird issues with fonts in OpenBox

I'm having some weird issues with what I assumed to be a normal font issue.

Arch Linux
kernel 4.19.13-1-lts
openbox 3.6.1
compton (can't find a version number)
Issue happening in Seamonkey, Firefox and Konquerer

Other packages installed:
lxappearance
conky-manager
conky
vim
tilda
tint2
xorg
nvidia-340xx-lts
cmake
pulseview
pcmanfm
nitrogen
lshw
gpick
v4l2
firefox
seamonkey
konquerer (now uninstalled)

Basically I have set DEC Terminal all the way through my system, yet even as I type this thread there is some weird ass sans serif font affecting the letters I type and other random things like the heading of a section on the Arch wiki for example, whereas all other words on the wiki will be in DEC Terminal. This is my first foray into openbox, and I have learnt a heap of stuff. My conky is running nice and I am happy with the setup. It's just this font issue that's kinda weird.

I have had a look at the fonts section for all the above listed browsers and I seem to be able to set the font for everything except the drop-down labelled "Proportional", within which there are only two options available: 'sans' and 'sans serif'. However, even though the size window next to it corresponds to the characters with this weird font (i.e. I change the size and it only affects the letters with this weird font), on my other system that has lxde installed there is no issue even though that same "Proportional" window is set the same as my system with issues. Very confused.

I can't find anything related to fonts for compton, openbox, lxappearance and I've gone through the lxde package list to no avail. The only font package is the cantarell-fonts which hasn't changed anything. I'm going to try and turn of autostart for compton to see if that is affecting anything.

Is anyone else experiencing this issue? Have I missed a particular font package? Is this a GTK 2 vs 3 thing?

Like I said, this is my first go at openbox. Usually I install LXDM/LXDE. However, I much prefer this setup.

Any advice on this would be awesome.


thanks

MM25


EDIT: output of # fc-list and # xset q, return the same thing on both the affected and unaffected systems:

xset q

Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000000
  XKB indicators:
    00: Caps Lock:   off    01: Num Lock:    off    02: Scroll Lock: off
    03: Compose:     off    04: Kana:        off    05: Sleep:       off
    06: Suspend:     off    07: Mute:        off    08: Misc:        off
    09: Mail:        off    10: Charging:    off    11: Shift Lock:  off
    12: Group 2:     off    13: Mouse Keys:  off
  auto repeat delay:  660    repeat rate:  25
  auto repeating keys:  00ffffffdffffbbf
                        fadfffefffedffff
                        9fffffffffffffff
                        fff7ffffffffffff
  bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  2/1    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  600    cycle:  600
Colors:
  default colormap:  0x20    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
  /usr/share/fonts/TTF,/usr/share/fonts/100dpi,/usr/share/fonts/75dpi,built-ins
DPMS (Energy Star):
  Standby: 600    Suspend: 600    Off: 600
  DPMS is Enabled
  Monitor is On

Last edited by medicineman25 (2019-01-04 11:32:13)

Offline

#2 2019-01-03 13:37:42

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,796

Re: [SOLVED] Having some weird issues with fonts in OpenBox

I advice you to show a screenshot ;-)
Please post a link or thumbnail only.

Offline

#3 2019-01-03 18:30:22

txtsd
Member
Registered: 2014-10-02
Posts: 97
Website

Re: [SOLVED] Having some weird issues with fonts in OpenBox

Try unchecking "Allow pages to choose their own fonts, instead of your selections above" in Firefox's Fonts > Advanced.


[CPU] AMD Ryzen 5 2400G
[GPU] AMD Radeon RX 7600 XT
[Kernel] linux-zen
[sway] [zsh] Arch user since [2014-09-01 02:09]

Offline

#4 2019-01-04 02:11:59

medicineman25
Member
Registered: 2014-12-03
Posts: 110

Re: [SOLVED] Having some weird issues with fonts in OpenBox

seth wrote:

I advice you to show a screenshot ;-)
Please post a link or thumbnail only.

Of course, what am I thinking

https://imgur.com/mxuCtSe
https://imgur.com/zj1y6K9

As you can see, I have discovered a new issue... it seems that the affected font changes depending on the size selected in the drop-down next to "Proportional"

EDIT: it appears that Chromium is also affected. Which again leads me to believe this is not an issue with the browser but something underneath.

Last edited by medicineman25 (2019-01-04 02:23:39)

Offline

#5 2019-01-04 02:17:12

medicineman25
Member
Registered: 2014-12-03
Posts: 110

Re: [SOLVED] Having some weird issues with fonts in OpenBox

txtsd wrote:

Try unchecking "Allow pages to choose their own fonts, instead of your selections above" in Firefox's Fonts > Advanced.

Tried that. No effect, it also affects letters in the preferences window. Seamonkey is actually a fork of Firefox, so they share much the same codebase.

Offline

#6 2019-01-04 06:02:21

txtsd
Member
Registered: 2014-10-02
Posts: 97
Website

Re: [SOLVED] Having some weird issues with fonts in OpenBox

Maybe you need to set fontconfig to use DEC Terminal as default.


[CPU] AMD Ryzen 5 2400G
[GPU] AMD Radeon RX 7600 XT
[Kernel] linux-zen
[sway] [zsh] Arch user since [2014-09-01 02:09]

Offline

#7 2019-01-04 07:52:01

medicineman25
Member
Registered: 2014-12-03
Posts: 110

Re: [SOLVED] Having some weird issues with fonts in OpenBox

txtsd wrote:

Maybe you need to set fontconfig to use DEC Terminal as default.

Definitely having a look through the wiki now https://wiki.archlinux.org/index.php/Font_configuration

Also, I have tried searching through the packages installed by lxde to see if there was a file created or altered that would be relevant. So far I have turned up nothing with # pacman -Ql lxde/openbox/lxde

Offline

#8 2019-01-04 08:10:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,796

Re: [SOLVED] Having some weird issues with fonts in OpenBox

DEC Terminal is a 14px bitmat font. The browser will struggle to resolve it for other sizes and pick the next best thing - what seems to be … Comic Sans??? ;-)
Google came up w/ https://www.dafont.com/dec-terminal-modern.font - you could use fontconfig to resolve to this font for sizes < 13, > 15 if you want to preserve the use of the bitmap font in its native size. (You'll also have to enable synthetic emboldening since the "modern" font doesn't provide a bold variant)

Offline

#9 2019-01-04 09:26:56

medicineman25
Member
Registered: 2014-12-03
Posts: 110

Re: [SOLVED] Having some weird issues with fonts in OpenBox

seth wrote:

DEC Terminal is a 14px bitmat font. The browser will struggle to resolve it for other sizes and pick the next best thing - what seems to be … Comic Sans??? ;-)
Google came up w/ https://www.dafont.com/dec-terminal-modern.font - you could use fontconfig to resolve to this font for sizes < 13, > 15 if you want to preserve the use of the bitmap font in its native size. (You'll also have to enable synthetic emboldening since the "modern" font doesn't provide a bold variant)

Right so the thing is I have another working system with LXDE installed and this isn't an issue. I found out why!!!
If I run:

#fc-match

on my LXDE box, it returns:

DejaVuSans.ttf: "DejaVu Sans" "Book"

HOWEVER, on my new openbox system (the one with this issue) the same command returns

Purisa.ttf: "Purisa" "Regular"

So what's evidently happening, is that both of these systems are defaulting to a different font but I've never noticed it before because lxde must run something on setup that makes any defaulting to DejaVuSans (or not who knows, but it's happening for whatever reason). Quickly eye-balling my LXDE setup, I can confirm this to be happening and looking in lxappearance I can see Purisa is the font in question.

The only question remains: how do I match these settings? I've read the fontconfig wiki and I can't make heads or tails for how to actually change this setting or where in fact it's read form in the first place.

EDIT: reading the manual now haha

Thanks for your patience with this one guys, we are so close!!!


MM25

Last edited by medicineman25 (2019-01-04 09:29:57)

Offline

#10 2019-01-04 09:31:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,796

Re: [SOLVED] Having some weird issues with fonts in OpenBox

https://wiki.archlinux.org/index.php/Fo … ault_fonts ?
Simply installing DejaVu would probably make it the default fallback, but it's oc. still not DEC Terminal at all (it's just not a script font)

Offline

#11 2019-01-04 11:13:10

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: [SOLVED] Having some weird issues with fonts in OpenBox

I'm thinking the difference on your LXDE system is that the DE's settings tool has configured the fonts you've chosen for "serif", "sans-serif", "monospace".

To do this manually, a file to assign real fonts to the "serif", "sans-serif" and "monospace" names looks like this:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

  <alias>
    <family>monospace</family>
    <prefer>
      <family>Liberation Mono</family>
      <family>DejaVu Sans Mono</family>

      <family>Droid Sans Fallback</family>
    </prefer>
  </alias>

  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>Liberation Sans</family>
      <family>DejaVu Sans</family>
      <family>Droid Sans Fallback</family>
    </prefer>
  </alias>

  <alias>
    <family>serif</family>
    <prefer>
      <family>Liberation Serif</family>
      <family>Noto Serif</family>
      <family>Droid Serif</family>
      <family>DejaVu Serif</family>
    </prefer>
  </alias>

</fontconfig>

You can list several alternative fonts, not just one. This will tweak how the system will choose fonts when characters are missing in the first font.

You save this kind of file as for example "/etc/fonts/conf.d/51-font-alias.conf", or you can put it in your home in "~/.config/fontconfig/conf.d/".

After you've created the file, you can check the results like this with fc-match:

fc-match sansserif
fc-match monospace
fc-match serif
fc-match -s sansserif | head -20
fc-match -s monospace | head -20
fc-match -s serif | head -20

The "-s" versions will produce a list showing what other fonts the system will use as a fallback.

Last edited by Ropid (2019-01-04 11:13:43)

Offline

#12 2019-01-04 11:25:24

medicineman25
Member
Registered: 2014-12-03
Posts: 110

Re: [SOLVED] Having some weird issues with fonts in OpenBox

seth wrote:

https://wiki.archlinux.org/index.php/Fo … ault_fonts ?
Simply installing DejaVu would probably make it the default fallback, but it's oc. still not DEC Terminal at all (it's just not a script font)

Yeh installing ttf-dejavu did the trick.

What's more disconcerting is how Purisa.ttf made it onto my system in the first place. After downloading pkgfile, I discovered that the Purisa* font files, located in /usr/share/fonts, belonged to fonts-tlwg which is definitely not installed on my system.

I did try out the following GUI web programs:

- konqueror
- falkon
- firefox
- seamonkey

However none of these have either fonts-tlwg as a dependency, nor Purisa.ttf as a file.

Here is my output from pacman -Q if anyone is interested. For now this seems to be mostly solved, yet I'm still curious to know how this happened in the first place.

acl 2.2.53-1
adwaita-icon-theme 3.30.1-1
alsa-lib 1.1.7-2
aom 1.0.0-1
apache 2.4.37-1
apr 1.6.5-1
apr-util 1.6.1-3
arc-gtk-theme 20181022-1
arc-icon-theme 20161122-2
archlinux-keyring 20181218-1
argon2 20171227-3
arm-none-eabi-binutils 2.31.1-1
arm-none-eabi-gcc 8.2.0-1
arm-none-eabi-newlib 3.0.0.20180831-1
at-spi2-atk 2.30.0-1
at-spi2-core 2.30.0-2
atk 2.30.0-1
atkmm 2.28.0-1
attr 2.4.48-1
audit 2.8.4-2
autoconf 2.69-5
autoconf2.13 2.13-5
automake 1.16.1-1
avahi 0.7+16+g1cc2b8e-2
bash 4.4.023-1
binutils 2.31.1-4
bison 3.2-1
blas 3.8.0-2
boost-libs 1.68.0-2
bzip2 1.0.6-8
c-ares 1.15.0-1
ca-certificates 20181109-1
ca-certificates-mozilla 3.41-1
ca-certificates-utils 20181109-1
cairo 1.16.0-1
cairomm 1.12.2-3
cantarell-fonts 1:0.111-1
cblas 3.8.0-2
cdparanoia 10.2-7
chromium 71.0.3578.98-2
clang 7.0.1-1
cmake 3.13.1-1
colord 1.4.3-2
compiler-rt 7.0.1-1
compton 4.0-1
confuse 3.2.2-1
conky-lua 1.11.0-1
conky-manager 2.4-3
coreutils 8.30-1
cracklib 2.9.6-3
cryptsetup 2.0.6-1
curl 7.63.0-2
db 5.3.28-4
dbus 1.12.12-1
dconf 0.30.1-1
deepin-icon-theme 15.12.68-1
deepin-qt-dbus-factory 1.0.7-1
deepin-qt5dxcb-plugin 1.1.21-1
deepin-qt5integration 0.3.7.1-1
deepin-screenshot 4.1.5-1
deepin-turbo 0.0.2-1
desktop-file-utils 0.23+4+g92af410-1
device-mapper 2.02.183-1
dhcpcd 7.0.8-1
dialog 1:1.3_20181107-1
diffutils 3.6-2
dmidecode 3.2-1
dnssec-anchors 20181003-1
docbook-xml 4.5-8
docbook-xsl 1.79.2-4
docbook2x 0.8.8-16
dosfstools 4.1-2
double-conversion 3.1.1-1
doxygen 1.8.14-1
dtkcore 1:2.0.9.13-1
dtkwidget 2.0.9.13-1
dtkwm 2.0.9-3
e2fsprogs 1.44.5-1
expac 9-1
expat 2.2.6-1
expressvpn 1.5.1-1
faenza-icon-theme 1.3.1-5
fakeroot 1.23-1
ffmpeg 1:4.1-1
file 5.35-1
filesystem 2018.12-2
findutils 4.6.0-4
flac 1.3.2-2
flex 2.6.4-2
fontconfig 2:2.13.1+12+g5f5ec56-1
freetype2 2.9.1-1
fribidi 1.0.5-1
fuse-common 3.3.0-1
fuse2 2.9.8-1
gawk 4.2.1-1
gc 7.6.8-1
gcc 8.2.1+20181127-1
gcc-libs 8.2.1+20181127-1
gd 2.2.5-1
gdb 8.2-2
gdb-common 8.2-2
gdbm 1.18.1-1
gdk-pixbuf2 2.38.0-1
gettext 0.19.8.1-3
giflib 5.1.4-2
git 2.20.1-1
glib-networking 2.58.0-1
glib2 2.58.2-1
glibc 2.28-5
glibmm 2.56.0-1
glu 9.0.0-5
gmp 6.1.2-2
gnupg 2.2.12-1
gnutls 3.6.5-1
go 2:1.11.4-1
gperftools 2.7-1
gpgme 1.12.0-1
gpick 0.2.6rc1-4
gpm 1.20.7.r27.g1fd1941-1
graphene 1.8.2-1
graphite 1:1.3.13-1
grep 3.3-1
groff 1.22.3-8
grub 2:2.02-8
gsettings-desktop-schemas 3.28.1-1
gsettings-qt 0.1.20170110-2
gsm 1.0.18-1
gst-plugins-base 1.14.4-1
gst-plugins-base-libs 1.14.4-1
gstreamer 1.14.4-1
gtk-update-icon-cache 3.24.2+7+g43aeb52b73-1
gtk2 2.24.32-1
gtk3 3.24.2+7+g43aeb52b73-1
gtkmm 1:2.24.5-3
guile 2.2.4-1
guile2.0 2.0.14-2
gzip 1.9-2
harfbuzz 2.2.0-1
hicolor-icon-theme 0.17-1
hidapi 0.8.0rc1-3
hwids 20180917-1
iana-etc 20180913-1
icu 63.1-2
ilmbase 2.3.0-1
imagemagick 7.0.8.21-1
imake 1.0.7-2
imlib2 1.5.1-1
inetutils 1.9.4-6
intel-tbb 2019.3-1
intel-ucode 20180807.a-1
iproute2 4.19.0-1
iptables 1:1.8.2-1
iputils 20180629.f6aac8d-2
iso-codes 4.1-1
jack 0.125.0-5
jansson 2.12-1
jasper 2.0.14-1
jemalloc 1:5.1.0-1
jfsutils 1.1.15-6
js52 52.9.0-1
jshon 20131105-3
json-c 0.13.1-2
json-glib 1.4.4-1
jsoncpp 1.8.4-2
kbd 2.0.4-2
keyutils 1.6-1
kmod 25-1
krb5 1.16.1-1
l-smash 2.14.5-1
lame 3.100-2
lapack 3.8.0-2
lcms2 2.9-1
ldns 1.7.0-4
less 530-1
libaio 0.3.111-2
libarchive 3.3.3-1
libass 0.14.0-1
libassuan 2.5.2-1
libasyncns 0.8+3+g68cd5af-2
libatomic_ops 7.6.8-1
libavc1394 0.5.4-3
libbluray 1.0.2-2
libcanberra 0.30+2+gc0620e4-2
libcap 2.26-1
libcap-ng 0.7.9-1
libconfig 1.7.2-1
libcroco 0.6.12+4+g9ad7287-2
libcups 2.2.10-1
libdaemon 0.14-4
libdatrie 0.2.12-1
libdc1394 2.2.5-2
libdmx 1.1.4-1
libdrm 2.4.96-1
libedit 20180525_3.1-1
libelf 0.175-1
libepoxy 1.5.3-1
libev 4.24-2
libevdev 1.6.0-1
libevent 2.1.8-2
libexif 0.6.21-3
libffi 3.2.1-3
libfontenc 1.1.3-2
libftdi 1.4-2
libftdi-compat 0.20-6
libgcrypt 1.8.4-1
libgee 0.20.1-2
libglade 2.6.4-6
libglvnd 1.1.0-1
libgpg-error 1.33-1
libgphoto2 2.5.21-1
libgudev 232-1
libgusb 0.3.0-1
libibus 1.5.19-1
libice 1.0.9-2
libid3tag 0.15.1b-9
libidn2 2.0.5-1
libiec61883 1.2.0-5
libieee1284 0.2.11-7
libinput 1.12.4-1
libjpeg-turbo 2.0.1-1
libksba 1.3.5-1
libldap 2.4.46-2
liblqr 0.4.2-2
libmagick 7.0.8.21-1
libmariadbclient 10.1.37-1
libmnl 1.0.4-2
libmodplug 0.8.9.0-2
libmpc 1.1.0-1
libnetfilter_conntrack 1.0.7-1
libnfnetlink 1.0.1-3
libnftnl 1.1.1-1
libnghttp2 1.35.1-1
libnl 3.4.0-1
libnsl 1.2.0-1
libogg 1.3.3-3
libomxil-bellagio 0.9.3-2
libpcap 1.9.0-1
libpciaccess 0.14-1
libpipeline 1.5.0-1
libpng 1.6.36-1
libproxy 0.4.15-8
libpsl 0.20.2-1
libpulse 12.2-2
libqtxdg 3.2.0-5
libraqm 0.5.0-1
libraw1394 2.1.2-2
librsvg 2:2.44.11-1
libsamplerate 0.1.9-2
libsasl 2.1.26-13
libseccomp 2.3.3-1
libsecret 0.18.6-1
libserialport 0.1.1-3
libsigc++ 2.10.1-1
libsigrok 0.5.1-2
libsigrokdecode 0.5.2-1
libsm 1.2.3-1
libsndfile 1.0.28-2
libsoup 2.64.2-1
libsoxr 0.1.3-1
libssh 0.8.6-1
libssh2 1.8.0-3
libstemmer 0+337-3
libsystemd 239.370-1
libtasn1 4.13-1
libthai 0.1.28-1
libtheora 1.1.1-4
libtiff 4.0.10-1
libtirpc 1.1.4-1
libtool 2.4.6+42+gb88cebd5-2
libunistring 0.9.10-1
libunwind 1.2.1-2
libusb 1.0.22-1
libusb-compat 0.1.5-2
libutempter 1.1.6-3
libutil-linux 2.33-2
libuv 1.24.1-1
libva 2.3.0-1
libva-vdpau-driver 0.7.4-3
libvdpau 1.1.1+3+ga21bf7a-1
libvisual 0.4.0-7
libvorbis 1.3.6-1
libvpx 1.7.0-1
libwacom 0.32-1
libwebp 1.0.1-1
libx11 1.6.7-1
libxau 1.0.8-3
libxaw 1.0.13-2
libxcb 1.13.1-1
libxcomposite 0.4.4-3
libxcursor 1.1.15-1
libxdamage 1.1.4-3
libxdmcp 1.1.2-2
libxext 1.3.3-2
libxfixes 5.0.3-2
libxfont2 2.0.3-1
libxft 2.3.2-2
libxi 1.7.9-2
libxinerama 1.1.4-1
libxkbcommon 0.8.2-1
libxkbcommon-x11 0.8.2-1
libxkbfile 1.0.9-2
libxml2 2.9.8-6
libxmu 1.1.2-2
libxnvctrl 415.25-1
libxpm 3.5.12-2
libxrandr 1.5.1-2
libxrender 0.9.10-2
libxshmfence 1.3-1
libxslt 1.1.32+3+g32c88216-1
libxss 1.2.3-1
libxt 1.1.5-2
libxtst 1.2.3-2
libxv 1.0.11-2
libxxf86dga 1.1.4-2
libxxf86vm 1.1.4-2
libyaml 0.2.1-1
libzip 1.5.1-1
licenses 20181104-1
linux-api-headers 4.17.11-1
linux-firmware 20181218.0f22c85-1
linux-lts 4.19.13-1
lldb 7.0.1-1
llvm 7.0.1-1
llvm-libs 7.0.1-1
lm_sensors 3.5.0-1
logrotate 3.15.0-1
lsb-release 1.4-15
lshw B.02.18-3
lua 5.3.5-1
lua51 5.1.5-7
lvm2 2.02.183-1
lxappearance 0.6.3-2
lz4 1:1.8.3-1
lzo 2.10-2
m4 1.4.18-2
make 4.2.1-3
man-db 2.8.4-1
man-pages 4.16-2
mariadb 10.1.37-1
mariadb-clients 10.1.37-1
mdadm 4.0-2
menumaker 0.99.10-2
mesa 18.3.1-1
minizip 1:1.2.11-3
mkinitcpio 25-1
mkinitcpio-busybox 1.29.3-1
mongodb 4.0.4-1
mpfr 4.0.1-1
mtdev 1.1.5-2
nano 3.2-1
ncurses 6.1-4
net-tools 1.60.20180212git-1
netctl 1.19-1
nettle 3.4.1-1
nitrogen 1.6.1-2
node-gyp 3.8.0-1
nodejs 11.6.0-1
npm 6.5.0-1
npth 1.6-1
nspr 4.20-1
nss 3.41-1
ntfs-3g 2017.3.23-3
nvidia-340xx-lts 340.107-14
nvidia-340xx-utils 340.107-3
obconf 2.0.4-5
obmenu-generator 0.85-1
ocaml 4.07.1-1
openal 1.19.1-1
openbox 3.6.1-4
openbox-themes 1.0.2-4
opencore-amr 0.1.5-2
opencv 4.0.1-1
opencv-samples 4.0.1-1
openexr 2.3.0-1
openjade 1.3.2-5
openjpeg2 2.3.0-3
openocd 1:0.10.0-1
openresolv 3.9.0-2
opensp 1.5.2-8
openssh 7.9p1-1
openssl 1.1.1.a-1
openssl-1.0 1.0.2.q-1
opus 1.3-1
orc 0.4.28-1
os-prober 1.76-1
p11-kit 0.23.14-1
p7zip 16.02-5
packer 20150808-1
pacman 5.1.1-1
pacman-contrib 1.1.0-1
pacman-mirrorlist 20181205-1
pam 1.3.1-1
pambase 20171006-1
pango 1.42.4-1
pangomm 2.42.0-1
papirus-icon-theme 20181120-1
patch 2.7.6-7
pciutils 3.6.2-1
pcre 8.42-1
pcre2 10.32-1
perl 5.28.1-1
perl-data-dump 1.23-4
perl-error 0.17027-1
perl-linux-desktopfiles 0.25-2
perl-mailtools 2.20-2
perl-sgmls 1:1.1-5
perl-timedate 2.30-5
perl-xml-libxml 2.0132-2
perl-xml-namespacesupport 1.12-3
perl-xml-parser 2.44-7
perl-xml-sax 1.00-1
perl-xml-sax-base 1.09-3
perl-xml-sax-expat 0.51-6
php 7.3.0-1
php-apache 7.3.0-1
php-cgi 7.3.0-1
php-odbc 7.3.0-1
phpmyadmin 4.8.4-1
pinentry 1.1.0-4
pixman 0.36.0-1
pkgconf 1.5.4-1
pkgfile 19-1
plymouth 0.9.4-1
polkit 0.115+24+g5230646-1
popt 1.16-10
procps-ng 3.3.15-1
psmisc 23.2-1
pulseview 0.4.1-1
python 3.7.1-1
python-appdirs 1.4.3-2
python-cachecontrol 0.12.5-4
python-chardet 3.0.4-2
python-colorama 0.4.1-1
python-dbus 1.2.8-2
python-dbus-common 1.2.8-2
python-distlib 0.2.8-1
python-distro 1.3.0-2
python-docutils 0.14-2
python-html5lib 1.0.1-3
python-idna 2.8-1
python-lockfile 0.12.2-3
python-msgpack 0.5.6-2
python-packaging 18.0-1
python-pep517 0.5.0-1
python-pip 18.1-1
python-progress 1.4-2
python-pyparsing 2.3.0-1
python-pytoml 0.1.20-1
python-requests 2.20.1-1
python-retrying 1.3.3-4
python-setuptools 1:40.6.3-1
python-six 1.12.0-1
python-urllib3 1.24.1-1
python-webencodings 0.5.1-2
python2 2.7.15-2
python2-appdirs 1.4.3-2
python2-cachecontrol 0.12.5-4
python2-chardet 3.0.4-2
python2-colorama 0.4.1-1
python2-dbus 1.2.8-2
python2-distlib 0.2.8-1
python2-distro 1.3.0-2
python2-html5lib 1.0.1-3
python2-idna 2.8-1
python2-ipaddress 1.0.22-1
python2-lockfile 0.12.2-3
python2-msgpack 0.5.6-2
python2-packaging 18.0-1
python2-pep517 0.5.0-1
python2-pip 18.1-1
python2-progress 1.4-2
python2-pyparsing 2.3.0-1
python2-pytoml 0.1.20-1
python2-requests 2.20.1-1
python2-retrying 1.3.3-4
python2-setuptools 1:40.6.3-1
python2-six 1.12.0-1
python2-urllib3 1.24.1-1
python2-webencodings 0.5.1-2
qt5-base 5.12.0-1
qt5-declarative 5.12.0-1
qt5-multimedia 5.12.0-1
qt5-styleplugins 5.0.0.20170311-9
qt5-svg 5.12.0-1
qt5-x11extras 5.12.0-1
re2 20190101-1
readline 7.0.005-1
reiserfsprogs 3.6.27-2
rest 0.8.1-1
rhash 1.3.7-1
rsync 3.1.3-1
ruby 2.5.3-1
ruby-docs 2.5.3-1
rubygems 2.7.7-1
rust 1:1.31.1-1
s-nail 14.9.11-1
sdcc 3.8.0-1
sdl2 2.0.9-1
sed 4.7-1
semver 5.6.0-1
sgml-common 0.6.3-6
shadow 4.6-1
shared-mime-info 1.10-1
sigrok-cli 0.7.1-1
sigrok-firmware-fx2lafw 0.1.6-1
snappy 1.1.7-1
sound-theme-freedesktop 0.8-3
speex 1.2.0-2
speexdsp 1.2rc3-3
splint 3.1.2.git20180129-1
sqlite 3.26.0-1
startup-notification 0.12-6
sudo 1.8.26-2
sysfsutils 2.1.0-10
systemd 239.370-1
systemd-sysvcompat 239.370-1
tar 1.30-2
tdb 1.3.16-1
texinfo 6.5-2
thin-provisioning-tools 0.7.6-1
tilda 1.4.1-1
tint2 16.6.1-1
tolua++ 1.0.93-3
tor 0.3.4.9-1
torsocks 2.3.0-1
traceroute 2.1.0-2
tslib 1.18-1
ttf-dejavu 2.37-2
ttf-liberation 2.00.1-8
tzdata 2018i-1
ufw 0.36-1
universal-ctags-git 0.r6387.380fa1c7-1
unixodbc 2.3.7-1
unrar 1:5.6.8-1
unzip 6.0-13
usbutils 010-1
util-linux 2.33-2
v4l-utils 1.16.3-1
valgrind 3.14.0-1
vi 1:070224-3
vid.stab 1.1-2
vifm 0.10-1
vim 8.1.0570-1
vim-ale 2.1.0-1
vim-doxygentoolkit 0.2.13-4
vim-runtime 8.1.0570-1
vte-common 0.54.3-1
vte3 0.54.3-1
wayland 1.16.0-1
wayland-protocols 1.17-1
wget 1.20-1
which 2.21-3
wiredtiger 3.1.0.20181030-1
wireless_tools 30.pre9-2
wpa_supplicant 1:2.7-1
x264 2:155.r0a84d986-2
x265 2.9-1
xbitmaps 1.1.2-1
xcb-proto 1.13-2
xcb-util 0.4.0-2
xcb-util-image 0.4.0-2
xcb-util-keysyms 0.4.0-2
xcb-util-renderutil 0.3.9-2
xcb-util-wm 0.4.1-2
xdg-utils 1.1.3-3
xf86-input-libinput 0.28.1-1
xf86-video-fbdev 0.5.0-1
xf86-video-vesa 2.4.0-2
xfsprogs 4.19.0-1
xkeyboard-config 2.25-1
xorg-bdftopcf 1.1-1
xorg-docs 1.7.1-2
xorg-font-util 1.3.1-2
xorg-font-utils 7.6-5
xorg-fonts-100dpi 1.0.3-4
xorg-fonts-75dpi 1.0.3-4
xorg-fonts-alias 1.0.3-2
xorg-fonts-encodings 1.0.4-5
xorg-iceauth 1.0.8-1
xorg-luit 1.1.1-3
xorg-mkfontdir 1.0.7-9
xorg-mkfontscale 1.1.3-1
xorg-server 1.20.3-1
xorg-server-common 1.20.3-1
xorg-server-devel 1.20.3-1
xorg-server-xdmx 1.20.3-1
xorg-server-xephyr 1.20.3-1
xorg-server-xnest 1.20.3-1
xorg-server-xvfb 1.20.3-1
xorg-server-xwayland 1.20.3-1
xorg-sessreg 1.1.1-2
xorg-setxkbmap 1.3.1-2
xorg-smproxy 1.0.6-2
xorg-util-macros 1.19.2-1
xorg-x11perf 1.6.0-2
xorg-xauth 1.0.10-2
xorg-xbacklight 1.2.2-1
xorg-xcmsdb 1.0.5-2
xorg-xcursorgen 1.0.6-2
xorg-xdpyinfo 1.3.2-2
xorg-xdriinfo 1.0.6-1
xorg-xev 1.2.2-2
xorg-xfontsel 1.0.6-1
xorg-xgamma 1.0.6-2
xorg-xhost 1.0.7-2
xorg-xinit 1.4.0-3
xorg-xinput 1.6.2-2
xorg-xkbcomp 1.4.2-1
xorg-xkbevd 1.1.4-2
xorg-xkbutils 1.0.4-3
xorg-xkill 1.0.5-1
xorg-xlsatoms 1.1.2-2
xorg-xlsclients 1.1.4-1
xorg-xmodmap 1.0.9-2
xorg-xpr 1.0.5-1
xorg-xprop 1.2.3-1
xorg-xrandr 1.5.0-2
xorg-xrdb 1.1.1-1
xorg-xrefresh 1.0.6-1
xorg-xset 1.2.4-1
xorg-xsetroot 1.1.2-1
xorg-xvinfo 1.1.3-2
xorg-xwd 1.0.7-1
xorg-xwininfo 1.1.4-1
xorg-xwud 1.0.5-1
xorgproto 2018.4-1
xterm 341-1
xvidcore 1.3.5-1
xz 5.2.4-1
yaml-cpp 0.6.2-1
yasm 1.3.0-3
zip 3.0-8
zita-alsa-pcmi 0.3.2-1
zita-resampler 1.6.2-1
zlib 1:1.2.11-3
zstd 1.3.7-1

Offline

#13 2019-01-04 11:31:37

medicineman25
Member
Registered: 2014-12-03
Posts: 110

Re: [SOLVED] Having some weird issues with fonts in OpenBox

Ropid wrote:

I'm thinking the difference on your LXDE system is that the DE's settings tool has configured the fonts you've chosen for "serif", "sans-serif", "monospace".

To do this manually, a file to assign real fonts to the "serif", "sans-serif" and "monospace" names looks like this:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

  <alias>
    <family>monospace</family>
    <prefer>
      <family>Liberation Mono</family>
      <family>DejaVu Sans Mono</family>

      <family>Droid Sans Fallback</family>
    </prefer>
  </alias>

  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>Liberation Sans</family>
      <family>DejaVu Sans</family>
      <family>Droid Sans Fallback</family>
    </prefer>
  </alias>

  <alias>
    <family>serif</family>
    <prefer>
      <family>Liberation Serif</family>
      <family>Noto Serif</family>
      <family>Droid Serif</family>
      <family>DejaVu Serif</family>
    </prefer>
  </alias>

</fontconfig>

You can list several alternative fonts, not just one. This will tweak how the system will choose fonts when characters are missing in the first font.

You save this kind of file as for example "/etc/fonts/conf.d/51-font-alias.conf", or you can put it in your home in "~/.config/fontconfig/conf.d/".

After you've created the file, you can check the results like this with fc-match:

fc-match sansserif
fc-match monospace
fc-match serif
fc-match -s sansserif | head -20
fc-match -s monospace | head -20
fc-match -s serif | head -20

The "-s" versions will produce a list showing what other fonts the system will use as a fallback.

Yeh I just read through this info on the wiki, makes a lot more sense now though. They are essentially just rule files with numbered priority.

The way these fonts are installed though is a little different, they use <accept> instead of <prefer>

Output from # cat /etc/fonts/conf.d/57-dejavu-sans-mono.conf shows:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<!-- /etc/fonts/conf.d/57-dejavu-sans-mono.conf

     Define aliasing and other fontconfig settings for
     DejaVu Sans Mono.

     © 2006-2008 Nicolas Mailhot <nicolas.mailhot at laposte.net>
-->
<fontconfig>
  <!-- Font substitution rules -->
  <alias binding="same">
    <family>Bepa Mono</family>
    <accept>
      <family>DejaVu Sans Mono</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>Bitstream Prima Sans Mono</family>
    <accept>
      <family>DejaVu Sans Mono</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>Bitstream Vera Sans Mono</family>
    <accept>
      <family>DejaVu Sans Mono</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>DejaVu LGC Sans Mono</family>
    <accept>
      <family>DejaVu Sans Mono</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>Olwen Sans Mono</family>
    <accept>
      <family>DejaVu Sans Mono</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>SUSE Sans Mono</family>
    <accept>
      <family>DejaVu Sans Mono</family>
    </accept>
  </alias>
</fontconfig>

Offline

Board footer

Powered by FluxBB