Blender V5.3
BKE_vfont.hh File Reference
#include "DNA_listBase.h"
#include "BLI_math_vector_types.hh"
#include "BLI_sys_types.hh"

Go to the source code of this file.

Classes

struct  blender::CharTrans
struct  blender::EditFontSelBox
struct  blender::EditFont

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define FO_CURS_IS_MOTION(mode)

Enumerations

enum  blender::eEditFontMode {
  blender::FO_EDIT = 0 , blender::FO_CURS = 1 , blender::FO_CURSUP = 2 , blender::FO_CURSDOWN = 3 ,
  blender::FO_DUPLI = 4 , blender::FO_PAGEUP = 8 , blender::FO_PAGEDOWN = 9 , blender::FO_LINE_BEGIN = 10 ,
  blender::FO_LINE_END = 11 , blender::FO_SELCHANGE = 12
}

Functions

VFont API

See vfont.c.

bool blender::BKE_vfont_is_builtin (const VFont *vfont)
void blender::BKE_vfont_builtin_register (const void *mem, int size)
VFont * blender::BKE_vfont_builtin_ensure ()
void blender::BKE_vfont_packfile_ensure (Main *bmain, VFont *vfont, ReportList *reports)
void blender::BKE_vfont_data_ensure (VFont *vfont)
void blender::BKE_vfont_data_free (VFont *vfont)
VFont * blender::BKE_vfont_load (Main *bmain, const char *filepath)
VFont * blender::BKE_vfont_load_exists_ex (Main *bmain, const char *filepath, bool *r_exists)
VFont * blender::BKE_vfont_load_exists (Main *bmain, const char *filepath)
int blender::BKE_vfont_select_get (const Curve *cu, int *r_start, int *r_end)
void blender::BKE_vfont_select_clamp (Curve *cu)
void blender::BKE_vfont_clipboard_free ()
void blender::BKE_vfont_clipboard_set (const char32_t *text_buf, const CharInfo *info_buf, size_t len)
void blender::BKE_vfont_clipboard_get (char32_t **r_text_buf, CharInfo **r_info_buf, size_t *r_len_utf8, size_t *r_len_utf32)
VFont Curve & Text Layout API

See vfont_curve.c.

int blender::BKE_vfont_cursor_to_text_index (Object *ob, const float2 &cursor_location)
bool blender::BKE_vfont_to_curve (Object *ob, eEditFontMode mode)
void blender::BKE_vfont_char_build (const Curve &cu, ListBaseT< Nurb > *nubase, unsigned int charcode, const CharInfo *info, bool is_smallcaps, const float2 &offset, float rotate, int charidx, float fsize)
bool blender::BKE_vfont_to_curve_ex (Object *ob, const Curve &cu, eEditFontMode mode, ListBaseT< Nurb > *r_nubase, const char32_t **r_text, int *r_text_len, bool *r_text_free, CharTrans **r_chartransdata, float *r_font_size_eval)
bool blender::BKE_vfont_to_curve_nubase (Object *ob, eEditFontMode mode, ListBaseT< Nurb > *r_nubase)

Macro Definition Documentation

◆ FO_CURS_IS_MOTION

#define FO_CURS_IS_MOTION ( mode)
Value:
(ELEM(mode, FO_CURSUP, FO_CURSDOWN, FO_PAGEUP, FO_PAGEDOWN, FO_LINE_BEGIN, FO_LINE_END))
#define ELEM(...)

#BKE_vfont_to_curve will move the cursor in these cases.

Definition at line 96 of file BKE_vfont.hh.

Referenced by blender::move_cursor(), and blender::vfont_to_curve().