Blender  V3.3
BKE_vfontdata.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 
4 #pragma once
5 
12 #include "DNA_listBase.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 struct PackedFile;
19 struct VFont;
20 
21 typedef struct VFontData {
22  struct GHash *characters;
23  char name[128];
24  float scale;
25  /* Calculated from the font. */
26  float em_height;
27  float ascender;
29 
30 typedef struct VChar {
32  unsigned int index;
33  float width;
35 
43 VFontData *BKE_vfontdata_copy(const VFontData *vfont_src, int flag);
44 
45 VChar *BKE_vfontdata_char_from_freetypefont(struct VFont *vfont, unsigned long character);
46 VChar *BKE_vfontdata_char_copy(const VChar *vchar_src);
47 
48 #ifdef __cplusplus
49 }
50 #endif
VFontData * BKE_vfontdata_from_freetypefont(struct PackedFile *pf)
struct VFontData VFontData
VChar * BKE_vfontdata_char_copy(const VChar *vchar_src)
VChar * BKE_vfontdata_char_from_freetypefont(struct VFont *vfont, unsigned long character)
VFontData * BKE_vfontdata_copy(const VFontData *vfont_src, int flag)
struct VChar VChar
These structs are the foundation for all linked lists in the library system.
#define pf(_x, _i)
Prefetch 64.
Definition: gim_memory.h:48
float width
Definition: BKE_vfontdata.h:33
ListBase nurbsbase
Definition: BKE_vfontdata.h:31
unsigned int index
Definition: BKE_vfontdata.h:32
float scale
Definition: BKE_vfontdata.h:24
float ascender
Definition: BKE_vfontdata.h:27
struct GHash * characters
Definition: BKE_vfontdata.h:22
char name[128]
Definition: BKE_vfontdata.h:23
float em_height
Definition: BKE_vfontdata.h:26