17 #include FT_FREETYPE_H
33 const char **draw_str,
34 const char **i18n_draw_str,
35 const unsigned char draw_str_lines,
36 const float font_color[4],
43 const unsigned int dpi = 72;
44 const int font_size_min = 6;
54 printf(
"Info: Can't load font '%s', no preview possible\n", filepath);
69 font_size_curr = font_size;
73 for (
int i = 0; i < draw_str_lines; i++) {
74 const char *draw_str_i18n = i18n_draw_str[i] !=
NULL ? i18n_draw_str[i] : draw_str[i];
75 const size_t draw_str_i18n_len = strlen(draw_str_i18n);
76 int draw_str_i18_count = 0;
84 font_size_curr -= (font_size_curr / font_shrink);
95 (draw_str_i18_count / 2)) {
Strict compiler flags for areas of code we want to ensure don't do conversions without us knowing abo...
Group Output data from inside of a node group A color picker Mix two input colors RGB to Convert a color s luminance to a grayscale value Generate a normal vector and a dot product Bright Control the brightness and contrast of the input color Vector Map an input vectors to used to fine tune the interpolation of the input Camera Retrieve information about the camera and how it relates to the current shading point s position Clamp a value between a minimum and a maximum Vector Perform vector math operation Invert a producing a negative Combine Generate a color from its and blue channels(Deprecated)") DefNode(ShaderNode
void blf_draw_buffer__start(FontBLF *font)
void blf_draw_buffer__end(void)
int blf_font_ascender(FontBLF *font)
int blf_font_count_missing_chars(FontBLF *font, const char *str, const size_t str_len, int *r_tot_chars)
void blf_font_draw_buffer(FontBLF *font, const char *str, const size_t str_len, struct ResultBLF *r_info)
void blf_font_free(FontBLF *font)
FontBLF * blf_font_new(const char *name, const char *filepath)
bool blf_font_size(FontBLF *font, float size, unsigned int dpi)
void BLF_thumb_preview(const char *filepath, const char **draw_str, const char **i18n_draw_str, const unsigned char draw_str_lines, const float font_color[4], const int font_size, unsigned char *buf, int w, int h, int channels)
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.