ULONG *ttfMakeULONG(size_t nelem, FILE *fp) { int i; ULONG *array = XTALLOC (nelem, ULONG); for (i = 0; i < nelem; i++) array[i] = ttfGetULONG (fp); return array; }
/* actually, EncodingTable is a part of SubTable */ static void ttfLoadEncodingTable(FILE *fp,SubTablePtr subTable,ULONG offset) { if (fseek(fp,offset,SEEK_SET) !=0) ttfError("Fseek Failed in ttfLoadEncodingTable \n"); subTable->PlatformID = ttfGetUSHORT(fp); subTable->EncodingID = ttfGetUSHORT(fp); subTable->offset = ttfGetULONG(fp); }
Fixed ttfGetFixed(FILE *fp) { return (Fixed) ttfGetULONG(fp); }
void ttfReadULONG(ULONG *array, size_t nelem, FILE *fp) { int i; for (i = 0; i < nelem; i++) array[i] = ttfGetULONG (fp); }