Blender  V2.59
Functions | Variables
blf_font.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <ft2build.h>
#include "MEM_guardedalloc.h"
#include "DNA_vec_types.h"
#include "BLI_blenlib.h"
#include "BLI_linklist.h"
#include "BLI_math.h"
#include "BIF_gl.h"
#include "BLF_api.h"
#include "blf_internal_types.h"
#include "blf_internal.h"

Go to the source code of this file.

Functions

int blf_font_init (void)
void blf_font_exit (void)
void blf_font_size (FontBLF *font, int size, int dpi)
void blf_font_draw (FontBLF *font, const char *str, unsigned int len)
void blf_font_draw_ascii (FontBLF *font, const char *str, unsigned int len)
void blf_font_buffer (FontBLF *font, const char *str)
void blf_font_boundbox (FontBLF *font, const char *str, rctf *box)
void blf_font_width_and_height (FontBLF *font, const char *str, float *width, float *height)
float blf_font_width (FontBLF *font, const char *str)
float blf_font_height (FontBLF *font, const char *str)
float blf_font_fixed_width (FontBLF *font)
void blf_font_free (FontBLF *font)
static void blf_font_fill (FontBLF *font)
FontBLFblf_font_new (const char *name, const char *filename)
void blf_font_attach_from_mem (FontBLF *font, const unsigned char *mem, int mem_size)
FontBLFblf_font_new_from_mem (const char *name, unsigned char *mem, int mem_size)

Variables

static FT_Library ft_lib

Detailed Description

Definition in file blf_font.c.


Function Documentation

void blf_font_attach_from_mem ( FontBLF font,
const unsigned char *  mem,
int  mem_size 
)

Definition at line 601 of file blf_font.c.

References FontBLF::face.

Referenced by BLF_metrics_attach().

void blf_font_boundbox ( FontBLF font,
const char *  str,
rctf box 
)
void blf_font_buffer ( FontBLF font,
const char *  str 
)
void blf_font_draw ( FontBLF font,
const char *  str,
unsigned int  len 
)
void blf_font_draw_ascii ( FontBLF font,
const char *  str,
unsigned int  len 
)
void blf_font_exit ( void  )

Definition at line 68 of file blf_font.c.

References ft_lib.

Referenced by BLF_exit().

static void blf_font_fill ( FontBLF font) [static]
float blf_font_fixed_width ( FontBLF font)
void blf_font_free ( FontBLF font)
float blf_font_height ( FontBLF font,
const char *  str 
)
int blf_font_init ( void  )

Definition at line 63 of file blf_font.c.

References ft_lib.

Referenced by BLF_init().

FontBLF* blf_font_new ( const char *  name,
const char *  filename 
) [read]
FontBLF* blf_font_new_from_mem ( const char *  name,
unsigned char *  mem,
int  mem_size 
) [read]
void blf_font_size ( FontBLF font,
int  size,
int  dpi 
)
float blf_font_width ( FontBLF font,
const char *  str 
)
void blf_font_width_and_height ( FontBLF font,
const char *  str,
float *  width,
float *  height 
)

Variable Documentation

FT_Library ft_lib [static]