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:
authorCampbell Barton <ideasman42@gmail.com>2018-07-31 09:24:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-31 09:24:12 +0300
commit65344a6d1980082383993eaebf94b5647834c55c (patch)
treee97e12f9f04516e9499267966dbd09f98160f516 /source/blender/makesrna/intern/rna_userdef.c
parent52c23021c4367511969c5868ea04e61fb49e94d3 (diff)
parent18888b7b0c3556d3a2177fe7693fda02bf2a8cb5 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/makesrna/intern/rna_userdef.c')
-rw-r--r--source/blender/makesrna/intern/rna_userdef.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c
index 0823e8ddd9a..5159dee2f10 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -410,6 +410,7 @@ static void rna_userdef_temp_update(Main *UNUSED(bmain), Scene *UNUSED(scene), P
static void rna_userdef_text_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *UNUSED(ptr))
{
BLF_cache_clear();
+ UI_reinit_font();
WM_main_add_notifier(NC_WINDOW, NULL);
}
@@ -4353,6 +4354,11 @@ static void rna_def_userdef_system(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Text Anti-aliasing", "Draw user interface text anti-aliased");
RNA_def_property_update(prop, 0, "rna_userdef_text_antialiasing_update");
+ prop = RNA_def_property(srna, "use_text_hinting", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_boolean_negative_sdna(prop, NULL, "text_render", USER_TEXT_DISABLE_HINTING);
+ RNA_def_property_ui_text(prop, "Text Hinting", "Draw user interface text with hinting");
+ RNA_def_property_update(prop, 0, "rna_userdef_text_update");
+
prop = RNA_def_property(srna, "select_method", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_sdna(prop, NULL, "gpu_select_method");
RNA_def_property_enum_items(prop, gpu_select_method_items);