|
Blender
V2.93
|
#include <ft2build.h>#include "MEM_guardedalloc.h"#include "BLI_ghash.h"#include "BLI_listbase.h"#include "BLI_math.h"#include "BLI_string.h"#include "BLI_utildefines.h"#include "BLI_vfontdata.h"#include "DNA_curve_types.h"#include "DNA_packedFile_types.h"#include "DNA_vfont_types.h"#include "../../blenkernel/BKE_curve.h"Go to the source code of this file.
Functions | |
| static VChar * | freetypechar_to_vchar (FT_Face face, FT_ULong charcode, VFontData *vfd) |
| static VChar * | objchr_to_ftvfontdata (VFont *vfont, FT_ULong charcode) |
| static VFontData * | objfnt_to_ftvfontdata (PackedFile *pf) |
| static int | check_freetypefont (PackedFile *pf) |
| VFontData * | BLI_vfontdata_from_freetypefont (PackedFile *pf) |
| static void * | vfontdata_copy_characters_value_cb (const void *src) |
| VFontData * | BLI_vfontdata_copy (const VFontData *vfont_src, const int UNUSED(flag)) |
| VChar * | BLI_vfontchar_from_freetypefont (VFont *vfont, unsigned long character) |
| VChar * | BLI_vfontchar_copy (const VChar *vchar_src, const int UNUSED(flag)) |
Variables | |
| static FT_Library | library |
| static FT_Error | err |
Definition at line 490 of file freetypefont.c.
References BKE_nurbList_duplicate(), BLI_listbase_clear(), MEM_dupallocN, and VChar::nurbsbase.
Referenced by vfontdata_copy_characters_value_cb().
Definition at line 461 of file freetypefont.c.
References err, library, NULL, and objchr_to_ftvfontdata().
Referenced by vfont_to_curve().
Definition at line 449 of file freetypefont.c.
References BLI_ghash_copy(), VFontData::characters, MEM_dupallocN, NULL, and vfontdata_copy_characters_value_cb().
| VFontData* BLI_vfontdata_from_freetypefont | ( | PackedFile * | pf | ) |
Construct a new VFontData structure from Freetype font data in a PackedFile.
| pf | The font data. |
| A | new VFontData structure, or NULL if unable to load. |
Definition at line 420 of file freetypefont.c.
References check_freetypefont(), err, library, NULL, objfnt_to_ftvfontdata(), and pf.
Referenced by BKE_vfont_load(), vfont_get_data(), and vfont_init_data().
|
static |
Definition at line 379 of file freetypefont.c.
References err, library, and pf.
Referenced by BLI_vfontdata_from_freetypefont().
Definition at line 54 of file freetypefont.c.
References Nurb::bezt, BLI_addtail(), BLI_ghash_insert(), VFontData::characters, CU_BEZIER, CU_NURB_CYCLIC, dist_squared_to_line_v2(), eps, err, Nurb::flagu, BezTriple::h1, BezTriple::h2, HD_ALIGN, HD_FREE, HD_VECT, VChar::index, l, len_squared_v2v2(), max_ff(), MEM_callocN, MEM_freeN, NULL, VChar::nurbsbase, Nurb::pntsu, POINTER_FROM_UINT, BezTriple::radius, Nurb::resolu, VFontData::scale, Nurb::type, BezTriple::vec, and VChar::width.
Referenced by objchr_to_ftvfontdata(), and objfnt_to_ftvfontdata().
Definition at line 256 of file freetypefont.c.
References PackedFile::data, VFont::data, err, freetypechar_to_vchar(), library, NULL, PackedFile::size, and VFont::temp_pf.
Referenced by BLI_vfontchar_from_freetypefont().
|
static |
Definition at line 282 of file freetypefont.c.
References VFontData::ascender, BLI_ghash_int_new_ex(), BLI_strncpy(), VFontData::characters, VFontData::em_height, err, float(), freetypechar_to_vchar(), library, MEM_callocN, VFontData::name, NULL, pf, and VFontData::scale.
Referenced by BLI_vfontdata_from_freetypefont().
|
static |
Definition at line 444 of file freetypefont.c.
References BLI_vfontchar_copy().
Referenced by BLI_vfontdata_copy().
|
static |
Definition at line 52 of file freetypefont.c.
Referenced by GHOST_WindowX11::beginFullScreen(), blf_font_new(), blf_font_new_from_mem(), blf_font_size(), blf_glyph_add(), BLI_vfontchar_from_freetypefont(), BLI_vfontdata_from_freetypefont(), GHOST_SharedOpenGLResource::blit(), BLO_write_file(), BLO_write_file_mem(), bmesh_elem_check(), BMO_error_get(), BMO_error_pop(), BMO_error_raise(), bpy_class_call(), bpy_lib_exit(), bpy_prop_enum_itemf_fn(), Buffer_ass_slice(), blender::gpu::GLFrameBuffer::check(), check_freetypefont(), conv_utf_16_to_8(), conv_utf_8_to_16(), fd_read_gzip_from_memory(), freetypechar_to_vchar(), fsmenu_read_system(), btCpuFeatureUtility::getCpuFeatures(), CBlendThumb::GetThumbnail(), btClock::getTimeNanoseconds(), jpeg_error(), Freestyle::ViewMapIO::load(), mywrite_end(), objchr_to_ftvfontdata(), objfnt_to_ftvfontdata(), OCIO_reportError(), parse_syntax_error(), pygpu_buffer_ass_slice(), pyrna_func_call(), pyrna_py_to_prop(), pyrna_struct_type_extend_capi(), render_print_save_message(), RNA_function_call_direct_va(), rna_raw_access(), Freestyle::ViewMapIO::save(), GHOST_WindowCocoa::setWindowCursorGrab(), softbody_apply_forces(), and softbody_step().
|
static |
Definition at line 51 of file freetypefont.c.
Referenced by BKE_preferences_asset_library_add(), BKE_preferences_asset_library_default_add(), BKE_preferences_asset_library_get_index(), BKE_preferences_asset_library_name_set(), BKE_preferences_asset_library_remove(), BLI_vfontchar_from_freetypefont(), BLI_vfontdata_from_freetypefont(), check_freetypefont(), fileselect_refresh_asset_params(), gpu_material_library_generate_code(), gpu_material_use_library_with_dependencies(), gpu_parse_material_library(), lib_relocate_do(), library_free_data(), objchr_to_ftvfontdata(), objfnt_to_ftvfontdata(), preferences_asset_library_remove_exec(), and blender::ed::outliner::TreeElementIDLibrary::TreeElementIDLibrary().