File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Linux / UNIX and the fly likes Font installation in UNIX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Font installation in UNIX" Watch "Font installation in UNIX" New topic

Font installation in UNIX

Andres Delrotti
Ranch Hand

Joined: Aug 11, 2005
Posts: 164

We just migrated our application to an application server running in UNIX (it was running on windows before). With this, we need to do some font installation in the machine. This will be used by our application in printing bar codes. The problem is since I rarely work on UNIX machines, I find it hard to understand installation instruction in the net pertaining to the set up of fonts in UNIX.

Based on what I have researched, all seem to say that these steps are needed

1. Secure the font files (.ttf files)
2. Place them under the TrueType folder in the machine (under /usr folder)
3. Run ttmkfdir
4. Restart font server

I get that but my question is about the font server. Are x-font servers installed in Unix machines by default? and we just need to activate them? or do they need to be installed manually?

Do all x-font servers in UNIX support truetype fonts? or would that depend on the version?

I really don't get this x-font servers (XFS) thing.

I would appreciate any inputs from you guys. Thanks.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

Fonts in Unix/Linux can be very confusing. There were actually several generations of attempts at providing fonts, the mechanisms and storage locations were different, and even the clients varied. Some mechanisms were for the benefit of non-GUI systems (for example, TeX), some were usable by only a selected set of GUI apps, some were universal.

Things have pretty much stabilized in recent years, but remnants of the older systems remain for legacy purposes.

X-font servers are not installed on the system "by default", unless your "default" was a graphical (X) install or at least contained graphical support as a standard feature.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Font installation in UNIX
It's not a secret anymore!