diff options
author | Russ Cox <rsc@swtch.com> | 2015-02-17 00:57:10 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2015-02-17 05:58:37 +0000 |
commit | 77f23268f7073b254e91748d4764768bab6d6f1f (patch) | |
tree | 5b4128cb14c9d587d3f1567c2ae11b0a36cbb55a /include | |
parent | 32dc15fa62d94c88f0b62bfe4d64ba60fe1733a6 (diff) | |
download | plan9port-77f23268f7073b254e91748d4764768bab6d6f1f.tar.gz plan9port-77f23268f7073b254e91748d4764768bab6d6f1f.tar.bz2 plan9port-77f23268f7073b254e91748d4764768bab6d6f1f.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/draw.h | 3 |
1 files changed, 2 insertions, 1 deletions
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*); |