Classes | Macros | Functions | Variables
stb_easy_font.h File Reference
#include <stdlib.h>
#include <math.h>
Include dependency graph for stb_easy_font.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  stb_easy_font_color
 

Macros

#define INCLUDE_STB_EASY_FONT_H
 

Functions

static int stb_easy_font_draw_segs (float x, float y, unsigned char *segs, int num_segs, int vertical, stb_easy_font_color c, char *vbuf, int vbuf_size, int offset)
 
static int stb_easy_font_print (float x, float y, char *text, unsigned char color[4], void *vertex_buffer, int vbuf_size)
 
static void stb_easy_font_spacing (float spacing)
 
static int stb_easy_font_width (char *text)
 

Variables

struct {
   unsigned char   advance
 
   unsigned char   h_seg
 
   unsigned char   v_seg
 
stb_easy_font_charinfo [96]
 
static unsigned char stb_easy_font_hseg [214]
 
static float stb_easy_font_spacing_val = 0
 
static unsigned char stb_easy_font_vseg [253]
 

Macro Definition Documentation

#define INCLUDE_STB_EASY_FONT_H

Definition at line 100 of file stb_easy_font.h.

Function Documentation

static int stb_easy_font_draw_segs ( float  x,
float  y,
unsigned char *  segs,
int  num_segs,
int  vertical,
stb_easy_font_color  c,
char *  vbuf,
int  vbuf_size,
int  offset 
)
static

Definition at line 166 of file stb_easy_font.h.

static int stb_easy_font_print ( float  x,
float  y,
char *  text,
unsigned char  color[4],
void vertex_buffer,
int  vbuf_size 
)
static

Definition at line 192 of file stb_easy_font.h.

static void stb_easy_font_spacing ( float  spacing)
static

Definition at line 187 of file stb_easy_font.h.

static int stb_easy_font_width ( char *  text)
static

Definition at line 223 of file stb_easy_font.h.

Variable Documentation

unsigned char advance

Definition at line 106 of file stb_easy_font.h.

unsigned char h_seg

Definition at line 107 of file stb_easy_font.h.

struct { ... } stb_easy_font_charinfo[96]
Initial value:
= {
{ 5, 0, 0 }, { 3, 0, 0 }, { 5, 1, 1 }, { 7, 1, 4 },
{ 7, 3, 7 }, { 7, 6, 12 }, { 7, 8, 19 }, { 4, 16, 21 },
{ 4, 17, 22 }, { 4, 19, 23 }, { 23, 21, 24 }, { 23, 22, 31 },
{ 20, 23, 34 }, { 22, 23, 36 }, { 19, 24, 36 }, { 21, 25, 36 },
{ 6, 25, 39 }, { 6, 27, 43 }, { 6, 28, 45 }, { 6, 30, 49 },
{ 6, 33, 53 }, { 6, 34, 57 }, { 6, 40, 58 }, { 6, 46, 59 },
{ 6, 47, 62 }, { 6, 55, 64 }, { 19, 57, 68 }, { 20, 59, 68 },
{ 21, 61, 69 }, { 22, 66, 69 }, { 21, 68, 69 }, { 7, 73, 69 },
{ 9, 75, 74 }, { 6, 78, 81 }, { 6, 80, 85 }, { 6, 83, 90 },
{ 6, 85, 91 }, { 6, 87, 95 }, { 6, 90, 96 }, { 7, 92, 97 },
{ 6, 96,102 }, { 5, 97,106 }, { 6, 99,107 }, { 6,100,110 },
{ 6,100,115 }, { 7,101,116 }, { 6,101,121 }, { 6,101,125 },
{ 6,102,129 }, { 7,103,133 }, { 6,104,140 }, { 6,105,145 },
{ 7,107,149 }, { 6,108,151 }, { 7,109,155 }, { 7,109,160 },
{ 7,109,165 }, { 7,118,167 }, { 6,118,172 }, { 4,120,176 },
{ 6,122,177 }, { 4,122,181 }, { 23,124,182 }, { 22,129,182 },
{ 4,130,182 }, { 22,131,183 }, { 6,133,187 }, { 22,135,191 },
{ 6,137,192 }, { 22,139,196 }, { 5,144,197 }, { 22,147,198 },
{ 6,150,202 }, { 19,151,206 }, { 21,152,207 }, { 6,155,209 },
{ 3,160,210 }, { 23,160,211 }, { 22,164,216 }, { 22,165,220 },
{ 22,167,224 }, { 22,169,228 }, { 21,171,232 }, { 21,173,233 },
{ 5,178,233 }, { 22,179,234 }, { 23,180,238 }, { 23,180,243 },
{ 23,180,248 }, { 22,189,248 }, { 22,191,252 }, { 5,196,252 },
{ 3,203,252 }, { 5,203,253 }, { 22,210,253 }, { 0,214,253 },
}
unsigned char stb_easy_font_hseg[214]
static
Initial value:
= {
97,37,69,84,28,51,2,18,10,49,98,41,65,25,81,105,33,9,97,1,97,37,37,36,
81,10,98,107,3,100,3,99,58,51,4,99,58,8,73,81,10,50,98,8,73,81,4,10,50,
98,8,25,33,65,81,10,50,17,65,97,25,33,25,49,9,65,20,68,1,65,25,49,41,
11,105,13,101,76,10,50,10,50,98,11,99,10,98,11,50,99,11,50,11,99,8,57,
58,3,99,99,107,10,10,11,10,99,11,5,100,41,65,57,41,65,9,17,81,97,3,107,
9,97,1,97,33,25,9,25,41,100,41,26,82,42,98,27,83,42,98,26,51,82,8,41,
35,8,10,26,82,114,42,1,114,8,9,73,57,81,41,97,18,8,8,25,26,26,82,26,82,
26,82,41,25,33,82,26,49,73,35,90,17,81,41,65,57,41,65,25,81,90,114,20,
84,73,57,41,49,25,33,65,81,9,97,1,97,25,33,65,81,57,33,25,41,25,
}

Definition at line 136 of file stb_easy_font.h.

float stb_easy_font_spacing_val = 0
static

Definition at line 186 of file stb_easy_font.h.

unsigned char stb_easy_font_vseg[253]
static
Initial value:
= {
4,2,8,10,15,8,15,33,8,15,8,73,82,73,57,41,82,10,82,18,66,10,21,29,1,65,
27,8,27,9,65,8,10,50,97,74,66,42,10,21,57,41,29,25,14,81,73,57,26,8,8,
26,66,3,8,8,15,19,21,90,58,26,18,66,18,105,89,28,74,17,8,73,57,26,21,
8,42,41,42,8,28,22,8,8,30,7,8,8,26,66,21,7,8,8,29,7,7,21,8,8,8,59,7,8,
8,15,29,8,8,14,7,57,43,10,82,7,7,25,42,25,15,7,25,41,15,21,105,105,29,
7,57,57,26,21,105,73,97,89,28,97,7,57,58,26,82,18,57,57,74,8,30,6,8,8,
14,3,58,90,58,11,7,74,43,74,15,2,82,2,42,75,42,10,67,57,41,10,7,2,42,
74,106,15,2,35,8,8,29,7,8,8,59,35,51,8,8,15,35,30,35,8,8,30,7,8,8,60,
36,8,45,7,7,36,8,43,8,44,21,8,8,44,35,8,8,43,23,8,8,43,35,8,8,31,21,15,
20,8,8,28,18,58,89,58,26,21,89,73,89,29,20,8,8,30,7,
}

Definition at line 148 of file stb_easy_font.h.

unsigned char v_seg

Definition at line 108 of file stb_easy_font.h.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:29