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.

When I try to change my document type from dvi to pdf, font type changes. To show this change, hereby I put two pictures from the dvi and pdf files, respectively.

enter image description here

enter image description here

enter image description here

I use this preamble in my document:

%  \usepackage[T1]{fontenc}  
%  \usepackage{winfonts}  
%      \usepackage[none]{hyphenat}  

There are more packages, however I could not type here because of the letter constraint. I hope this information is enough to identify the problem. Can anybody help me on this please?

share|improve this question
i don't think there's enough here for anyone to work on. please give us a concrete example (preferably a minimal source file) and explain what you mean by "font type changes". –  wasteofspace Dec 20 '12 at 10:54
The information has been updated wasteofspace. –  Rıza Bayoğlu Dec 20 '12 at 11:31
It's difficult to say something, since the OkanFBEStyle is unknown. However you should avoid srcltx, which is obsolete; can't you use pdflatex directly? –  egreg Dec 20 '12 at 11:44
@egreg I removed srcltx package in your advice. I can not use pdflatex as I have eps files. However, I can put here my style file if anyone want to look at it. Thanks. –  Rıza Bayoğlu Dec 20 '12 at 12:19
@RızaBayoğlu That error message comes from the package microtype which really modifies the font (in a good and sensitive way), and is compatible only with PdfLaTeX. –  tohecz Dec 20 '12 at 14:05
show 7 more comments

1 Answer

This error is caused by microtype package. This package is compatible only with pdfLaTeX (and partially with XeLaTeX and LuaTeX), but not with anything that uses dvi format. However, the output of dvi->png and dvi->pdf conversion can differ, since the microtype instructions can be used in the resulting pdf but the measurements can be wrong.

Conclusion: Never use microtype with dvi.

share|improve this answer
I updated my preamble adding: \usepackage[pdftex]{graphicx} \usepackage{epstopdf} and removed this: \usepackage{microtype} Then, with pdflatex I got the third picture in the original question. Comparing pictures 1 & 3, the third one is a bit different than first one (smaller and darker font). I suspect that this difference might come from the microtype . Therefore, I added this and recompile, it did not compile saying that fatal error occured. What do you suggest at this point? –  Rıza Bayoğlu Dec 24 '12 at 7:57
If the question is only the darkness of the font, try printing both, I think that they would be much more similar. The difference in display versions is due to different anti-aliasing methods used by different programs and formats. –  tohecz Dec 24 '12 at 10:11
Yes, it is exactly. After printing the document I realized that there is no font change with the prints, but with the pdf file. Thanks. –  Rıza Bayoğlu Dec 24 '12 at 13:11
add comment

Your Answer


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.