Blender V4.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
13#include "DNA_listBase.h"
14
15struct GHash;
16struct PackedFile;
17struct VFont;
18
19struct VFontData {
21 char name[128];
22 float scale;
23 /* Calculated from the font. */
24 float em_height;
25 float ascender;
26};
27
28struct VChar {
30 unsigned int index;
31 float width;
32};
33
41VFontData *BKE_vfontdata_copy(const VFontData *vfont_src, int flag);
42
43VChar *BKE_vfontdata_char_from_freetypefont(VFont *vfont, unsigned long character);
44VChar *BKE_vfontdata_char_copy(const VChar *vchar_src);
VFontData * BKE_vfontdata_copy(const VFontData *vfont_src, int flag)
VChar * BKE_vfontdata_char_from_freetypefont(VFont *vfont, unsigned long character)
VChar * BKE_vfontdata_char_copy(const VChar *vchar_src)
VFontData * BKE_vfontdata_from_freetypefont(PackedFile *pf)
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
ListBase nurbsbase
unsigned int index
GHash * characters
float em_height
uint8_t flag
Definition wm_window.cc:138