View previous topic :: View next topic |
Author |
Message |
jaba n00b


Joined: 14 Apr 2002 Posts: 7 Location: Norway
|
Posted: Sun Apr 14, 2002 1:19 pm Post subject: TrueType Fonts |
|
|
Fonts in X looks awfull!
I want to use TrueType Fonts, but i'm not sure how to. First i have to get them available, then i've got to make X use them.
Can you guys give me some help with this? |
|
Back to top |
|
 |
gschneider Tux's lil' helper


Joined: 10 Apr 2002 Posts: 81 Location: Rostock, Germany
|
Posted: Sun Apr 14, 2002 1:44 pm Post subject: |
|
|
add the paths to the TTFs to /etc/X11/fs/config
run /etc/init.d/xfs start
remove all font-paths in /etc/X11/XF86Config and add FontPath "unix/:7100"
Restart X
now your X-Server should use the X Font Server and all Fonts should be available.
You should see an increased look of the unix fonts too, because the font server uses antialiasing for all fonts.
Regards,
Gerald _________________ /(bb|[^b]{2})/ |
|
Back to top |
|
 |
niyogi Apprentice


Joined: 10 Apr 2002 Posts: 199 Location: Austin, TX
|
Posted: Sun Apr 14, 2002 2:36 pm Post subject: |
|
|
gschneider wrote: | add the paths to the TTFs to /etc/X11/fs/config
run /etc/init.d/xfs start
remove all font-paths in /etc/X11/XF86Config and add FontPath "unix/:7100"
Restart X
now your X-Server should use the X Font Server and all Fonts should be available.
You should see an increased look of the unix fonts too, because the font server uses antialiasing for all fonts.
Regards,
Gerald |
does this work for Xfree86 3.x or is it just for 4.X?
I got away with adding the FontPath to the ttf files in the XF86Config file in /etc/X11. The fonts you need are already provided with the installation in /usr/share/fonts/truetype I believe
-S |
|
Back to top |
|
 |
gschneider Tux's lil' helper


Joined: 10 Apr 2002 Posts: 81 Location: Rostock, Germany
|
Posted: Sun Apr 14, 2002 3:30 pm Post subject: |
|
|
dont't know if it works with 3.x, never tried it.
i prefer the XFS mainly for his ability to render teh fonts with antialising.
i have multiple directories with ttfs, I found them with "locate .ttf" and "locate .TTF"
Regards,
Gerald _________________ /(bb|[^b]{2})/ |
|
Back to top |
|
 |
PaperCrane n00b

Joined: 11 Apr 2002 Posts: 25 Location: Nova Scotia
|
Posted: Mon Apr 15, 2002 6:16 pm Post subject: |
|
|
Code: |
emerge ttmkfdir
cd /usr/bin/X11R6/lib/X11/fonts/truetype
ttmkfdir > fonts.scale
mkfontdir
|
be sure to add a FontPath entry to you XF86Config file and you'll have to have the Freetype module loaded in there also |
|
Back to top |
|
 |
mvo n00b

Joined: 16 Apr 2002 Posts: 49 Location: Frankfurt/Germany
|
Posted: Tue Apr 16, 2002 5:16 pm Post subject: |
|
|
Hi all!
/etc/init.d/xfs start the font server with option "-port -1" as default. So it doesn't listen to port 7100. No problem to edit this but why this default settings? |
|
Back to top |
|
 |
Guest
|
Posted: Tue Apr 16, 2002 8:48 pm Post subject: |
|
|
niyogi wrote: | gschneider wrote: | add the paths to the TTFs to /etc/X11/fs/config
run /etc/init.d/xfs start
remove all font-paths in /etc/X11/XF86Config and add FontPath "unix/:7100"
Restart X
now your X-Server should use the X Font Server and all Fonts should be available.
You should see an increased look of the unix fonts too, because the font server uses antialiasing for all fonts.
Regards,
Gerald |
does this work for Xfree86 3.x or is it just for 4.X?
I got away with adding the FontPath to the ttf files in the XF86Config file in /etc/X11. The fonts you need are already provided with the installation in /usr/share/fonts/truetype I believe
-S |
somehow I can get this to work, I did change the "unix/:7100" to "unix/:1" as this was the default but X spits out this message saying it couln't init the fontpath. any suggestions ? |
|
Back to top |
|
 |
mvo n00b

Joined: 16 Apr 2002 Posts: 49 Location: Frankfurt/Germany
|
Posted: Tue Apr 16, 2002 9:55 pm Post subject: |
|
|
Yes,
change all "-port -1" to "-port 7100" in "/etc/init.d/xfs" and set the path to "unix:/7100" in XF86Config. |
|
Back to top |
|
 |
chrono n00b


