SourceForge logo
SourceForge logo
Menu

matplotlib-checkins

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 (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.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /