Blender V5.3
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
12
13#include "DNA_listBase.h"
14
15#include "BLI_map.hh"
16
17#include "DNA_vec_types.h"
18
19namespace blender {
20
21struct Nurb;
22struct PackedFile;
23struct VFont;
24
40 float scale;
41 /* Calculated from the font. */
42 float em_ratio;
44};
45
59
60struct VChar {
61 ListBaseT<Nurb> nurbsbase;
62 float width;
65};
66
71
79VFontData *BKE_vfontdata_copy(const VFontData *vfont_src, int flag);
80
81VChar *BKE_vfontdata_char_from_freetypefont(VFont *vfont, unsigned int character);
82VChar *BKE_vfontdata_char_copy(const VChar *vchar_src);
83
84} // namespace blender
These structs are the foundation for all linked lists in the library system.
#define pf(_x, _i)
Prefetch 64.
Definition gim_memory.h:48
BMesh Iterators.
VChar * BKE_vfontdata_char_copy(const VChar *vchar_src)
VChar * BKE_vfontdata_char_from_freetypefont(VFont *vfont, unsigned int character)
VFontData * BKE_vfontdata_from_freetypefont(PackedFile *pf)
VFontData * BKE_vfontdata_copy(const VFontData *vfont_src, int flag)
void BKE_vfontdata_metrics_get_defaults(VFontData_Metrics *metrics)
ListBaseT< Nurb > nurbsbase
VFontData_Metrics metrics
Map< uint, struct VChar * > * characters