Blender
V4.3
source
blender
blenkernel
BKE_vfontdata.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
13
#include "
DNA_listBase.h
"
14
15
struct
GHash
;
16
struct
PackedFile
;
17
struct
VFont
;
18
19
struct
VFontData
{
20
GHash
*
characters
;
21
char
name[128];
22
float
scale
;
23
/* Calculated from the font. */
24
float
em_height
;
25
float
ascender
;
26
};
27
28
struct
VChar
{
29
ListBase
nurbsbase
;
30
unsigned
int
index
;
31
float
width
;
32
};
33
40
VFontData
*
BKE_vfontdata_from_freetypefont
(
PackedFile
*
pf
);
41
VFontData
*
BKE_vfontdata_copy
(
const
VFontData
*vfont_src,
int
flag
);
42
43
VChar
*
BKE_vfontdata_char_from_freetypefont
(
VFont
*vfont,
unsigned
long
character);
44
VChar
*
BKE_vfontdata_char_copy
(
const
VChar
*vchar_src);
BKE_vfontdata_copy
VFontData * BKE_vfontdata_copy(const VFontData *vfont_src, int flag)
Definition
vfontdata_freetype.cc:66
BKE_vfontdata_char_from_freetypefont
VChar * BKE_vfontdata_char_from_freetypefont(VFont *vfont, unsigned long character)
Definition
vfontdata_freetype.cc:78
BKE_vfontdata_char_copy
VChar * BKE_vfontdata_char_copy(const VChar *vchar_src)
Definition
vfontdata_freetype.cc:115
BKE_vfontdata_from_freetypefont
VFontData * BKE_vfontdata_from_freetypefont(PackedFile *pf)
Definition
vfontdata_freetype.cc:34
DNA_listBase.h
These structs are the foundation for all linked lists in the library system.
pf
#define pf(_x, _i)
Prefetch 64.
Definition
gim_memory.h:48
GHash
Definition
BLI_ghash.c:80
ListBase
Definition
DNA_listBase.h:32
PackedFile
Definition
DNA_packedFile_types.h:13
VChar
Definition
BKE_vfontdata.hh:28
VChar::width
float width
Definition
BKE_vfontdata.hh:31
VChar::nurbsbase
ListBase nurbsbase
Definition
BKE_vfontdata.hh:29
VChar::index
unsigned int index
Definition
BKE_vfontdata.hh:30
VFontData
Definition
BKE_vfontdata.hh:19
VFontData::scale
float scale
Definition
BKE_vfontdata.hh:22
VFontData::ascender
float ascender
Definition
BKE_vfontdata.hh:25
VFontData::characters
GHash * characters
Definition
BKE_vfontdata.hh:20
VFontData::em_height
float em_height
Definition
BKE_vfontdata.hh:24
VFont
Definition
DNA_vfont_types.h:19
flag
uint8_t flag
Definition
wm_window.cc:138
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0