libdrawtext

diff src/font.c @ 42:f067608d8a7c

- fixed glyphmap loading on windows (open glyphmap as binary) - added installation post-build rules in visual studio project
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 07 Jun 2014 13:37:54 +0300
parents 49bc37890c38
children 43444ec90632
line diff
     1.1 --- a/src/font.c	Thu Apr 17 11:21:39 2014 +0300
     1.2 +++ b/src/font.c	Sat Jun 07 13:37:54 2014 +0300
     1.3 @@ -332,7 +332,7 @@
     1.4  	FILE *fp;
     1.5  	struct dtx_glyphmap *gmap;
     1.6  
     1.7 -	if(!(fp = fopen(fname, "r"))) {
     1.8 +	if(!(fp = fopen(fname, "rb"))) {
     1.9  		return 0;
    1.10  	}
    1.11  	gmap = dtx_load_glyphmap_stream(fp);