Joined: 09 Apr 2002 Posts: 5
|
Posted: Wed Apr 17, 2002 3:52 am Post subject: |
|
|
I get an error when i try to start xfs if anyone can help:
Code: |
(20:49:32 </home/dan>) 0 $ /etc/init.d/xfs start
* Starting X Font Server...
/sbin/runscript.sh: -droppriv: command not found [ !! ]
(20:49:36 </home/dan>) 0 $
|
Thanks... |
|
Back to top |
|
 |
nempo Guru


Joined: 16 Apr 2002 Posts: 360 Location: Linkoping, Sweden
|
Posted: Wed Apr 17, 2002 4:27 am Post subject: |
|
|
that guest up there thats me, and that "can" after "somehow I", that should be "can't", sorry for the mess-up. |
|
Back to top |
|
 |
fghellar Bodhisattva


Joined: 10 Apr 2002 Posts: 856 Location: Porto Alegre, BR
|
Posted: Fri Apr 19, 2002 5:42 am Post subject: |
|
|
Just for the sake of curiosity: Does that 7100 have a special meaning or is it just a random magic number?  _________________ | www.gentoo.org | www.tldp.org | www.google.com | |
|
Back to top |
|
 |
lude Retired Dev


Joined: 18 Apr 2002 Posts: 114 Location: New York, NY
|
Posted: Fri Apr 19, 2002 6:05 am Post subject: |
|
|
fghellar wrote: | Just for the sake of curiosity: Does that 7100 have a special meaning or is it just a random magic number?  |
From a full /etc/services:
Code: | font-service 7100/tcp #X Font Service
font-service 7100/udp #X Font Service |
|
|
Back to top |
|
 |
tsuru Tux's lil' helper

Joined: 19 Apr 2002 Posts: 99 Location: Nashville, Tennessee, USA
|
Posted: Sat Apr 20, 2002 6:18 pm Post subject: |
|
|
quote="gschneider"]add the paths to the TTFs to /etc/X11/fs/config
run /etc/init.d/xfs start
remove all font-paths in /etc/X11/XF86Config and add FontPath "unix/:7100"
Restart X
now your X-Server should use the X Font Server and all Fonts should be available.
You should see an increased look of the unix fonts too, because the font server uses antialiasing for all fonts.
Regards,
Gerald[/quote]
I have tried following all the suggestions made here..but I still can't get my X server to start. I know that xfs is started and is on port 7100. The exit message I get is something like "can find fixed font" The fontpaths in /etc/X11/fs/config are all the same as the fontpaths in my previous XF86Config. Anyone else hit this prob? Any pointers would be greatly appreciated
Furthermore, when I tried searching the web to solve my problem... I seemed to get the impression that since XFree86 4 there was no need for xfs to display anti-aliased fonts... am I wrong or am I getting confused between anti-aliased and truetype??..
thanks,
tsuru |
|
Back to top |
|
 |
DNH n00b


Joined: 16 Apr 2002 Posts: 60 Location: Ann Arbor, MI
|
Posted: Sat Apr 20, 2002 11:00 pm Post subject: |
|
|
here are the changes I made to get it to work:
1. Remove all of the FontPath enrties from /etc/X11/XF86Config
2. Where those were located, put "FontPath "unix:7100"
3. change "-port -1" to "-port 7100" on lines 14 and 18 of /etc/init.d/xfs
4. exit your X session to a command line.
5. type "/etc/init.d/xfs start"
6. startx
you should have it working now. I was ignoring the hyphen in front of the port numbers in /etc/init.d/xfs and kept getting the same error. hope that helps! _________________ The answer |
|
Back to top |
|
 |
AnonNomis n00b

Joined: 18 Apr 2002 Posts: 28
|
Posted: Sun Apr 21, 2002 4:04 am Post subject: |
|
|
I keep getting this error when trying to start x.
Could not init font path unix/:7100
Fatal server error:
Could not open default font 'fixed'
This only happens when I use "/etc/init.d/xfs start" but if i use "xfs -port 7100" everything starts up fine. I have my /etc/init.d/xfs lines 14 and 18 set to "-port 7100" not "-port -1" and not "-port -7100" Any ideas whats going on? |
|
Back to top |
|
 |
ketanrp n00b

Joined: 19 Apr 2002 Posts: 14
|
Posted: Sun Apr 21, 2002 6:33 pm Post subject: Same Problem |
|
|
I have the same problem,:
Could not init font path unix/:7100, removing from font path
Fatal server error:
Could not open default font 'fixed'
I can't even get it to start up if I use 'xfs -port 7100' instead of the script.
As far I can tell this means that the font server is not really started, or X cannot communicate with it, but I don't have a clue as to how to fix it. Any ideas?
*Edited typographical error |
|
Back to top |
|
 |
lk42pro Tux's lil' helper

