Lines Matching refs:i

313     int i=0, n;  in StreamToMemory()  local
329 for (i = 0; i < n; i++) { in StreamToMemory()
330 … GetRawData((TrueTypeTable *) listCurrent(_this->tables), &te[i].data, &te[i].length, &te[i].tag); in StreamToMemory()
347 for (i = 0; i < n; i++) { in StreamToMemory()
348 s += (te[i].length + 3) & (sal_uInt32) ~3; in StreamToMemory()
362 for (i = 0; i < n; i++) { in StreamToMemory()
363 PutUInt32(te[i].tag, ttf + 12, 16 * i, 1); in StreamToMemory()
364 PutUInt32(CheckSum((sal_uInt32 *) te[i].data, te[i].length), ttf + 12, 16 * i + 4, 1); in StreamToMemory()
365 PutUInt32(offset, ttf + 12, 16 * i + 8, 1); in StreamToMemory()
366 PutUInt32(te[i].length, ttf + 12, 16 * i + 12, 1); in StreamToMemory()
368 if (te[i].tag == T_head) { in StreamToMemory()
372 memcpy(ttf+offset, te[i].data, (te[i].length + 3) & (sal_uInt32) ~3 ); in StreamToMemory()
373 offset += (te[i].length + 3) & (sal_uInt32) ~3; in StreamToMemory()
380 for (i = 0; i < (int)s / 4; i++) checkSumAdjustment += p[i]; in StreamToMemory()
557 sal_uInt32 i; in TrueTypeTableDispose_cmap() local
564 for (i = 0; i < t->m; i++) { in TrueTypeTableDispose_cmap()
565 if (s[i].xc) free(s[i].xc); in TrueTypeTableDispose_cmap()
566 if (s[i].xg) free(s[i].xg); in TrueTypeTableDispose_cmap()
718 sal_uInt32 i, j; in PackCmapType0() local
725 for (i = 0; i < 256; i++) { in PackCmapType0()
728 if (s->xc[j] == i) { in PackCmapType0()
732 p[i] = (sal_uInt8) g; in PackCmapType0()
742 sal_uInt32 i, j; in PackCmapType6() local
751 for (i = 0; i < s->n; i++) { in PackCmapType6()
754 if (s->xc[j] == i) { in PackCmapType6()
758 PutUInt16( g, p, 2*i, 1 ); in PackCmapType6()
778 sal_uInt32 i; in GetRawData_cmap() local
793 for (i = 0; i < t->n; i++) { in GetRawData_cmap()
794 subtables[i] = PackCmap(t->s+i, &l); in GetRawData_cmap()
795 sizes[i] = l; in GetRawData_cmap()
806 for (i = 0; i < t->n; i++) { in GetRawData_cmap()
807 PutUInt16((sal_uInt16)(t->s[i].id >> 16), cmap + 4, i * 8, 1); in GetRawData_cmap()
808 PutUInt16((sal_uInt16)(t->s[i].id & 0xFF), cmap + 4, 2 + i * 8, 1); in GetRawData_cmap()
809 PutUInt32(coffset, cmap + 4, 4 + i * 8, 1); in GetRawData_cmap()
810 memcpy(cmap + coffset, subtables[i], sizes[i]); in GetRawData_cmap()
811 free(subtables[i]); in GetRawData_cmap()
812 coffset += sizes[i]; in GetRawData_cmap()
829 sal_Int16 i=0, n; /* number of Name Records */ in GetRawData_name() local
848 memcpy(nr+i, listCurrent(l), sizeof(NameRecord)); in GetRawData_name()
849 stringLen += nr[i].slen; in GetRawData_name()
850 i++; in GetRawData_name()
870 for (i = 0; i < n; i++) { in GetRawData_name()
871 PutUInt16(nr[i].platformID, p1, 0, 1); in GetRawData_name()
872 PutUInt16(nr[i].encodingID, p1, 2, 1); in GetRawData_name()
873 PutUInt16(nr[i].languageID, p1, 4, 1); in GetRawData_name()
874 PutUInt16(nr[i].nameID, p1, 6, 1); in GetRawData_name()
875 PutUInt16(nr[i].slen, p1, 8, 1); in GetRawData_name()
877 memcpy(p2, nr[i].sptr, nr[i].slen); in GetRawData_name()
879 p2 += nr[i].slen; in GetRawData_name()
1142 int i; in TrueTypeTableNew_name() local
1143 for (i = 0; i < n; i++) { in TrueTypeTableNew_name()
1144 listAppend(l, NameRecordNewCopy(nr+i)); in TrueTypeTableNew_name()
1182 unsigned int i; in GetRawData() local
1196 for(i=0; i < sizeof(vtable2)/sizeof(*vtable2); i++) { in GetRawData()
1197 if (_this->tag == vtable2[i].tag) { in GetRawData()
1198 return vtable2[i].f(_this, ptr, len, tag); in GetRawData()
1208 sal_uInt32 i, found; in cmapAdd() local
1219 for (i = 0; i < t->n; i++) { in cmapAdd()
1220 if (s[i].id == id) { in cmapAdd()
1237 for (i = 0; i < t->n; i++) { in cmapAdd()
1238 if (s[i].id > id) break; in cmapAdd()
1241 if (i < t->n) { in cmapAdd()
1242 memmove(s+i+1, s+i, t->n-i); in cmapAdd()
1247 s[i].id = id; in cmapAdd()
1248 s[i].n = 0; in cmapAdd()
1249 s[i].m = CMAP_PAIR_INIT; in cmapAdd()
1250 s[i].xc = (sal_uInt32*)scalloc(CMAP_PAIR_INIT, sizeof(sal_uInt32)); in cmapAdd()
1251 s[i].xg = (sal_uInt32*)scalloc(CMAP_PAIR_INIT, sizeof(sal_uInt32)); in cmapAdd()
1254 if (s[i].n == s[i].m) { in cmapAdd()
1255 sal_uInt32* tmp1 = (sal_uInt32*)scalloc(s[i].m + CMAP_PAIR_INCR, sizeof(sal_uInt32)); in cmapAdd()
1256 sal_uInt32* tmp2 = (sal_uInt32*)scalloc(s[i].m + CMAP_PAIR_INCR, sizeof(sal_uInt32)); in cmapAdd()
1259 memcpy(tmp1, s[i].xc, sizeof(sal_uInt32) * s[i].m); in cmapAdd()
1260 memcpy(tmp2, s[i].xg, sizeof(sal_uInt32) * s[i].m); in cmapAdd()
1261 s[i].m += CMAP_PAIR_INCR; in cmapAdd()
1262 free(s[i].xc); in cmapAdd()
1263 free(s[i].xg); in cmapAdd()
1264 s[i].xc = tmp1; in cmapAdd()
1265 s[i].xg = tmp2; in cmapAdd()
1268 s[i].xc[s[i].n] = c; in cmapAdd()
1269 s[i].xg[s[i].n] = g; in cmapAdd()
1270 s[i].n++; in cmapAdd()
1384 sal_uInt32 i = 0; in ProcessTables() local
1412 assert(gd->newID == i); in ProcessTables()
1413 gid[i++] = gd->glyphID; in ProcessTables()
1448 i = 0; in ProcessTables()
1504 met[i].adv = gd->aw; in ProcessTables()
1505 met[i].sb = gd->lsb; in ProcessTables()
1506 i++; in ProcessTables()
1561 for (i = nGlyphs - 1; i > 0; i--) { in ProcessTables()
1562 if (met[i].adv != met[i-1].adv) break; in ProcessTables()
1564 nlsb = nGlyphs - 1 - i; in ProcessTables()
1570 for (i = 0; i < nGlyphs; i++) { in ProcessTables()
1571 if (i < nGlyphs - nlsb) { in ProcessTables()
1572 PutUInt16(met[i].adv, p1, 0, 1); in ProcessTables()
1573 PutUInt16(met[i].sb, p1, 2, 1); in ProcessTables()
1576 PutUInt16(met[i].sb, p1, 0, 1); in ProcessTables()
1607 unsigned int i; in TrueTypeTableDispose() local
1613 for(i=0; i < sizeof(vcl::vtable1)/sizeof(*vcl::vtable1); i++) { in TrueTypeTableDispose()
1614 if (_this->tag == vcl::vtable1[i].tag) { in TrueTypeTableDispose()
1615 vcl::vtable1[i].f(_this); in TrueTypeTableDispose()