Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Say, I have a font.ttf or font.otf file. Is there any method by which we can get the font.pfb file from them? In other words, Can we convert ttf to type1 fonts? If yes, somebody please tell me how or direct me to the right path.

share|improve this question
1  
Could you add some motivation to this? What part of your TeX based workflow raised this issue? –  qubyte Feb 27 '12 at 5:39
1  
@MarkS.Everitt Anyone who wants to use PDFLaTeX instead of LuaLaTeX or XeLaTeX with a font that isn't on CTAN would need to do this... –  Canageek Feb 27 '12 at 6:22
1  
@Canageek: Yes I know. However, the question is a little thin and could use some padding, especially as it doesn't involve TeX on first glance. In addition, the simple answer is just "use LuaLaTeX or XeLaTeX", so what is the reason not to use those? –  qubyte Feb 27 '12 at 6:28
    
@MarkS.Everitt, My experience with xelatex has not been good with some of the fonts since I struggled my way out. So I thought if I learn this conversion I can directly use them with pdflatex. –  Harish Kumar Feb 27 '12 at 7:10
2  
@MarkS.Everitt LuaLaTeX is still buggy, and neither support Microtype. Also neither are used by scientific journals. –  Canageek Feb 27 '12 at 15:32
show 6 more comments

2 Answers

up vote 7 down vote accepted

You should be able to use ttf fonts directly with PDFLaTeX. You can generate Type1 fonts from OTF with the LCDF type tools. For example the command

otftotfm JosefinSansStd-Light.otf 

gives you the files JosefinSansStd-Light.pfb and JosefinSansStd-Light.tfm.

share|improve this answer
    
Thanks for a way out. But, unfortunately I am on windows 7. The windows binaries are not downloading properly here. –  Harish Kumar Feb 27 '12 at 8:00
    
@Dr.HarishKumar They are not in your TeX distribution? –  topskip Feb 27 '12 at 8:05
    
I use MiKTeX 2.9. And can you pl. tell me how to check that? –  Harish Kumar Feb 27 '12 at 10:46
    
@Dr.HarishKumar It looks as if MikTeX does not provide lcdf type tools... –  topskip Feb 27 '12 at 11:22
    
Sorry, I thought PDFTeX only supported Type 1, not ttf? –  Canageek Feb 27 '12 at 23:28
show 7 more comments

You might be interested in the installfont bash script. It automates the process of creating the font support files and installing them at the proper place. You need a *nix like environment like cygwin to run it. There's also a package of fontforge for cygwin, which would also solve your problem with the LCDF type tools. Just load the font in fontforge, reencode it to AdobeStandardEncoding and export it to PostScript Type1 (Binary).

share|improve this answer
    
Thanks, Your answer was also useful. But I can choose only one answer. But I can say thanks again. –  Harish Kumar Mar 2 '12 at 15:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.