repo.or.cz
/
congif.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #13 from rdebath/patch-fixes
[congif.git]
/
mbf.h
blob
55006b3e6b859f410e9faf1a40bf94a85dcaa63e
1
typedef
struct
Header
{
2
uint16_t
ng
;
3
uint8_t
w
,
h
;
4
uint16_t
nr
;
5
}
Header
;
6
7
typedef
struct
Range
{
8
uint16_t
offset
,
length
;
9
}
Range
;
10
11
typedef
struct
Font
{
12
Header header
;
13
int
stride
;
14
Range
*
ranges
;
15
uint8_t
*
data
;
16
}
Font
;
17
18
Font
*
load_font
(
const char
*
fname
);
19
int
search_glyph
(
Font
*
font
,
uint16_t
code
);
20
int
get_index
(
Font
*
font
,
uint16_t
code
);