aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-12 23:25:37 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-12 23:25:37 +0800
commit3b2a801f86f4ce7cdca8681b619fe3ff88307ef2 (patch)
tree1097dea2b40a370df47e1e4a429da98e67cfaff3 /include
parent08c898f79acd024718b071f0d08eb32f3f093cbd (diff)
downloadSMELT-3b2a801f86f4ce7cdca8681b619fe3ff88307ef2.tar.xz
Allow drawing scaled truetype fonts.
Diffstat (limited to 'include')
-rw-r--r--include/smttfont.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/smttfont.hpp b/include/smttfont.hpp
index 0d90179..608907c 100644
--- a/include/smttfont.hpp
+++ b/include/smttfont.hpp
@@ -33,7 +33,7 @@ public:
float h(){return (float)_h;}
void free();
bool setChar(wchar_t c,FT_Face ttface);
- void render(float x,float y,float z,DWORD col);
+ void render(float x,float y,float z,DWORD col,float scalex,float scaley);
};
class smTTFont
@@ -52,7 +52,7 @@ public:
float getWidth(){return w;}
float getHeight(){return h;}
void updateString(const wchar_t *format,...);
- void render(float x,float y,float z,DWORD col,int align);
+ void render(float x,float y,float z,DWORD col,int align,float scalex=1,float scaley=1);
DWORD getCacheSize();
void clearCache();
};