Blender
V3.3
|
#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_string_utf8.h"
#include "BLI_utildefines.h"
#include "BKE_curve.h"
#include "BKE_vfontdata.h"
#include "DNA_curve_types.h"
#include "DNA_packedFile_types.h"
#include "DNA_vfont_types.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 bool | check_freetypefont (PackedFile *pf) |
VFontData * | BKE_vfontdata_from_freetypefont (PackedFile *pf) |
static void * | vfontdata_copy_characters_value_cb (const void *src) |
VFontData * | BKE_vfontdata_copy (const VFontData *vfont_src, const int UNUSED(flag)) |
VChar * | BKE_vfontdata_char_from_freetypefont (VFont *vfont, unsigned long character) |
VChar * | BKE_vfontdata_char_copy (const VChar *vchar_src) |
Variables | |
static FT_Library | library |
static FT_Error | err |
This code parses the Freetype font outline data to chains of Blender's bezier-triples. Additional information can be found at the bottom of this file.
Code that uses exotic character maps is present but commented out.
Definition in file vfontdata_freetype.c.
Definition at line 445 of file vfontdata_freetype.c.
References BKE_nurbList_duplicate(), BLI_listbase_clear(), MEM_dupallocN, and VChar::nurbsbase.
Referenced by vfontdata_copy_characters_value_cb().
Definition at line 421 of file vfontdata_freetype.c.
References err, library, NULL, and objchr_to_ftvfontdata().
Referenced by vfont_to_curve().
Definition at line 409 of file vfontdata_freetype.c.
References BLI_ghash_copy(), VFontData::characters, MEM_dupallocN, NULL, and vfontdata_copy_characters_value_cb().
VFontData* BKE_vfontdata_from_freetypefont | ( | struct 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 383 of file vfontdata_freetype.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 358 of file vfontdata_freetype.c.
References err, library, NULL, and pf.
Referenced by BKE_vfontdata_from_freetypefont().
Definition at line 41 of file vfontdata_freetype.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, glyph, 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 243 of file vfontdata_freetype.c.
References PackedFile::data, VFont::data, err, freetypechar_to_vchar(), library, NULL, PackedFile::size, and VFont::temp_pf.
Referenced by BKE_vfontdata_char_from_freetypefont().
|
static |
Definition at line 269 of file vfontdata_freetype.c.
References VFontData::ascender, BLI_ghash_int_new_ex(), BLI_snprintf(), BLI_str_utf8_invalid_strip(), VFontData::characters, VFontData::em_height, err, float(), freetypechar_to_vchar(), library, MEM_callocN, MEM_freeN, VFontData::name, NULL, pf, and VFontData::scale.
Referenced by BKE_vfontdata_from_freetypefont().
Definition at line 404 of file vfontdata_freetype.c.
References BKE_vfontdata_char_copy(), and src.
Referenced by BKE_vfontdata_copy().
|
static |
Definition at line 39 of file vfontdata_freetype.c.
Referenced by GHOST_WindowX11::beginFullScreen(), BKE_vfontdata_char_from_freetypefont(), BKE_vfontdata_from_freetypefont(), blendthumb_create_thumb_from_file(), blf_font_new(), blf_font_new_from_mem(), blf_glyph_render_bitmap(), GHOST_SharedOpenGLResource::blit(), BLO_write_file(), BLO_write_file_mem(), bmesh_elem_check(), BMO_error_get(), BMO_error_get_at_level(), BMO_error_occurred_at_level(), BMO_error_pop(), BMO_error_raise(), bpy_class_call(), bpy_prop_enum_itemf_fn(), Buffer_ass_slice(), blender::gpu::GLFrameBuffer::check(), check_freetypefont(), conv_utf_16_to_8(), conv_utf_8_to_16(), extract_png_from_blend_file(), freetypechar_to_vchar(), fsmenu_read_system(), GEO_uv_parametrizer_average(), btCpuFeatureUtility::getCpuFeatures(), btClock::getTimeNanoseconds(), image_render_print_save_message(), jpeg_error(), blender::gpu::GPUSource::material_functions_parse(), 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(), RNA_function_call_direct_va(), rna_raw_access(), GHOST_WindowCocoa::setWindowCursorGrab(), softbody_apply_forces(), and softbody_step().
|
static |
Definition at line 38 of file vfontdata_freetype.c.
Referenced by asset_library_refresh_exec(), asset_library_refresh_poll(), BKE_asset_library_get_catalog_service(), BKE_asset_library_get_catalog_tree(), BKE_blendfile_library_relocate(), BKE_lib_override_library_main_resync(), 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_path_set(), BKE_preferences_asset_library_remove(), BKE_vfontdata_char_from_freetypefont(), BKE_vfontdata_from_freetypefont(), blendfile_or_libraries_versions_atleast(), check_freetypefont(), ED_asset_catalog_add(), ED_asset_catalog_move(), ED_asset_catalog_remove(), ED_asset_catalog_rename(), ED_asset_catalogs_save_from_main_path(), ED_asset_library_reference_from_enum_value(), ED_asset_library_reference_to_enum_value(), file_read_reports_finalize(), fileselect_refresh_asset_params(), blender::ed::outliner::TreeElementIDLibrary::getWarning(), lib_override_libraries_index_define(), lib_override_library_main_resync_on_library_indirect_level(), library_free_data(), main_namemap_populate(), objchr_to_ftvfontdata(), objfnt_to_ftvfontdata(), preferences_asset_library_remove_exec(), and blender::ed::outliner::TreeElementIDLibrary::TreeElementIDLibrary().