Blender  V2.93
DNA_vfont_types.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17  * All rights reserved.
18  */
19 
27 #pragma once
28 
29 #include "DNA_ID.h"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 struct PackedFile;
36 struct VFontData;
37 
38 typedef struct VFont {
39  ID id;
40 
42  char filepath[1024];
43 
44  struct VFontData *data;
46 
47  /* runtime only, holds memory for freetype to read from
48  * TODO, replace this with blf_font_new() style loading */
51 
52 /* *************** FONT ****************** */
53 #define FO_EDIT 0
54 #define FO_CURS 1
55 #define FO_CURSUP 2
56 #define FO_CURSDOWN 3
57 #define FO_DUPLI 4
58 #define FO_PAGEUP 8
59 #define FO_PAGEDOWN 9
60 #define FO_SELCHANGE 10
61 
62 /* BKE_vfont_to_curve will move the cursor in these cases */
63 #define FO_CURS_IS_MOTION(mode) (ELEM(mode, FO_CURSUP, FO_CURSDOWN, FO_PAGEUP, FO_PAGEDOWN))
64 
65 #define FO_BUILTIN_NAME "<builtin>"
66 
67 #ifdef __cplusplus
68 }
69 #endif
ID and Library types, which are fundamental for sdna.
struct VFont VFont
Definition: DNA_ID.h:273
struct VFontData * data
char filepath[1024]
struct PackedFile * temp_pf
struct PackedFile * packedfile