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:
authorPeter Fog <tintwotin>2021-03-20 02:29:22 +0300
committerRichard Antalik <richardantalik@gmail.com>2021-03-20 03:40:53 +0300
commit913b71bb8be9b40da9c0f0cd21016c784a56dc18 (patch)
treed68003f0adab6be543c442d1ca69df636767e2b4 /source/blender/sequencer/intern/effects.c
parent7bf977e9f0cf57add1543f83d357a19f0848b2b5 (diff)
VSE: Add bold and italic option for text strip
Bold and italic fonts can be switched quickly by presing corresponding button. Reviewed By: ISS Differential Revision: https://developer.blender.org/D10542
Diffstat (limited to 'source/blender/sequencer/intern/effects.c')
-rw-r--r--source/blender/sequencer/intern/effects.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/sequencer/intern/effects.c b/source/blender/sequencer/intern/effects.c
index fc8a5c62744..017c2ec8ec5 100644
--- a/source/blender/sequencer/intern/effects.c
+++ b/source/blender/sequencer/intern/effects.c
@@ -3938,6 +3938,14 @@ static ImBuf *do_text_effect(const SeqRenderData *context,
proxy_size_comp = SEQ_rendersize_to_scale_factor(context->preview_render_size);
}
+ BLF_disable(font, BLF_ITALIC | BLF_BOLD);
+ if (data->flag & SEQ_TEXT_BOLD) {
+ BLF_enable(font, BLF_BOLD);
+ }
+ if (data->flag & SEQ_TEXT_ITALIC) {
+ BLF_enable(font, BLF_ITALIC);
+ }
+
/* set before return */
BLF_size(font, proxy_size_comp * data->text_size, 72);