Blender  V3.3
DNA_vfont_types.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2001-2002 NaN Holding BV. All rights reserved. */
3 
11 #pragma once
12 
13 #include "DNA_ID.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 struct PackedFile;
20 struct VFontData;
21 
22 typedef struct VFont {
23  ID id;
24 
26  char filepath[1024];
27 
28  struct VFontData *data;
30 
31  /* runtime only, holds memory for freetype to read from
32  * TODO: replace this with #blf_font_new() style loading. */
35 
36 /* *************** FONT ****************** */
37 #define FO_EDIT 0
38 #define FO_CURS 1
39 #define FO_CURSUP 2
40 #define FO_CURSDOWN 3
41 #define FO_DUPLI 4
42 #define FO_PAGEUP 8
43 #define FO_PAGEDOWN 9
44 #define FO_SELCHANGE 10
45 
46 /* BKE_vfont_to_curve will move the cursor in these cases */
47 #define FO_CURS_IS_MOTION(mode) (ELEM(mode, FO_CURSUP, FO_CURSDOWN, FO_PAGEUP, FO_PAGEDOWN))
48 
49 #define FO_BUILTIN_NAME "<builtin>"
50 
51 #ifdef __cplusplus
52 }
53 #endif
ID and Library types, which are fundamental for sdna.
struct VFont VFont
Definition: DNA_ID.h:368
struct VFontData * data
char filepath[1024]
struct PackedFile * temp_pf
struct PackedFile * packedfile