[opensuse] Adding X fonts without an xorg.conf file
If I do not have (want) an xorg.conf file, but I want to add fonts to the system, what is the preferred location? They are ttf fonts. So I guess I could add them to /usr/share/fonts/truetype. But I really do not like adding things to directories I see as being managed by the system. It seems that X does not look, by default (i.e., without an xorg.conf file), in all folders in /usr/share/fonts. If it had, I could have added a 'local' or some such directory. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2010/10/08 13:35 (GMT+0200) Roger Oberholtzer composed:
If I do not have (want) an xorg.conf file, but I want to add fonts to the system, what is the preferred location?
They are ttf fonts. So I guess I could add them to /usr/share/fonts/truetype. But I really do not like adding things to directories I see as being managed by the system. It seems that X does not look, by default (i.e., without an xorg.conf file), in all folders in /usr/share/fonts. If it had, I could have added a 'local' or some such directory.
Whether it's preferred or not I cannot answer, but ~/.fonts works, and can be symlinked to other users' homedirs if necessary. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2010-10-08 at 08:16 -0400, Felix Miata wrote:
On 2010/10/08 13:35 (GMT+0200) Roger Oberholtzer composed:
If I do not have (want) an xorg.conf file, but I want to add fonts to the system, what is the preferred location?
They are ttf fonts. So I guess I could add them to /usr/share/fonts/truetype. But I really do not like adding things to directories I see as being managed by the system. It seems that X does not look, by default (i.e., without an xorg.conf file), in all folders in /usr/share/fonts. If it had, I could have added a 'local' or some such directory.
Whether it's preferred or not I cannot answer, but ~/.fonts works, and can be symlinked to other users' homedirs if necessary.
I want these to be available system-wide. I think I will put them in /usr/share/fonts/truetype and then run "SuSEconfig -module fonts" to make them available. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi Roger,
You can simply create a new directory in /usr/share/fonts/ and copy
there the fonts you want to add. For example I created a folder
/usr/share/fonts/msfonts where I copied ttf fonts from msoffice.
Otherwise you can use the font installer from desktop settings.
Regards,
Francesco
--
There is a theory which states that if ever anyone discovers exactly
what the Universe is for and why it is here, it will instantly
disappear and be replaced by something even more bizarre and
inexplicable. There is another theory which states that this has
already happened.
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
On Fri, Oct 8, 2010 at 1:35 PM, Roger Oberholtzer
If I do not have (want) an xorg.conf file, but I want to add fonts to the system, what is the preferred location?
They are ttf fonts. So I guess I could add them to /usr/share/fonts/truetype. But I really do not like adding things to directories I see as being managed by the system. It seems that X does not look, by default (i.e., without an xorg.conf file), in all folders in /usr/share/fonts. If it had, I could have added a 'local' or some such directory.
-- Roger Oberholtzer
OPQ Systems / Ramböll RST
Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden
Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Roger Oberholtzer said the following on 10/08/2010 07:35 AM:
If I do not have (want) an xorg.conf file, but I want to add fonts to the system, what is the preferred location?
Of course there's the X Font Server ;-) But the question is 'what directories does X use for fonts in the absence of a config file? However I'm sure that the /etc/X11/xorg.conf.d/* files count :-)
They are ttf fonts. So I guess I could add them to /usr/share/fonts/truetype. But I really do not like adding things to directories I see as being managed by the system. It seems that X does not look, by default (i.e., without an xorg.conf file), in all folders in /usr/share/fonts. If it had, I could have added a 'local' or some such directory.
I do have ~anton/,fonts but I specify that in the XFS. Using 'strings' on /usr/bin/X uncovers the following: libXfont.so.1 /usr/share/fonts/misc:unscaled,/usr/share/fonts/TTF/,/usr/share/fonts/OTF/,/usr/share/fonts/Type1/,/usr/share/fonts/100dpi:unscaled,/usr/share/fonts/75dpi:unscaled,/usr/share/fonts/URW/,/usr/share/fonts/cyrillic:unscaled,/usr/share/fonts/misc/sgi:unscaled,/usr/share/fonts/truetype/ I'm sure the source would reveal more :-) -- Life is like an analogy -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2010-10-08 at 08:45 -0400, Anton Aylward wrote:
Using 'strings' on /usr/bin/X uncovers the following:
libXfont.so.1 /usr/share/fonts/misc:unscaled,/usr/share/fonts/TTF/,/usr/share/fonts/OTF/,/usr/share/fonts/Type1/,/usr/share/fonts/100dpi:unscaled,/usr/share/fonts/75dpi:unscaled,/usr/share/fonts/URW/,/usr/share/fonts/cyrillic:unscaled,/usr/share/fonts/misc/sgi:unscaled,/usr/share/fonts/truetype/
In fact, this is the list I see in the X server log. So I think this is all the server looks at by default. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Anton Aylward
-
Felix Miata
-
Francesco Teodori
-
Roger Oberholtzer