Go to the source code of this file.
|
| uint32_t | ssfn_utf8 (char **str) |
| |
| int | ssfn_load (ssfn_t *ctx, const void *data) |
| |
| int | ssfn_select (ssfn_t *ctx, int family, const char *name, int style, int size) |
| |
| int | ssfn_render (ssfn_t *ctx, ssfn_buf_t *dst, const char *str) |
| |
| int | ssfn_bbox (ssfn_t *ctx, const char *str, int *w, int *h, int *left, int *top) |
| |
| int | ssfn_bbox2 (ssfn_t *ctx, const char *str, const char *end, int *w, int *h, int *left, int *top) |
| |
| ssfn_buf_t * | ssfn_text (ssfn_t *ctx, const char *str, unsigned int fg) |
| |
| int | ssfn_mem (ssfn_t *ctx) |
| |
| void | ssfn_free (ssfn_t *ctx) |
| |
| int | ssfn_putc (uint32_t unicode) |
| |
◆ __THROW
◆ _pack
◆ SSFN_COLLECTION
| #define SSFN_COLLECTION "SFNC" |
◆ SSFN_CONTOUR_CUBIC
| #define SSFN_CONTOUR_CUBIC 3 |
◆ SSFN_CONTOUR_LINE
| #define SSFN_CONTOUR_LINE 1 |
◆ SSFN_CONTOUR_MOVE
| #define SSFN_CONTOUR_MOVE 0 |
◆ SSFN_CONTOUR_QUAD
| #define SSFN_CONTOUR_QUAD 2 |
◆ SSFN_DATA_MAX
| #define SSFN_DATA_MAX 65536 |
◆ SSFN_ENDMAGIC
| #define SSFN_ENDMAGIC "2NFS" |
◆ SSFN_ERR_ALLOC
| #define SSFN_ERR_ALLOC -1 /* allocation error */ |
◆ SSFN_ERR_BADFILE
| #define SSFN_ERR_BADFILE -2 /* bad SSFN file format */ |
◆ SSFN_ERR_BADSIZE
| #define SSFN_ERR_BADSIZE -6 /* bad size */ |
◆ SSFN_ERR_BADSTYLE
| #define SSFN_ERR_BADSTYLE -5 /* bad style */ |
◆ SSFN_ERR_INVINP
| #define SSFN_ERR_INVINP -4 /* invalid input */ |
◆ SSFN_ERR_NOFACE
| #define SSFN_ERR_NOFACE -3 /* no font face selected */ |
◆ SSFN_ERR_NOGLYPH
| #define SSFN_ERR_NOGLYPH -7 /* glyph (or kerning info) not found */ |
◆ ssfn_error
| #define ssfn_error |
( |
| err | ) |
|
Value:
const char * ssfn_errstr[]
Definition at line 238 of file ssfn.h.
◆ SSFN_FAMILY_ANY
| #define SSFN_FAMILY_ANY 0xff /* select the first loaded font */ |
◆ SSFN_FAMILY_BYNAME
| #define SSFN_FAMILY_BYNAME 0xfe /* select font by its unique name */ |
◆ SSFN_FAMILY_DECOR
| #define SSFN_FAMILY_DECOR 2 |
◆ SSFN_FAMILY_HAND
| #define SSFN_FAMILY_HAND 4 |
◆ SSFN_FAMILY_MONOSPACE
| #define SSFN_FAMILY_MONOSPACE 3 |
◆ SSFN_FAMILY_SANS
| #define SSFN_FAMILY_SANS 1 |
◆ SSFN_FAMILY_SERIF
| #define SSFN_FAMILY_SERIF 0 |
◆ SSFN_FRAG_BITMAP
| #define SSFN_FRAG_BITMAP 1 |
◆ SSFN_FRAG_CONTOUR
| #define SSFN_FRAG_CONTOUR 0 |
◆ SSFN_FRAG_HINTING
| #define SSFN_FRAG_HINTING 4 |
◆ SSFN_FRAG_KERNING
| #define SSFN_FRAG_KERNING 3 |
◆ SSFN_FRAG_PIXMAP
| #define SSFN_FRAG_PIXMAP 2 |
◆ SSFN_ITALIC_DIV
| #define SSFN_ITALIC_DIV 4 /* italic angle divisor, glyph top side pushed width / this pixels */ |
◆ SSFN_LIG_FIRST
| #define SSFN_LIG_FIRST 0xF000 |
◆ SSFN_LIG_LAST
| #define SSFN_LIG_LAST 0xF8FF |
◆ SSFN_MAGIC
| #define SSFN_MAGIC "SFN2" |
◆ SSFN_OK
| #define SSFN_OK 0 /* success */ |
◆ SSFN_PREC
| #define SSFN_PREC 4 /* precision in bits */ |
◆ SSFN_SIZE_MAX
| #define SSFN_SIZE_MAX 192 /* biggest size we can render */ |
◆ SSFN_STYLE_ABS_SIZE
| #define SSFN_STYLE_ABS_SIZE 4096 /* scale absoulte height */ |
◆ SSFN_STYLE_BOLD
| #define SSFN_STYLE_BOLD 1 |
◆ SSFN_STYLE_ITALIC
| #define SSFN_STYLE_ITALIC 2 |
◆ SSFN_STYLE_NOAA
| #define SSFN_STYLE_NOAA 64 /* no anti-aliasing */ |
◆ SSFN_STYLE_NOCACHE
| #define SSFN_STYLE_NOCACHE 512 /* don't cache rasterized glyph */ |
◆ SSFN_STYLE_NODEFGLYPH
| #define SSFN_STYLE_NODEFGLYPH 256 /* don't draw default glyph */ |
◆ SSFN_STYLE_NOHINTING
| #define SSFN_STYLE_NOHINTING 1024 /* no auto hinting grid (not used as of now) */ |
◆ SSFN_STYLE_NOKERN
| #define SSFN_STYLE_NOKERN 128 /* no kerning */ |
◆ SSFN_STYLE_NOSMOOTH
| #define SSFN_STYLE_NOSMOOTH 8192 /* no edge-smoothing for bitmaps */ |
◆ SSFN_STYLE_REGULAR
| #define SSFN_STYLE_REGULAR 0 |
◆ SSFN_STYLE_RTL
| #define SSFN_STYLE_RTL 2048 /* render right-to-left */ |
◆ SSFN_STYLE_STHROUGH
| #define SSFN_STYLE_STHROUGH 32 /* strike through glyph */ |
◆ SSFN_STYLE_UNDERLINE
| #define SSFN_STYLE_UNDERLINE 16 /* under line glyph */ |
◆ SSFN_STYLE_USRDEF1
| #define SSFN_STYLE_USRDEF1 4 /* user defined variant 1 */ |
◆ SSFN_STYLE_USRDEF2
| #define SSFN_STYLE_USRDEF2 8 /* user defined variant 2 */ |
◆ SSFN_TYPE_FAMILY
| #define SSFN_TYPE_FAMILY |
( |
| x | ) |
|
Value:
Definition at line 69 of file ssfn.h.
◆ SSFN_TYPE_STYLE
| #define SSFN_TYPE_STYLE |
( |
| x | ) |
|
Value:
Definition at line 77 of file ssfn.h.
◆ SSFN_VERSION
| #define SSFN_VERSION 0x0200 |
◆ int16_t
◆ uint16_t
◆ uint64_t
◆ ssfn_bbox()
| int ssfn_bbox |
( |
ssfn_t * | ctx, |
|
|
const char * | str, |
|
|
int * | w, |
|
|
int * | h, |
|
|
int * | left, |
|
|
int * | top ) |
◆ ssfn_bbox2()
| int ssfn_bbox2 |
( |
ssfn_t * | ctx, |
|
|
const char * | str, |
|
|
const char * | end, |
|
|
int * | w, |
|
|
int * | h, |
|
|
int * | left, |
|
|
int * | top ) |
◆ ssfn_free()
| void ssfn_free |
( |
ssfn_t * | ctx | ) |
|
◆ ssfn_load()
| int ssfn_load |
( |
ssfn_t * | ctx, |
|
|
const void * | data ) |
◆ ssfn_mem()
◆ ssfn_putc()
◆ ssfn_render()
◆ ssfn_select()
| int ssfn_select |
( |
ssfn_t * | ctx, |
|
|
int | family, |
|
|
const char * | name, |
|
|
int | style, |
|
|
int | size ) |
◆ ssfn_text()
◆ ssfn_utf8()
◆ ssfn_dst
◆ ssfn_errstr
| const char* ssfn_errstr[] |
|
extern |
◆ ssfn_src