Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2003-10-23 22:25:08 +0400
committerTon Roosendaal <ton@blender.org>2003-10-23 22:25:08 +0400
commit9efe4b7f9aa4c0da1122ad1d8ef414f479fef023 (patch)
treef9713eeaa7dfc5936478084c183cfdd58dc330f4 /source/blender/ftfont/intern/FTF_Api.cpp
parent0c177df76644f3fad5881e9600da465cd1cce384 (diff)
- AntiAlias fonts (FTF) now are used in three sizes, like the normal
fonts, and switched based at the window zoom. Might be something to tweak when to switch exactly, but it works cool!
Diffstat (limited to 'source/blender/ftfont/intern/FTF_Api.cpp')
-rw-r--r--source/blender/ftfont/intern/FTF_Api.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/ftfont/intern/FTF_Api.cpp b/source/blender/ftfont/intern/FTF_Api.cpp
index 42fac0c4061..cf9171d6ba5 100644
--- a/source/blender/ftfont/intern/FTF_Api.cpp
+++ b/source/blender/ftfont/intern/FTF_Api.cpp
@@ -128,6 +128,13 @@ FTF_EXPORT int FTF_SetFont(char* str, int size)
return ttfont.SetFont(str, size);
}
+/* added bt ton */
+
+FTF_EXPORT void FTF_SetFontSize(char size)
+{
+ ttfont.SetFontSize( size);
+}
+
/**
* added by phase
*