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:
authorRichard Antalik <richardantalik@gmail.com>2019-01-14 08:28:07 +0300
committerRichard Antalik <richardantalik@gmail.com>2019-01-14 08:57:09 +0300
commitb3dbe17658fe8ca5115abab642cc0f1680d1f0d5 (patch)
tree9ee5fa8e6f8e4e8a009a9f6ed4bb2af0f91693f8 /source/blender/makesdna/DNA_sequence_types.h
parentc450461e68cdd723825c7bf4a4ebde079ba7b57b (diff)
Add font selection to VSE text strips
Allows users to select a font for text strips in the video sequence editor. Related: 3610f1fc43d0 Sequencer: refactor clipboard copy to no longer increase user count. Reviewed by: Brecht Differential Revision: https://developer.blender.org/D3621
Diffstat (limited to 'source/blender/makesdna/DNA_sequence_types.h')
-rw-r--r--source/blender/makesdna/DNA_sequence_types.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_sequence_types.h b/source/blender/makesdna/DNA_sequence_types.h
index 10cd4697283..186e6955342 100644
--- a/source/blender/makesdna/DNA_sequence_types.h
+++ b/source/blender/makesdna/DNA_sequence_types.h
@@ -45,6 +45,7 @@
#include "DNA_color_types.h"
#include "DNA_listBase.h"
#include "DNA_vec_types.h"
+#include "DNA_vfont_types.h"
struct Ipo;
struct Scene;
@@ -320,13 +321,15 @@ typedef struct GaussianBlurVars {
typedef struct TextVars {
char text[512];
+ VFont *text_font;
+ int text_blf_id;
int text_size;
float color[4], shadow_color[4];
float loc[2];
float wrap_width;
char flag;
char align, align_y;
- char pad[5];
+ char pad[1];
} TextVars;
/* TextVars.flag */
@@ -348,6 +351,8 @@ enum {
SEQ_TEXT_ALIGN_Y_BOTTOM = 2,
};
+#define SEQ_FONT_NOT_LOADED -2
+
typedef struct ColorMixVars {
/** Value from SEQ_TYPE_XXX enumeration. */
int blend_effect;