Revision: 3825 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3825&view=rev Author: pkienzle Date: 2007年09月10日 11:45:32 -0700 (2007年9月10日) 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.