Blender V4.3
BKE_vfontdata.hh File Reference

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

VFontDataBKE_vfontdata_from_freetypefont (PackedFile *pf)
 
VFontDataBKE_vfontdata_copy (const VFontData *vfont_src, int flag)
 
VCharBKE_vfontdata_char_from_freetypefont (VFont *vfont, unsigned long character)
 
VCharBKE_vfontdata_char_copy (const VChar *vchar_src)
 

Detailed Description

A structure to represent vector fonts, and to load them from PostScript fonts.

Definition in file BKE_vfontdata.hh.

Function Documentation

◆ BKE_vfontdata_char_copy()

VChar * BKE_vfontdata_char_copy ( const VChar * vchar_src)

◆ BKE_vfontdata_char_from_freetypefont()

◆ BKE_vfontdata_copy()

VFontData * BKE_vfontdata_copy ( const VFontData * vfont_src,
int flag )

◆ BKE_vfontdata_from_freetypefont()

VFontData * BKE_vfontdata_from_freetypefont ( PackedFile * pf)

Construct a new VFontData structure from free-type font data in pf.

Parameters
pfThe font data.
Return values
Anew 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().