Blender V2.61 - r43446
|
#include <ft2build.h>
#include "MEM_guardedalloc.h"
#include "BLI_vfontdata.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BKE_font.h"
#include "DNA_vfont_types.h"
#include "DNA_packedFile_types.h"
#include "DNA_curve_types.h"
Go to the source code of this file.
Defines | |
#define | myMIN_ASCII 32 |
#define | myMAX_ASCII 255 |
Functions | |
static void | freetypechar_to_vchar (FT_Face face, FT_ULong charcode, VFontData *vfd) |
static int | 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) |
int | BLI_vfontchar_from_freetypefont (VFont *vfont, unsigned long character) |
Variables | |
static FT_Library | library |
static FT_Error | err |
Definition in file freetypefont.c.
#define myMAX_ASCII 255 |
Definition at line 65 of file freetypefont.c.
#define myMIN_ASCII 32 |
Definition at line 64 of file freetypefont.c.
int BLI_vfontchar_from_freetypefont | ( | VFont * | vfont, |
unsigned long | character | ||
) |
Definition at line 498 of file freetypefont.c.
References err, FALSE, library, objchr_to_ftvfontdata(), and TRUE.
Referenced by BKE_text_to_curve().
VFontData* BLI_vfontdata_from_freetypefont | ( | struct 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 474 of file freetypefont.c.
References check_freetypefont(), err, library, NULL, and objfnt_to_ftvfontdata().
Referenced by load_vfont(), and vfont_get_data().
static int check_freetypefont | ( | PackedFile * | pf | ) | [static] |
Definition at line 414 of file freetypefont.c.
References PackedFile::data, err, library, and PackedFile::size.
Referenced by BLI_vfontdata_from_freetypefont().
static void freetypechar_to_vchar | ( | FT_Face | face, |
FT_ULong | charcode, | ||
VFontData * | vfd | ||
) | [static] |
Definition at line 72 of file freetypefont.c.
References Nurb::bezt, BLI_addtail(), VFontData::characters, CU_2D, CU_BEZIER, CU_NURB_CYCLIC, dist_to_line_v2(), err, Nurb::flag, Nurb::flagu, BezTriple::h1, BezTriple::h2, HD_ALIGN, HD_FREE, HD_VECT, VChar::index, len_squared_v2v2(), MAX2, MEM_callocN(), MEM_freeN(), VChar::nurbsbase, Nurb::pntsu, BezTriple::radius, Nurb::resolu, Nurb::type, BezTriple::vec, and VChar::width.
Referenced by objchr_to_ftvfontdata(), and objfnt_to_ftvfontdata().
static int objchr_to_ftvfontdata | ( | VFont * | vfont, |
FT_ULong | charcode | ||
) | [static] |
Definition at line 281 of file freetypefont.c.
References PackedFile::data, VFont::data, err, FALSE, freetypechar_to_vchar(), library, TmpFont::pf, PackedFile::size, TRUE, and vfont_find_tmpfont().
Referenced by BLI_vfontchar_from_freetypefont().
static VFontData* objfnt_to_ftvfontdata | ( | PackedFile * | pf | ) | [static] |
Definition at line 316 of file freetypefont.c.
References BLI_strncpy(), PackedFile::data, err, freetypechar_to_vchar(), library, MEM_callocN(), VFontData::name, NULL, and PackedFile::size.
Referenced by BLI_vfontdata_from_freetypefont().
FT_Error err [static] |
Definition at line 69 of file freetypefont.c.
Referenced by blender_import(), blender_reload(), blf_font_new(), blf_font_new_from_mem(), blf_font_size(), blf_glyph_add(), BLI_file_gzip(), BLI_vfontchar_from_freetypefont(), BLI_vfontdata_from_freetypefont(), BLO_write_file(), BLO_write_file_mem(), bpy_class_call(), bpy_lib_exit(), bpy_props_enum_itemf(), BPy_Wrap_SetMapItem(), Buffer_ass_slice(), check_freetypefont(), endwrite(), freetypechar_to_vchar(), fsmenu_read_system(), GHOST_SystemCarbon::getClipboard(), GHOST_WindowCarbon::GHOST_WindowCarbon(), GPU_print_framebuffer_error(), GHOST_SystemCarbon::handleKeyEvent(), GHOST_SystemCarbon::handleMenuCommand(), GHOST_SystemCarbon::handleMouseEvent(), GHOST_SystemCarbon::handleTabletEvent(), GHOST_SystemCarbon::handleWindowEvent(), jpeg_error(), myWEventHandlerProc(), NP_Initialize(), NPP_GetValue(), objchr_to_ftvfontdata(), objfnt_to_ftvfontdata(), Private_DestroyStream(), Private_NewStream(), Private_SetWindow(), GHOST_SystemCarbon::putClipboard(), pyrna_func_call(), RNA_function_call_direct_va(), rna_raw_access(), GHOST_SystemCarbon::sAEHandlerOpenDocs(), GHOST_DisplayManagerCarbon::setCurrentDisplaySetting(), CValue::SetError(), GHOST_SystemCarbon::sEventHandlerProc(), sinf_norm_error(), softbody_step(), test_dlerr(), and AUD_OpenALDevice::updateStreams().
FT_Library library [static] |
Definition at line 68 of file freetypefont.c.
Referenced by BLI_vfontchar_from_freetypefont(), BLI_vfontdata_from_freetypefont(), check_freetypefont(), objchr_to_ftvfontdata(), and objfnt_to_ftvfontdata().