libdrawtext

changeset 66:1c2c00d432da

made the open_font function automatically use the first font it loads
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 26 Aug 2012 04:43:09 +0300
parents 16879398fda7
children bb21975c6c3a 982f2464b8a7
files src/font.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/src/font.c	Sat Aug 25 18:27:54 2012 +0300
     1.2 +++ b/src/font.c	Sun Aug 26 04:43:09 2012 +0300
     1.3 @@ -88,6 +88,10 @@
     1.4  	/* pre-create the extended ASCII range glyphmap */
     1.5  	if(sz) {
     1.6  		dtx_prepare_range(fnt, sz, 0, 256);
     1.7 +
     1.8 +		if(!dtx_font) {
     1.9 +			dtx_use_font(fnt, sz);
    1.10 +		}
    1.11  	}
    1.12  
    1.13  	return fnt;