You are not logged in.
Pages: 1
I wanted to mod Kerbal Space program with MechJeb2, but the issue was that all MJ windows lacked any sort of text. After some searching, I found this thread that clarifies that I would need Arial font (Arial.ttf and ArialBd.ttf). I don't really want to be forced to install Arial though and I want to redirect any Arial requests to my preferred sans-serif font. I've tried creating a fontconfig rule:
$ cat /etc/fonts/conf.d/69-arial.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<alias>
<family>Arial</family>
<prefer>
<family>serif</family>
</prefer>
</alias>
<alias>
<family>ArialBf</family>
<prefer>
<family>serif</family>
</prefer>
</alias>
</fontconfig>then update with
fc-config, but the issue is not solved. I think I might be doing something wrong with the font alias though. I use infinality.
$ pacman -Qi fontconfig-infinality-ultimate | grep "Version"
Version : 2.11.1-28
$ uname -roms
Linux 4.0.7-2-ARCH x86_64 GNU/LinuxLast edited by JonnyRobbie (2015-07-09 20:39:30)
Offline
Your URL is unresolvable nonsense chars.
How about a simple:
$ fc-match arial
arial.ttf: "Arial" "Regular"Offline
Sorry about the link. I don't know what happened. Should be fixed now.
$ fc-match arial
n019003l.pfb: "Nimbus Sans" "Regular"Here's a screenshot. Instead if Nimbus, it simply doesn't show any text
Last edited by JonnyRobbie (2015-07-09 20:47:46)
Offline
Check if that file, wherever it is (in fontconfig's paths), is actually *readable* by your normal user. That's the usual mistake.
Offline
$ ls -l /etc/fonts/conf.d/69-arial.conf
-rwxr-xr-x 1 root root 300 Jul 9 21:27 /etc/fonts/conf.d/69-arial.confI mean, I could have the syntax of that config file wrong, I may have forget something there, or I sould use something different from alias whatsoever. I probably want to avoid installing Arial, aldhough the desire is not completely rational and I don't think it would matter in the end. I probably just dont want to be forced to install something.
Last edited by JonnyRobbie (2015-07-10 08:43:21)
Offline
No, I mean the n019003l.pfb file
Offline
that should be fine too
$ ls -l /usr/share/fonts/Type1/n019003l.pfb
-rw-r--r-- 1 root root 49658 Mar 16 22:28 /usr/share/fonts/Type1/n019003l.pfbI've just tried it in LibreWrite, and the alias works for both Arial and ArialBc, so it really might be that that particular KSP mod requires for Arial to be explicitly installed as part of ttf-ms-fonts. Although I'm not entirely sure how that works, and I wonder why that alias doesn't work in KSP. It's just like Flash. I don't want to be forced to have it installed.
Last edited by JonnyRobbie (2015-07-10 09:29:13)
Offline
For future reference - a better test is to run as your normal user:
[ -r /usr/share/fonts/Type1/n019003l.pfb ] && echo yes || echo noOffline
Pages: 1