Lines Matching refs:file
3 // found in the LICENSE file.
15 bool ots_cbdt_parse(OpenTypeFile *file, const uint8_t *data, size_t length) {
20 file->cbdt = new OpenTypeCBDT;
21 file->cbdt->data = data;
22 file->cbdt->length = length;
26 bool ots_cbdt_should_serialise(OpenTypeFile *file) {
27 return file->cbdt != NULL && file->cblc != NULL;
30 bool ots_cbdt_serialise(OTSStream *out, OpenTypeFile *file) {
31 if (!out->Write(file->cbdt->data, file->cbdt->length)) {
37 void ots_cbdt_free(OpenTypeFile *file) {
38 delete file->cbdt;