Blender V5.0
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
15struct GHash;
16struct PackedFile;
17struct VFont;
18
34 float scale;
35 /* Calculated from the font. */
36 float em_ratio;
38};
39
53
54struct VChar {
56 float width;
57};
58
63
71VFontData *BKE_vfontdata_copy(const VFontData *vfont_src, int flag);
72
73VChar *BKE_vfontdata_char_from_freetypefont(VFont *vfont, unsigned int character);
74VChar *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 int character)
void BKE_vfontdata_metrics_get_defaults(VFontData_Metrics *metrics)
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
GHash * characters
VFontData_Metrics metrics
char name[128]
uint8_t flag
Definition wm_window.cc:145