Skip to content

Commit 2be79c8

Browse files
author
pkienzle
committed
Windows needs binary open flag for font files
svn path=/trunk/matplotlib/; revision=3825
1 parent 4da11d6 commit 2be79c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ttconv/pprdrv_tt.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ void read_font(const char *filename, font_type_enum target_type, std::vector<int
10881088
font.filename=filename;
10891089

10901090
/* Open the font file */
1091-
if( (font.file = fopen(filename,"r")) == (FILE*)NULL )
1091+
if( (font.file = fopen(filename,"rb")) == (FILE*)NULL )
10921092
throw TTException("Failed to open TrueType font");
10931093

10941094
/* Allocate space for the unvarying part of the offset table. */

0 commit comments

Comments
 (0)