From 77f23268f7073b254e91748d4764768bab6d6f1f Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 17 Feb 2015 00:57:10 -0500 Subject: 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 --- include/draw.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/draw.h') diff --git a/include/draw.h b/include/draw.h index d5f2ca69..ff760dd7 100644 --- a/include/draw.h +++ b/include/draw.h @@ -314,6 +314,7 @@ struct Font int maxdepth; /* maximum depth of all loaded subfonts */ int ncache; /* size of cache */ int nsubf; /* size of subfont list */ + int scale; /* pixel scaling to apply */ Cacheinfo *cache; Cachesubf *subf; Cachefont **sub; /* as read from file */ @@ -482,7 +483,7 @@ extern int runestringnwidth(Font*, Rune*, int); extern Point strsubfontwidth(Subfont*, char*); extern int loadchar(Font*, Rune, Cacheinfo*, int, int, char**); extern char* subfontname(char*, char*, int); -extern Subfont* _getsubfont(Display*, char*); +extern Subfont* _getsubfont(Display*, Font*, char*); extern Subfont* getdefont(Display*); extern void lockdisplay(Display*); extern void unlockdisplay(Display*); -- cgit v1.2.3