What is better: xfree or xfs font render? 

Newsgroups: comp.os.linux.setup
> I use Xfree86 4.0.3 and xfs.
> Now as I under stand X is able to render fonts by it self (be that
> tt,speedo, type1...)
> So why do I need xfs? Any reason to keep it?

xfs can serve fonts to remote sessions so the fonts need not reside on the remote machine. This is useful for x terminals and such. xfs can also serve font types not directly supported by X, eg TrueType.

John Thompson @attglobal.net

xfs, is it really necessary 

Newsgroups: comp.os.linux.x
Date: Thu, 12 Dec 2002 11:58:48 +0000
> I'm wondering if xfs is really necessary (in RedHat 8)?

No, it's not necessary, but it's nice.

> So, I am just wondering, if any of the applications relies on xfs (in
> RedHat 8)? I believe getting rid of xfs will make the system goes faster
> (without those extra steps), and safer (close potential attacks from the
> tcp port (7100) that xfs is using).

Actually, *not* using xfs has been argued to be usually slower, as the X server will pause to gather/render fonts when this could be done in the background with xfs. Also, redhat's xfs is secure, because it *only* listen's to localhost.

Rex

xfs, is it really necessary 

> I'm wondering if xfs is really necessary (in RedHat 8)?

I've never used it, but I don't run redhat. What I'm wondering is if antialiasing requires that the font be rendered as an 8-bit per pixel bitmap, wouldn'd xfs be even more inefficient?

xft, bug or feature? 

Newsgroups: comp.os.linux.x
Date: Thu, 12 Dec 2002 14:32:12 -0400

I'm wondering if I can turn off the feature that xfs recreate the font.dir (and other related files) every time when it boots.

Seems such a waste of time to me. :-) More over, it does more harm than good to me, because I have some 2-byte Chinese fonts that are not correctly recognized by mkttf.

I handcrafted the right font.dir and font.scale, but every time they are overwritten by xfs, making those Chinese fonts totally unavailable. I make the font.dir file read only to everyone, and make the directory read only. But xfs bypass all the restrictions and successfully overwrites my handcrafted read only file in a read only directory, claiming total success of the battle I'm fiddling on. :-)

xft, bug or feature? 

> I'm wondering if I can turn off the feature that xfs recreate the
> font.dir (and other related files) every time when it boots.

It doesn't recreate it *every* time. It only regenerates it if there exist fonts in that directory that are newer than the fonts.dir file, at least that is the behavior on redhat linux.

Rex

xft, bug or feature? 

chkfontpath --add /fonts/TrueType/win_zh_CN.0
xlsfonts | grep sim

— double entry

xset -q
xset -fp /fonts/TrueType/win_zh_CN.0
xset -q
xlsfonts | grep sim

— single entry now

xfd -fn -microsoft-simhei-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0 &

— can view Chinese chars normally

gbrxvt

— Chinese rxvt menu, but no Chinese fonts in date or text.

So, I guess now it is the rxvt that prevents me from moving the Chinese fonts to xfs, because rxvt can't use fonts from xfs.

NO! I started X, but didn't restart xfs!

The fonts.dir DOES get overwritten!

No even Chinese rxvt menu any more. Change to X, and all are back.

How do I make a server a font server? 

Newsgroups: comp.unix.solaris

http://groups.google.com/groups?hl=en&lr=&safe=off&ic=1&th=bd066a055a12a61b,3&seekm=351BCDAE.1FB9B397%40visana.ch#p

A font server under Solaris is a special package called "SUNWxwfs". See if it is installed via "pkginfo -l SUNWxwfs". If it's not, install it from the Solaris-CD ("pkgadd -d . SUNWxwfs" somewhere in the /cdrom/…/s0).

Now you have to configure the font server, try manual pages to the font server first (man -s 1 fs).

Basically, only a couple of parameters have to be specified in the conf. file (the default config file being /usr/openwin/lib/X11/fontserver.cfg). The parameters include things such as port number of the font server (has also to be known to the clients) and the location of font directories to serve.

IMPORTANT:

