Using latest MikTeX, under Windows 10. If I compile the following MWE (bottom) to a .dvi file, and then either look at it with yap, or .dvi -> .ps -> .pdf, file renders fine. However, if I try to convert the .dvi to a .png file using dvipng (which comes bundled with MikTeX), I get the following fatal error:

 C:\Users\egc\Desktop\egc\text\TeX notes\mwe>dvipng cmbright_demo.dvi
   This is dvipng 1.16 Copyright 2002-2015, 2019 Jan-Ake Larsson

   dvipng: Fatal error, PK file 

     /cmbright/dpi480\cmbr10.pk ends prematurely

If I comment out cmbright, and simply use default (cm), no error at all. dvipng creates a png file. If I try a differnt font package, say, \usepackage{newtxtext,newtxmath}, again, no problem at all. The problem seems to arise with cmbright. So, not sure if the problem is with cmbright, dvipng, or some interaction between the two. I'd like to sort this out, since cmbright is my go-to for san serif with math support.

Any suggestions? Thanks much...

Here is the MWE:




  Here is a simple equation


 Now some random text. Lorem ipsum dolor sit amet, consectetur adipiscing 
 elit. Sed et pharetra ligula, quis consequat nunc. Suspendisse potenti. 
 Donec purus nibh, vestibulum et massa sit amet, dapibus accumsan magna. 
 Aliquam vitae ante auctor, vestibulum sapien in, pellentesque dolor. 
 Suspendisse laoreet luctus ex. Fusce ornare vestibulum neque eu rutrum.

1 Answer 1


In reading the cmbright docs, I noticed references to cm-super, and hfbright. I installed both packages, and, problem gone. dvipng now works perfectly.

  • Could you please mark this answer as correct, to make it easier for others to find? Apr 8 at 9:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .