libdraw: refine hidpi font selection
Change-Id: Id1e6a2630713024a1925ad1341bb9c846f82e93e Reviewed-on: https://plan9port-review.googlesource.com/1171 Reviewed-by: Russ Cox <rsc@swtch.com>
This commit is contained in:
parent
213fc4f6fb
commit
79555a9987
4 changed files with 44 additions and 1 deletions
|
|
@ -18,6 +18,7 @@ mkfont(Subfont *subfont, Rune min)
|
|||
font->scale = 1;
|
||||
font->display = subfont->bits->display;
|
||||
font->name = strdup("<synthetic>");
|
||||
font->namespec = strdup("<synthetic>");
|
||||
font->ncache = NFCACHE+NFLOOK;
|
||||
font->nsubf = NFSUBF;
|
||||
font->cache = malloc(font->ncache * sizeof(font->cache[0]));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue