libdraw: add 2*font syntax for scaled fonts

An experiment.

Change-Id: I40660a211b8372701597d80f7e86917e94cccbaa
Reviewed-on: https://plan9port-review.googlesource.com/1161
Reviewed-by: Russ Cox <rsc@swtch.com>
This commit is contained in:
Russ Cox 2015-02-17 00:57:10 -05:00
parent 32dc15fa62
commit 77f23268f7
7 changed files with 77 additions and 5 deletions

View file

@ -15,6 +15,7 @@ mkfont(Subfont *subfont, Rune min)
if(font == 0)
return 0;
memset(font, 0, sizeof(Font));
font->scale = 1;
font->display = subfont->bits->display;
font->name = strdup("<synthetic>");
font->ncache = NFCACHE+NFLOOK;