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:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-03-26 15:38:47 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-03-26 15:49:23 +0300
commit64e5f83133742c622e9c44b80f86d744a0dab05d (patch)
tree5d8848008f01c0aa788e3965f4ada84b6ce0dc12 /source/blender/blenfont/intern/blf.c
parent0476f8277ad58f99dd1ff213496c870d9c29f5d5 (diff)
BLF: Don't use user preferences
BLF is a low level module, which might (and is) used without Blender. Thanks Campbell for review!
Diffstat (limited to 'source/blender/blenfont/intern/blf.c')
-rw-r--r--source/blender/blenfont/intern/blf.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/blenfont/intern/blf.c b/source/blender/blenfont/intern/blf.c
index 5bd62980b6d..b45e52f29fd 100644
--- a/source/blender/blenfont/intern/blf.c
+++ b/source/blender/blenfont/intern/blf.c
@@ -84,6 +84,7 @@ static FontBLF *global_font[BLF_MAX_FONT] = {NULL};
static int global_font_default = -1;
static int global_font_points = 11;
static int global_font_dpi = 72;
+static bool global_use_antialias = true;
/* XXX, should these be made into global_font_'s too? */
int blf_mono_font = -1;
@@ -175,6 +176,16 @@ void BLF_default_set(int fontid)
}
}
+void BLF_antialias_set(bool enabled)
+{
+ global_use_antialias = enabled;
+}
+
+bool BLF_antialias_get(void)
+{
+ return global_use_antialias;
+}
+
int BLF_load(const char *name)
{
FontBLF *font;