Lines Matching refs:rec
2838 NameRecord* rec = (NameRecord*)calloc(n, sizeof(NameRecord)); in GetTTNameRecords() local
2842 rec[i].platformID = GetUInt16(table + 6, 12 * i, 1); in GetTTNameRecords()
2843 rec[i].encodingID = GetUInt16(table + 6, 2 + 12 * i, 1); in GetTTNameRecords()
2844 rec[i].languageID = GetUInt16(table + 6, 4 + 12 * i, 1); in GetTTNameRecords()
2845 rec[i].nameID = GetUInt16(table + 6, 6 + 12 * i, 1); in GetTTNameRecords()
2846 rec[i].slen = GetUInt16(table + 6, 8 + 12 * i, 1); in GetTTNameRecords()
2847 if (rec[i].slen) { in GetTTNameRecords()
2848 if( nStrBase+nStrOffset+rec[i].slen >= nTableSize ) { in GetTTNameRecords()
2849 rec[i].sptr = 0; in GetTTNameRecords()
2850 rec[i].slen = 0; in GetTTNameRecords()
2856 …_string > (sal_uInt8*)ttf->ptr && rec_string < ((sal_uInt8*)ttf->ptr + ttf->fsize - rec[i].slen ) ) in GetTTNameRecords()
2858 rec[i].sptr = (sal_uInt8 *) malloc(rec[i].slen); assert(rec[i].sptr != 0); in GetTTNameRecords()
2859 memcpy(rec[i].sptr, rec_string, rec[i].slen); in GetTTNameRecords()
2865 i, rec[i].nameID, ttf->fname ); in GetTTNameRecords()
2867 rec[i].sptr = 0; in GetTTNameRecords()
2868 rec[i].slen = 0; in GetTTNameRecords()
2871 rec[i].sptr = 0; in GetTTNameRecords()
2874 if( (rec[i].platformID == 3) && (rec[i].encodingID == 0) ) in GetTTNameRecords()
2875 rec[i].encodingID = 1; in GetTTNameRecords()
2878 *nr = rec; in GetTTNameRecords()