You are not logged in.

#1 2014-07-31 06:22:55

shoober420
Banned
Registered: 2014-07-22
Posts: 184

[Solved] Xserver Won't Load My Font

I have set the proper "FontPath" under the "Files" section of my xorg.conf (/usr/share/fonts/OTF), but X still cannot see my font. I have tried numerous names, ranging from "Inconsolata", "inconsolata", "Inconsolata.OTF", and "inconsolata.OTF" with no success. It crashes and gives me this error message.

Xorg could not open the default font (inconsolata) EE

Last edited by shoober420 (2014-08-01 12:45:53)

Offline

#2 2014-07-31 06:30:23

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Xserver Won't Load My Font

Please paste the file(s) where you are setting the font (~/.Xresources, presumably), and details of how you installed the font.


Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-07-31 06:35:58

shoober420
Banned
Registered: 2014-07-22
Posts: 184

Re: [Solved] Xserver Won't Load My Font

I installed the font using pacman via the "ttf-inconsolata" package. I set the font in the xorg.conf file, are you saying I have to set it in the .Xresources file also?

Offline

#4 2014-07-31 06:48:23

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Xserver Won't Load My Font

Please spend some time reading the wiki. Adding the font to the font path only makes it available to the Xserver, you still need to tell X to use it.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2014-07-31 09:55:21

shoober420
Banned
Registered: 2014-07-22
Posts: 184

Re: [Solved] Xserver Won't Load My Font

I looked through the .Xresources wiki and didn't find anything about changing Xservers default font. It only mentioned chnaging the fonts to certain X applications, like Xterm, Xscreensaver, and Xfe. I'm not interested in that, as I don't even use any of those programs. I'm looking to uninstall the xorg-fonts-75dpi package and use my own font (inconsolata) as Xservers default font.

Offline

#6 2014-08-01 10:41:25

shoober420
Banned
Registered: 2014-07-22
Posts: 184

Re: [Solved] Xserver Won't Load My Font

So does anyone know if its possible for X to just use the font specified with the "-fn" command line parameter, so I can remove the xorg-fonts-75dpi package?

Offline

#7 2014-08-01 11:30:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [Solved] Xserver Won't Load My Font

X doesn't have a -fn flag [1].  Xterm does.  I have no idea what you mean by "the X server's default font".

Can you please follow the suggestions provided so far: share your xorg conf file(s) and read the font page on the wiki.

Then clearly describe what you have done, and what results you are getting where, and what you want.  If you just want to uninstall xorg-fonts-75dpi, then uninstall them - they should not be a required by any other packages - are they?

[1] I suppose Xserver does.  But I have never used it, and I've never seen any suggestion in any documentation giving a case where one should use it.  Is this what you are tying to do?  If so, why?

EDIT: note also that some programs will not work with TTF fonts, and will require a bitmap font.  If you have neither  xorg-fonts-75dpi nor xorg-fonts-100dpi installed, such programs will just error out on startup.

Last edited by Trilby (2014-08-01 11:59:38)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2014-08-01 12:14:06

DarkCerberus
Banned
From: Holsworthy, Devon
Registered: 2011-12-31
Posts: 252

Re: [Solved] Xserver Won't Load My Font

As Trilby explains X doesn't have a -fn flag - however doing searches on google will help find your answers - and also here's the manual from the Xorg website http://www.x.org/archive/X11R6.8.0/doc/fonts2.html  - it is an earlier manual document but it still may work for the current Xorg versions.

Last edited by DarkCerberus (2014-08-01 12:15:42)


Our enemies are your enemies, Nick. Disorder, war. It's just a matter of time before a dirty bomb goes off in Moscow, or an EMP fries Chicago.  ---  Alexander Pierce, Captain America: Winter Soldier
Access Denied! De-cryption failed, override denied all files sealed! --- Triskelion, Shield OS
-----
How to ask questions the smart way

Offline

#9 2014-08-01 12:34:33

shoober420
Banned
Registered: 2014-07-22
Posts: 184

Re: [Solved] Xserver Won't Load My Font

X will not run unless you have the xorg-fonts-75dpi package. If you don't have it, you get an error saying that it can't find fonts, and to specify a font using the "-fn" command line parameter. This is why I thought Xserver could use this command.

Offline

#10 2014-08-01 12:39:12

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [Solved] Xserver Won't Load My Font

shoober420 wrote:

X will not run unless you have the xorg-fonts-75dpi package.

Not true.  I do not have that package - and to test I just removed the 100dpi package as well.  X restarted just fine.  I gather that there is some program you are starting in xinitrc, or some other startup file that requires a font.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#11 2014-08-01 12:45:31

shoober420
Banned
Registered: 2014-07-22
Posts: 184

Re: [Solved] Xserver Won't Load My Font

Oh, it must be the "nvidia-settings" program that needs it then. I have some nvidia-settings in my .xinitrc file. I guess I'm just wasting my time trying to run X without the fonts package, since some programs need the fonts in them. Nevermind about this. I'll just mark the thread as solved.

Last edited by shoober420 (2014-08-01 12:46:44)

Offline

Board footer

Powered by FluxBB