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.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to