TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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. – yo' Dec 20 '12 at 14:05

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. – yo' 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

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.