|
Blender V4.3
|
A structure to represent vector fonts, and to load them from PostScript fonts. More...
#include "DNA_listBase.h"Go to the source code of this file.
Classes | |
| struct | VFontData |
| struct | VChar |
Functions | |
| VFontData * | BKE_vfontdata_from_freetypefont (PackedFile *pf) |
| 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) |
A structure to represent vector fonts, and to load them from PostScript fonts.
Definition in file BKE_vfontdata.hh.
Definition at line 115 of file vfontdata_freetype.cc.
References BKE_nurbList_duplicate(), BLI_listbase_clear(), MEM_dupallocN, and VChar::nurbsbase.
Referenced by vfontdata_copy_characters_value_cb().
Definition at line 78 of file vfontdata_freetype.cc.
References BKE_vfont_is_builtin(), BLF_character_to_curves(), BLF_load_mem(), BLF_size(), BLF_unload_id(), BLI_ghash_insert(), builtin_font_data, builtin_font_size, VFontData::characters, PackedFile::data, VFont::data, VChar::index, MEM_callocN, VFontData::name, VChar::nurbsbase, POINTER_FROM_UINT, VFontData::scale, PackedFile::size, VFont::temp_pf, and VChar::width.
Referenced by vfont_to_curve().
Definition at line 66 of file vfontdata_freetype.cc.
References BLI_ghash_copy(), VFontData::characters, MEM_dupallocN, and vfontdata_copy_characters_value_cb().
Referenced by vfont_copy_data().
| VFontData * BKE_vfontdata_from_freetypefont | ( | PackedFile * | pf | ) |
Construct a new VFontData structure from free-type font data in pf.
| pf | The font data. |
| A | new VFontData structure, or NULL if unable to load. |
Definition at line 34 of file vfontdata_freetype.cc.
References ARRAY_SIZE, VFontData::ascender, BLF_display_name_from_id(), BLF_get_vfont_metrics(), BLF_load_mem(), BLF_unload_id(), BLI_ghash_int_new_ex(), BLI_str_utf8_invalid_strip(), VFontData::characters, VFontData::em_height, MEM_callocN, MEM_freeN(), VFontData::name, pf, VFontData::scale, and STRNCPY.
Referenced by BKE_vfont_load(), vfont_get_data(), and vfont_init_data().