Joined: 21 Apr 2002 Posts: 114 Location: New Jersey, USA
|
Posted: Sun Apr 21, 2002 7:28 pm Post subject: |
|
|
AnonNomis wrote: | I keep getting this error when trying to start x.
Could not init font path unix/:7100
Fatal server error:
Could not open default font 'fixed'
This only happens when I use "/etc/init.d/xfs start" but if i use "xfs -port 7100" everything starts up fine. I have my /etc/init.d/xfs lines 14 and 18 set to "-port 7100" not "-port -1" and not "-port -7100" Any ideas whats going on? |
i have that error as well....any help would be appreciated... |
|
Back to top |
|
 |
slik n00b

Joined: 18 Apr 2002 Posts: 48 Location: Alberta, Canada
|
Posted: Sun Apr 21, 2002 7:49 pm Post subject: |
|
|
Ok, this may be an easier way for you all to get TT fonts going (no font server involved).
Add the following to your /etc/X11/XF86Config file
Code: |
Section "Files"
FontPath "/usr/X11R6/lib/X11/fonts/truetype"
<snip other FontPaths and RgbPath>
EndSection
Section "Module"
Load "freetype"
<snip other modules to Load>
EndSection |
That's it, that's all. HTH |
|
Back to top |
|
 |
Mindflux n00b

Joined: 20 Apr 2002 Posts: 5
|
Posted: Sun Apr 21, 2002 8:10 pm Post subject: w0ot. |
|
|
AnonNomis wrote: | I keep getting this error when trying to start x.
Could not init font path unix/:7100
Fatal server error:
Could not open default font 'fixed'
This only happens when I use "/etc/init.d/xfs start" but if i use "xfs -port 7100" everything starts up fine. I have my /etc/init.d/xfs lines 14 and 18 set to "-port 7100" not "-port -1" and not "-port -7100" Any ideas whats going on? |
it's "-port 7100" not "-port -7100". |
|
Back to top |
|
 |
ketanrp n00b

Joined: 19 Apr 2002 Posts: 14
|
Posted: Sun Apr 21, 2002 8:21 pm Post subject: |
|
|
slik wrote: | Ok, this may be an easier way for you all to get TT fonts going (no font server involved).
Add the following to your /etc/X11/XF86Config file
Code: |
Section "Files"
FontPath "/usr/X11R6/lib/X11/fonts/truetype"
<snip other FontPaths and RgbPath>
EndSection
Section "Module"
Load "freetype"
<snip other modules to Load>
EndSection |
That's it, that's all. HTH |
Does this do anti-aliasing? |
|
Back to top |
|
 |
lk42pro Tux's lil' helper

Joined: 21 Apr 2002 Posts: 114 Location: New Jersey, USA
|
Posted: Sun Apr 21, 2002 8:33 pm Post subject: i am confused |
|
|
can anyone give me an explaination for XFS, FreeType, TTF, and XFT? i am confused... |
|
Back to top |
|
 |
slik n00b

Joined: 18 Apr 2002 Posts: 48 Location: Alberta, Canada
|
Posted: Mon Apr 22, 2002 12:10 am Post subject: |
|
|
ketanrp wrote: |
Does this do anti-aliasing? |
You will have to make sure you have the Xft Render Extentions enabled, check with:
Code: | $ /usr/X11R6/bin/xdpyinfo | grep RENDER |
if you don't get a RENDER echoed back, you don't have the render extentions enabled for your X setup.
xterm with antialiased fonts: Code: | xterm -fa 'Andale Mono' -fs 14 | where -fa is font face name and -fs is font size.
for KDE2 and QT2 apps to use antialiasing, you need to set the QT_XFT environment variable to true
for bash shells:
Last edited by slik on Sun Apr 28, 2002 9:22 pm; edited 1 time in total |
|
Back to top |
|
 |
AnonNomis n00b

Joined: 18 Apr 2002 Posts: 28
|
Posted: Tue Apr 23, 2002 3:37 am Post subject: my fault |
|
|
It works now i should have did this earlier, I only followed the directions at the beginning of the post. When i tried this everything started working.
emerge ttmkfdir
cd /usr/bin/X11R6/lib/X11/fonts/truetype
ttmkfdir > fonts.scale
mkfontdir
Thanks for the all the help. |
|
Back to top |
|
 |
lk42pro Tux's lil' helper

Joined: 21 Apr 2002 Posts: 114 Location: New Jersey, USA
|
Posted: Tue Apr 23, 2002 4:11 am Post subject: |
|
|
[quote="slik"]Ok, this may be an easier way for you all to get TT fonts going (no font server involved).
Add the following to your /etc/X11/XF86Config file
Code: |
Section "Files"
FontPath "/usr/X11R6/lib/X11/fonts/truetype"
<snip other FontPaths and RgbPath>
EndSection
Section "Module"
Load "freetype"
<snip other modules to Load>
EndSection |
whats the difference between the above method and the one where we load up the XFS server? |
|
Back to top |
|
 |
dArkMaGE Apprentice


Joined: 20 Apr 2002 Posts: 152
|
Posted: Tue Apr 23, 2002 5:05 am Post subject: |
|
|
dont you also have to add the freetype module? |
|
Back to top |
|
 |
|