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.

  • 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. – user11232 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

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.

  • Thanks for a way out. But, unfortunately I am on windows 7. The windows binaries are not downloading properly here. – user11232 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? – user11232 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

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).

  • Thanks, Your answer was also useful. But I can choose only one answer. But I can say thanks again. – user11232 Mar 2 '12 at 15:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy