blob: 313003a0eb589c12ff7cb6124de4917fd21ea1d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef CARYLL_SFNT_BUILDER_H
#define CARYLL_SFNT_BUILDER_H
#include "primitives.h"
#include "caryll/buffer.h"
#include "otfcc/options.h"
#include "dep/uthash.h"
typedef struct {
int tag;
uint32_t length;
uint32_t checksum;
caryll_Buffer *buffer;
UT_hash_handle hh;
} otfcc_SFNTTableEntry;
typedef struct {
uint32_t count;
uint32_t header;
otfcc_SFNTTableEntry *tables;
const otfcc_Options *options;
} otfcc_SFNTBuilder;
otfcc_SFNTBuilder *otfcc_newSFNTBuilder(uint32_t header, const otfcc_Options *options);
void otfcc_SFNTBuilder_pushTable(otfcc_SFNTBuilder *builder, uint32_t tag, caryll_Buffer *buffer);
void otfcc_deleteSFNTBuilder(otfcc_SFNTBuilder *builder);
caryll_Buffer *otfcc_SFNTBuilder_serialize(otfcc_SFNTBuilder *builder);
#endif
|