Check what type of protocol (R5 or R6) ar required by your clients and install the proper version. You can, of course, install both version of font servers, but you have to run them on different TCP ports. Then, you can selectively configure clients (e.g. PC X-terminals) to use either X11R5 or X11R6 font server.

Start font server automatically by typing "fsadmin -e" (it will install start-up script to start the server after each reboot and start the server immediately). It exports your list of X fonts through a tcp port (7100 generally)

Check whether it is running by "fsinfo -s hostname:port".

Configure clients and see whether you can donwload fonts.

damir.delas @visana.ch

Font server howto 

Newsgroups: comp.unix.solaris
Date: 1999/11/02
>i'm trying to use a font server with Solaris 2.6.
>From what I found I should be able to set a font server with
>
>  %> xset fp+ tcp/hostname:port

First, make sure the X font server is running on the font-server (fs) host. Usually, the fs (font server) is started with command like this.

fshost> /usr/X/bin/fs  -config /usr/X/lib/fs/config -port 7100

Of course, the path and the port number may differ. Also, note that it may be "fs" on some systems, while "xfs" on others.

Second, check the font server (on fshost) info from local host like this.

localhost> FONTSERVER=tcp/fshost:7100 ; export FONTSERVER
localhost> /usr/openwin/bin/fsinfo
>However this always results in the output
>
>xset:  bad font path element (#55), possible causes are:

If "fsinfo" above gave you a positive answer (i.e. font server running), you should check what xset suggested, that is,

>    Directory does not exist or has wrong permissions
>    Directory missing fonts.dir
>    Incorrect font server address or syntax

Good luck.

Remote session & Font Server 

Newsgroups: comp.unix.admin
> I have a question regarding my own (Chinese) font setting and remote
> session in Solaris.
>
> I installed a Chinese xterm program (cxterm) on one of the Solaris
> box in our lab. I managed to get it going. Now I want to be able to
> share this tool with other Solaris box in our lab.
> But I even can't get it going using the "Solaris remote session".
> The error is "unable to open font "hanzigb16st". What's the
> difference between a console-X log on and remote-X session will cause that?
> Am I not using the same working environment?... This really confuse me.

The difference is which X server you are using. The X server provides the fonts to the clients. The message indicates that the cxterm asked the X server (running on a remove box) for the font 'hanzigb16st' and the X server politely indicated that it knows of no such font.

> Besides, the Chinese font directory is NFS shared across all boxes
> in our lab. But I guess it won't help. To solve this problem, seems
> that I have to install a font server, can somebody give me a brief
> step by step instruction on how to do it please?

If the font directory is available to ALL of the X servers you need only add it to the font paths of the servers. You can use the xset command to do that. If the font path is the same on all boxes you should be able to add a call to xset to your x init script to do something like:

xset +fp /wherever/the/font/is

Chuck Dillon

Remote session & Font Server 

> thanks for your help, Chuck. I managed to get another Solaris box
> going. Question, what if I need to set up the font path
> permanently. Using the apropos I found a tool called sdtfontadm to
> do it, but I want to know further where the info is written to.

/usr/openwin/server/etc/OWconfig

> One thing I forgot to mention, there's one solaris box in our lab
> that no one can have access to it. So I'm using it as a "dump
> terminal" to link back my usual server. In this case, I can do
> nothing about the X server that I'm using, does it mean that I can't
> use cxterm there? Will a font server help? Thanks!

A font server might be your only choice in this case. You would need to run the font server on one of the boxes that has the fonts and use xset (man xset) to tell the xterminal about the font server.

Man xfs, look for xfs or 'font server' at docs.sun.com and/or look it up in the ORA books I mentioned. Its been a long time since I set one up, and I only did it once, so I can't give you any specifics.

Also use http://groups.google.com/advanced_group_search as a resource for searching the usenet archives for answers before posting. You might find all you need there.

If you want specific help, after trying to work it out, I suggest you post to comp.windows.x and if you are using the CDE environment post to comp.unix.cde.

Chuck Dillon

Remote session & Font Server 

Related URLs in google_group_search

ow do I make a server a font server? http://groups.google.com/groups?hl=en&lr=&safe=off&ic=1&th=bd066a055a12a61b,3&seekm=351BCDAE.1FB9B397%40visana.ch#p
Looking for X Font Server http://groups.google.com/groups?hl=en&lr=&safe=off&ic=1&th=d1e779328ad3fd4a,4&seekm=6k5eev%24c7i4%40hector.sabre.com#p
X font server, comp.os.linux.x http://groups.google.com/groups?hl=en&lr=&safe=off&ic=1&th=a2c4c2c53b315ca8,39&seekm=373A01B0.6799A50E%40soton.ac.uk#p

http://groups.google.com/groups?q=%22font+server%22&num=50&hl=en&lr=&safe=off&rnum=14&ic=1&selm=86snjf9ljn.fsf%40itz.dsl.speakeasy.net

X font server 

 Newsgroups: comp.os.linux.x
http://groups.google.com/groups?hl=en&lr=&safe=off&th=a2c4c2c53b315ca8[],39&ic=1
> > What is the benefit, if any, of running Xfontserver?
>
> If you have only one machine: none.

That's not really true. Even with only one machine there are benefits to using a fontserver.

Rasterizing a font (think about vector fonts, and/or large fonts like Japanese or Chinese) can be quite CPU intensive. If you use a fontserver the the OS will multi-task both the fontserver and the X server. The X server will keep responding to things like the mouse moving and client draw requests while the fontserver works in the background.

Also when you use a fontserver, the X server can multiplex chunks from the fontserver and requests from clients. If the server has to read a large font from the file system there could be a noticable delay while it reads the file, but if it's getting the glyphs in chunks from a fontserver it can do other things in between the chunks.

Together these two factors can give you a system that you may perceive to be more responsive than a similar system that's not using a fontserver.

Kaleb S. KEITHLEY

X font server 

Not true. You can get font servers that support font types not supported by the X server, such as TrueType fonts, and can thus use those fonts in X. This is most certainly a benefit for people who have many such fonts!

brion vibber

X font server 

> Even with only one machine there are benefits to using a
> fontserver.
[explanation snipped]

On the other hand, when you use a font server, you end up with *two* copies of the bitmaps for the glyphs (one in the font server, one in the X server). This effect can be allieviated somewhat by turning on delayed glyph loading in the X server.

Another poster mentioned that a font server can serve fonts that the X server does not know how to handle. For this purpose, it might be better to add a new backend to `xc/lib/font' so that both the X server and the font server know how to use the new font format. (But then, I'm biased.)

X font server 

I've been experimenting with gfs, the Gallium font server
> that comes with Applixware.  It hands TrueType fonts, and though oddly
> enough Applixware itself doesn't seem to recognize it, StarOffice
> does.

I had just the opposite results. Setting up fonts in StarOffice is a nightmare.

I'm using Xfstt to display truetype fonts in X and I recompiled ghostscript to use them for printing. The Gallium font server made it simple to set up Applixware to use truetype fonts.

X font server 

> How exactly did you do that? I added my TrueType fonts to the
> Gallium font server, but Applix refuses to use them. The
> administrator's manual describes the fontmap.dir file,
>

I might have taken the long way around here to get truetype fonts working in X, Applix, and ghostscript — but here goes.

First I want to point out where to find Xfstt : http://sunsite.unc.edu/pub/Linux/X11/fonts/

A good wed site with information on installing fonts in Applix: http://www.users.fast.net/~rodsmith/fonts.html

And another interesting site: http://www-sef.usc.edu/~vibber/linux/TrueType.html

The first thing I did was get hold of some truetype fonts. I just copied the fonts from my Win95 partition over to Linux and placed them in a directory I called: ttfonts /usr/X11R6/lib/X11/fonts/ttfonts

There is also a list of web sites to download truetype fonts listed in the FAQ that comes with Xfstt.

cd over to /usr and create a link for Xfstt to find the fonts:

ln -s /usr/X11R6/lib/X11/fonts/ttfonts  ttfonts

Xfstt looks for fonts in /usr/ttfonts but I like to keep my font directories grouped together under /usr/X11R6/lib/X11/fonts/

Build and install Xfstt I untared Xfstt under /tmp but it doesn't matter where it's done. When you run "make install", one of the things it does is run

xfstt --sync

xfstt —sync generates two files in the truetype font directory: ttinfo.dir and ttname.dir I made a copy of ttname.dir and called it fonts.scale fonts.scale is one continous line of descriptions of all the fonts in the directory. I edit my new fonts.scale file placing each font discription on it's own line. The font discriptions need to be edited. As an example, change a description like :

Nimrod Bold nimb____ttf -ttf-nimrod-bold-r-normal-tt

to

Nimrod Bold nimb____ttf -ttf-nimrod-bold-r-normal--0-0-0-0-p-0-iso8859-1

Count the total number of font discriptions and enter that number on the first line of the file (by itself). You can make a copy of this file calling it fonts.dir or you can run the program mkfontdir.

Edit the file (if your using XFree86) called XF86Config in /etc/X11/ and change the line after fontpath to something like :

"/usr/X11R6/lib/X11/fonts/misc/:unscaled,/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,inet/127.0.0.1:7100,/usr/X11R6/lib/X11/fonts/misc/,usr/X11R6/lib/X11/fonts/75dpi/"

Before running startx start-up xfstt. I found that the fonts in Java's SwingSet example look the right size if I start xfstt as follows:

xfstt --res 72 &

If you follow the instructions for installing fonts in Applix using Rod Smith's instructions at http://www.users.fast.net/~rodsmith/fonts.html under the heading "FontTastic Font Installation" all should go well. I believe this are the same instructions in Fontastic Help.

The easiest way to make these fonts available to ghostscript is to set the environment variable in .bashrc

export GS_FONTPATH=/usr/share/ghostscript/fonts,/usr/X11R6/X11/fonts/ttfonts

Ghostscript will run faster if you edit it's Fontmap file but I haven't noticed any undesirable delays.

As a test, I used a font in Applix's editor that was only available as a truetype font and sent it out to the printer.

Brian Chamberlain @ibm.net

X font server 

> I'll have to admit, this font business has got me stumped.

Ditto. Like you I've been trying out xfstt. Promising, but on my 133MHz Pentium with 64MB it "freezes" the entire machine for a few seconds every fifteen seconds or so. gfs doesn't do this, but (v1.3, at least) can only take one directory as its catalogue, and anyways seems to need a fonts.dir entry (which xfstt doesn't) for every font, which I have no idea how to generate for TrueType fonts as mkfontdir doesn't. I managed to add TrueType fonts to StarOffice after a lot of grief. I know ghostscript handles TrueType fonts but it needs to be recompiled, and I don't mind recompiling in general but it's a huge program and I like the convenience of having it already built in RPM too much.

X font server 

> I'm not sure what it means to have ghostscript doing TrueType fonts...
> Does that mean that if your document uses a font which happens to be
> TrueType, that gs can render it?

It's really as simple as 1, 2, 3 ….

First:

In order to use a truetype font in Applix I first need to make it available to the X server. (Xfstt)

Second:

I need to install the font in Applix (FontTastic)

Third:

Ghostcript needs to have a font description in order to convert the font for printing. Type 1 and truetype fonts are described differently and ghostscript can be compiled to work with truetype descriptions.

The same goes for type 1 fonts. The fonts that come with XFree86 are not scalable. Sure, you can print a postscript document through ghostscript but It must look like crap when viewed in ghostview. How can you create a document in Applix using the fonts that ghostscript knows about if there not available to the X server? How can ghostscript convert a font for printing if it has no description of that font?

X font server 

> I can't get the X Font Server "xfs" (on RedHat 6.0) working to deliver
> fonts to my X-Terminal, how to configure it ?

You didn't indicate what kind of X terminal you're using. But here are some hints:

  1. set up AND TEST the fontserver. 'fsinfo' and 'fslsfonts' will tell you if the fontserver is running correctly.

  2. use 'xset fp+' in an xterm to add the fontserver to the font path. 'xset q' will show you the fontpath before & after this command. 'xlsfonts|wc -l' used before & after will show an increase in fontnames available.

If you have problems with 'xset fp+' and a known working fontserver, you may have an X server running on that X terminal that is too old. Fontserver capability wasn't added until 1992, if I remember correctly.

X font server 

> > Well here's another in my long list of screwups with XFree 4.0.1... I
> > now cannot start my computer because it's freezing:
> >
> > Starting X font server: xfsFontCacheInitialize: hi=1048576 lo=786432
> > bal=70
> >
> > And it goes no further...
>well....glad to know i'm not the only one having this problem.  Please,
>can ANYONE help?  I have even tried using the emergency shell, but it
>won't mount the filesystem so I can modify conf files.

At the lilo prompt:

linux 3

should you get in with a nice command line interface, and you can do what you want. Did you upgrade from something with a font server? You probably don't need it at all now.

X font server 

There is an easy way to find about the "xfs" startup file:

  1. view /etc/inittab, and find the section like the following:

    l0:0:wait:/etc/rc.d/rc 0
    l1:0:wait:/etc/rc.d/rc 1
    ....
    ...

    This gives an indication that /etc/rc.d/rc is responsible for starting (and stopping) services.

  2. Now view /etc/rc.d/rc (or whatever shown there), and find the location where it is starting different services. There is a likely to be a line like: "for i in /ete/rc.d/rc$runlevel.d/S*;" giving a clue that startup scripts reside in /etc/rc.d/rcn.d (where n is the default runlvel)

  3. Now find the startup file responsible for xfs (say for eg, S90xfs), and rename it to _S90xfs.

  4. That's it your computer will no longer start "xfs"

(It is true that Xfree 86 4.0.1 comes with an integrated xfs, hence you may not require a separate xfs)

server not working 

Newsgroups: comp.os.linux.setup
> i have just installed free86 3.3.6 because the old one would not support
> my video card.  after doing the install, i ran startx and all was good.
> fr86 found my video card and all went well.  however when i restarted
> linux it went through the start up seq. and stopped on Starting X Font
> Server, and then would not do anything else, no matter what i tried.  i
> do not know how to fix this, so i can start linux in x.
> any help would be greatly app.
> cheers

You don't need to run the X font server to display fonts in X. Since it is giving you problems now, the best thing to do is probably to stop using it and simply hard code the font paths into XF86Config.

You need to stop this service from initiating at boot time. If you are using RedHat or Mandrake, you can safely stop the service from the console by running ntsysv — just uncheck the box for "xfs" and reboot. If you are using some other SysV based distro, just delete the symlinks for xfs in /etc/rc.d/rc3.d and /etc/rc.d/rc5.d and reboot.

Of course, you will need to successfully boot up to login prompt and login as root to do this, and it sounds like you can't get that far. The thing to do is tell lilo that you want to boot into runlevel 1, like this:

lilo: linux 1

(or)

boot: linux 1

Just type "linux 1" after the boot prompt, whatever that might say, and linux will boot into runlevel 1, at which point you can login as root and perform the actions outlined above. (Press <tab> at the lilo prompt to verify that "linux" is the actual name associated with the kernel image you want lilo to look for — it probably is, but in case this fails…).

After you have done this, you will need to edit XF86Config. It typically lives in /etc or /etc/X11. The lines you need to add will depend on your X installation. My 3.3.6 installation, compiled from source, works just fine with only these entries in the "Files" section:

Section "Files"
   RgbPath    "/usr/X11R6/lib/X11/rgb"
   FontPath   "/usr/X11R6/lib/X11/fonts/misc/:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/Speedo"
   FontPath   "/usr/X11R6/lib/X11/fonts/Type1"
EndSection

The line you want to delete will likely look like this:

FontPath    "unix/:-1"

At any rate, the fonts live in /usr/X11R6/lib/X11/fonts, so check to see what you have. I find that using unscaled fonts improves readability, but use whatever you like best.

Todd