Printing non-Latin characters with CUPS

After following our section on inputting non-Latin languages, you may want to be able to print in those languages as well. Unfortunately, if you try to print a page in Japanese, Hindi, or your language of choice, you may have noticed that you get an unhappy looking piece of paper with a bunch of squares on it where words should be. Fear not, we're going to enable printing in non-Latin languages.

cd /usr/ports/print/adobe-cmaps
make install clean

You should now be able to print non-Latin characters using CUPS. However, there are some additional things worth mentioning on this subject.

You may have already acquired a nice set of fonts, including non-Latin fonts. They may look great in Firefox and other apps. However, when you attempt to print a page in Japanese, for example, you may find that the output looks different (and less attractive). That is because not all fonts are created equally. The key is in the PostScript. Some fonts contain this information and others do not. (In which case CUPS will rely on the information provided by adobe-cmaps, which means all of these non-PostScript fonts will look the same when printed).

I have found that Mac OS X provides much better Japanese fonts than Windows. Don't get me wrong, the Windows Japanese fonts look just fine on the screen, but leave a lot to be desired when printed. I realize that not everyone has a Mac, but if you do, you may find that enabling Japanese input on your Mac and then importing the Mac OS X fonts to your FreeBSD system yields particularly nice results for printing in Japanese.

A good way to "preview" how a non-Latin font is going to look when printed is to type something in that font in OpenOffice.org. That application has some interesting PostScript capabilities (such as its built-in export to PDF feature) that bridge the gap between screen and paper. What you see in OpenOffice.org is what you will get on paper. Nice way to discover that printing Japanese text written in the Osaka font (taken from Mac OS X) will look great but printing that same text written in the MS PGothic font will not. Set your fonts accordingly in Firefox and other applications to optimize your printing experience.