libdrawtext

changeset 95:4224452b9c86

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 de6f37146601
children 6089fcfbd5ea
files src/font.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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  }