8/12/07

Add truetype fonts on X client side

The pdf file [as I understand] encapsulate text, images and fonts so it should give me same result on any os. Many of pdf files I have are generated on windows and use windows fonts. When I open these files with evince [default document viewer] some can't render fonts correctly because windows fonts aren't embedded and not exist on ubuntu too.
What I need to do is make application has correct fonts to use. There are two places that we can add fonts, the first is on server[Xserver] side and the second is on client side. Here I choose second choice by copy fonts required by the document from windows to $HOME/.fonts then caching new fonts by run command 'fc-cache -fv .fonts'. Below is result after adding fonts.

pnix@pnix-a7n:~$ ls .fonts
ANGSAB.TTF ANGSA.TTF ANGSAUI.TTF ANGSAUZ.TTF timesbd.ttf timesi.ttf
ANGSAI.TTF ANGSAUB.TTF ANGSAU.TTF ANGSAZ.TTF timesbi.ttf times.ttf
pnix@pnix-a7n:~$ fc-cache -fv .fonts
/home/pnix/.fonts: caching, 12 fonts, 0 dirs
/var/cache/fontconfig: not cleaning unwritable cache directory
/home/pnix/.fontconfig: cleaning cache directory
fc-cache: succeeded
pnix@pnix-a7n:~$

1 comments:

Anonymous said...

Who knows where to download XRumer 5.0 Palladium?
Help, please. All recommend this program to effectively advertise on the Internet, this is the best program!