From: <pki...@us...> - 2007-09-10 18:45:33
|
Revision: 3825 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3825&view=rev Author: pkienzle Date: 2007-09-10 11:45:32 -0700 (Mon, 10 Sep 2007) Log Message: ----------- Windows needs binary open flag for font files Modified Paths: -------------- trunk/matplotlib/ttconv/pprdrv_tt.cpp Modified: trunk/matplotlib/ttconv/pprdrv_tt.cpp =================================================================== --- trunk/matplotlib/ttconv/pprdrv_tt.cpp 2007-09-10 17:45:15 UTC (rev 3824) +++ trunk/matplotlib/ttconv/pprdrv_tt.cpp 2007-09-10 18:45:32 UTC (rev 3825) @@ -1088,7 +1088,7 @@ font.filename=filename; /* Open the font file */ - if( (font.file = fopen(filename,"r")) == (FILE*)NULL ) + if( (font.file = fopen(filename,"rb")) == (FILE*)NULL ) throw TTException("Failed to open TrueType font"); /* Allocate space for the unvarying part of the offset table. */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |