[pdftex] using TTF font with pdftex gives wrong unicode

josef dev david_jsf at yahoo.com
Wed Apr 30 14:48:48 CEST 2008


Dear all, I posted below query on tex group but couldn't get support, can anyone here guide me?

I'm using truetype font in pdflatex and accessing extended chacarcter 
in single (not composite) via utf8 input encoding. I noticed that when 
I copy any extended charcter from PDF and paste it in MS word then it 
gets changed to some other character. 

It looks like that in PDF its appearing from the sub font map (256 
character encoding, e.g. cyberb00.enc, cyberb01.enc, etc) and loosing 
its actual unicode value. 

A small sample to demonstrate the situation is 

%%%%%%%%%%%%%%%% 
\documentclass{article} 

\usepackage[utf8ttf]{inputenc} 
\usepackage{ttfucs} 
\DeclareTruetypeFont{cyberbit}{cyberbit} 

\begin{document} 

Ā 
ā 

\unichar{"100} 
\unichar{"101} 

\end{document} 
%%%%%%%%%%%%%%%% 

Can anyone tell why this is happening? And how this can be solved? 


try 
http://tclab.kaist.ac.kr/ipe/utf8ttf.def 

and 

http://tclab.kaist.ac.kr/ipe/ttfucs.sty
to download the files


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


More information about the pdftex mailing list