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()
558 sal_uInt32 i; in TrueTypeTableDispose_cmap() local
565 for (i = 0; i < t->m; i++) { in TrueTypeTableDispose_cmap()
566 if (s[i].xc) free(s[i].xc); in TrueTypeTableDispose_cmap()
567 if (s[i].xg) free(s[i].xg); in TrueTypeTableDispose_cmap()
719 sal_uInt32 i, j; in PackCmapType0() local
726 for (i = 0; i < 256; i++) { in PackCmapType0()
729 if (s->xc[j] == i) { in PackCmapType0()
733 p[i] = (sal_uInt8) g; in PackCmapType0()
743 sal_uInt32 i, j; in PackCmapType6() local
752 for (i = 0; i < s->n; i++) { in PackCmapType6()
755 if (s->xc[j] == i) { in PackCmapType6()
759 PutUInt16( g, p, 2*i, 1 ); in PackCmapType6()
779 sal_uInt32 i; in GetRawData_cmap() local
794 for (i = 0; i < t->n; i++) { in GetRawData_cmap()
795 subtables[i] = PackCmap(t->s+i, &l); in GetRawData_cmap()
796 sizes[i] = l; in GetRawData_cmap()
807 for (i = 0; i < t->n; i++) { in GetRawData_cmap()
808 PutUInt16((sal_uInt16)(t->s[i].id >> 16), cmap + 4, i * 8, 1); in GetRawData_cmap()
809 PutUInt16((sal_uInt16)(t->s[i].id & 0xFF), cmap + 4, 2 + i * 8, 1); in GetRawData_cmap()
810 PutUInt32(coffset, cmap + 4, 4 + i * 8, 1); in GetRawData_cmap()
811 memcpy(cmap + coffset, subtables[i], sizes[i]); in GetRawData_cmap()
812 free(subtables[i]); in GetRawData_cmap()
813 coffset += sizes[i]; in GetRawData_cmap()
830 sal_Int16 i=0, n; /* number of Name Records */ in GetRawData_name() local
849 memcpy(nr+i, listCurrent(l), sizeof(NameRecord)); in GetRawData_name()
850 stringLen += nr[i].slen; in GetRawData_name()
851 i++; in GetRawData_name()
871 for (i = 0; i < n; i++) { in GetRawData_name()
872 PutUInt16(nr[i].platformID, p1, 0, 1); in GetRawData_name()
873 PutUInt16(nr[i].encodingID, p1, 2, 1); in GetRawData_name()
874 PutUInt16(nr[i].languageID, p1, 4, 1); in GetRawData_name()
875 PutUInt16(nr[i].nameID, p1, 6, 1); in GetRawData_name()
876 PutUInt16(nr[i].slen, p1, 8, 1); in GetRawData_name()
878 memcpy(p2, nr[i].sptr, nr[i].slen); in GetRawData_name()
880 p2 += nr[i].slen; in GetRawData_name()
1143 int i; in TrueTypeTableNew_name() local
1144 for (i = 0; i < n; i++) { in TrueTypeTableNew_name()
1145 listAppend(l, NameRecordNewCopy(nr+i)); in TrueTypeTableNew_name()
1183 unsigned int i; in GetRawData() local
1197 for(i=0; i < sizeof(vtable2)/sizeof(*vtable2); i++) { in GetRawData()
1198 if (_this->tag == vtable2[i].tag) { in GetRawData()
1199 return vtable2[i].f(_this, ptr, len, tag); in GetRawData()
1209 sal_uInt32 i, found; in cmapAdd() local
1220 for (i = 0; i < t->n; i++) { in cmapAdd()
1221 if (s[i].id == id) { in cmapAdd()
1238 for (i = 0; i < t->n; i++) { in cmapAdd()
1239 if (s[i].id > id) break; in cmapAdd()
1242 if (i < t->n) { in cmapAdd()
1243 memmove(s+i+1, s+i, t->n-i); in cmapAdd()
1248 s[i].id = id; in cmapAdd()
1249 s[i].n = 0; in cmapAdd()
1250 s[i].m = CMAP_PAIR_INIT; in cmapAdd()
1251 s[i].xc = (sal_uInt32*)scalloc(CMAP_PAIR_INIT, sizeof(sal_uInt32)); in cmapAdd()
1252 s[i].xg = (sal_uInt32*)scalloc(CMAP_PAIR_INIT, sizeof(sal_uInt32)); in cmapAdd()
1255 if (s[i].n == s[i].m) { in cmapAdd()
1256 sal_uInt32* tmp1 = (sal_uInt32*)scalloc(s[i].m + CMAP_PAIR_INCR, sizeof(sal_uInt32)); in cmapAdd()
1257 sal_uInt32* tmp2 = (sal_uInt32*)scalloc(s[i].m + CMAP_PAIR_INCR, sizeof(sal_uInt32)); in cmapAdd()
1260 memcpy(tmp1, s[i].xc, sizeof(sal_uInt32) * s[i].m); in cmapAdd()
1261 memcpy(tmp2, s[i].xg, sizeof(sal_uInt32) * s[i].m); in cmapAdd()
1262 s[i].m += CMAP_PAIR_INCR; in cmapAdd()
1263 free(s[i].xc); in cmapAdd()
1264 free(s[i].xg); in cmapAdd()
1265 s[i].xc = tmp1; in cmapAdd()
1266 s[i].xg = tmp2; in cmapAdd()
1269 s[i].xc[s[i].n] = c; in cmapAdd()
1270 s[i].xg[s[i].n] = g; in cmapAdd()
1271 s[i].n++; in cmapAdd()
1385 sal_uInt32 i = 0; in ProcessTables() local
1413 assert(gd->newID == i); in ProcessTables()
1414 gid[i++] = gd->glyphID; in ProcessTables()
1449 i = 0; in ProcessTables()
1505 met[i].adv = gd->aw; in ProcessTables()
1506 met[i].sb = gd->lsb; in ProcessTables()
1507 i++; in ProcessTables()
1562 for (i = nGlyphs - 1; i > 0; i--) { in ProcessTables()
1563 if (met[i].adv != met[i-1].adv) break; in ProcessTables()
1565 nlsb = nGlyphs - 1 - i; in ProcessTables()
1571 for (i = 0; i < nGlyphs; i++) { in ProcessTables()
1572 if (i < nGlyphs - nlsb) { in ProcessTables()
1573 PutUInt16(met[i].adv, p1, 0, 1); in ProcessTables()
1574 PutUInt16(met[i].sb, p1, 2, 1); in ProcessTables()
1577 PutUInt16(met[i].sb, p1, 0, 1); in ProcessTables()
1608 unsigned int i; in TrueTypeTableDispose() local
1614 for(i=0; i < sizeof(vcl::vtable1)/sizeof(*vcl::vtable1); i++) { in TrueTypeTableDispose()
1615 if (_this->tag == vcl::vtable1[i].tag) { in TrueTypeTableDispose()
1616 vcl::vtable1[i].f(_this); in TrueTypeTableDispose()