libdrawtext

diff src/font.c @ 43:43444ec90632

drx_open_font_glyphmap now mimics dtx_open_font's behaviour in setting dtx_font automatically if it's null.
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 08 Jun 2014 06:40:30 +0300
parents f067608d8a7c
children 670d0affc08f
line diff
     1.1 --- a/src/font.c	Sat Jun 07 13:37:54 2014 +0300
     1.2 +++ b/src/font.c	Sun Jun 08 06:40:30 2014 +0300
     1.3 @@ -120,6 +120,10 @@
     1.4  		}
     1.5  
     1.6  		dtx_add_glyphmap(fnt, gmap);
     1.7 +
     1.8 +		if(!dtx_font) {
     1.9 +			dtx_use_font(fnt, gmap->ptsize);
    1.10 +		}
    1.11  	}
    1.12  	return fnt;
    1.13  }