Lines Matching refs:i
471 sal_uInt32 i; in HexFmtBlockWrite() local
479 for (i=0; i<size; i++) { in HexFmtBlockWrite()
480 Ch = ((sal_uInt8 *) ptr)[i]; in HexFmtBlockWrite()
534 int i, j, z; in GetSimpleTTOutline() local
557 for (i=0; i<numberOfContours; i++) { in GetSimpleTTOutline()
558 if ((t = GetUInt16(ptr, 10+i*2, 1)) > lastPoint) lastPoint = t; in GetSimpleTTOutline()
565 i = 0; in GetSimpleTTOutline()
566 while (i <= lastPoint) { in GetSimpleTTOutline()
567 pa[i++].flags = (sal_uInt32) (flag = *p++); in GetSimpleTTOutline()
571 if (i > lastPoint) { /*- if the font is really broken */ in GetSimpleTTOutline()
575 pa[i++].flags = flag; in GetSimpleTTOutline()
582 for (i = 0; i <= lastPoint; i++) { in GetSimpleTTOutline()
583 if (pa[i].flags & 0x02) { in GetSimpleTTOutline()
584 if (pa[i].flags & 0x10) { in GetSimpleTTOutline()
589 } else if ( !(pa[i].flags & 0x10)) { in GetSimpleTTOutline()
593 pa[i].x = (sal_Int16)z; in GetSimpleTTOutline()
598 for (i = 0; i <= lastPoint; i++) { in GetSimpleTTOutline()
599 if (pa[i].flags & 0x04) { in GetSimpleTTOutline()
600 if (pa[i].flags & 0x20) { in GetSimpleTTOutline()
605 } else if ( !(pa[i].flags & 0x20)) { in GetSimpleTTOutline()
609 pa[i].y = (sal_Int16)z; in GetSimpleTTOutline()
612 for (i=0; i<numberOfContours; i++) { in GetSimpleTTOutline()
613 pa[GetUInt16(ptr, 10 + i * 2, 1)].flags |= 0x00008000; /*- set the end contour flag */ in GetSimpleTTOutline()
627 int i, np; in GetCompoundTTOutline() local
782 for (i=0; i<np; i++) { in GetCompoundTTOutline()
785 cp.flags = nextComponent[i].flags; in GetCompoundTTOutline()
786 …t = fixedMulDiv(a, nextComponent[i].x << 16, m) + fixedMulDiv(c, nextComponent[i].y << 16, m) + (e… in GetCompoundTTOutline()
788 …t = fixedMulDiv(b, nextComponent[i].x << 16, n) + fixedMulDiv(d, nextComponent[i].y << 16, n) + (f… in GetCompoundTTOutline()
792 … fprintf(stderr, "( %d %d ) -> ( %d %d )\n", nextComponent[i].x, nextComponent[i].y, cp.x, cp.y); in GetCompoundTTOutline()
861 int i; in GetTTGlyphOutline() local
865 for (i=0; i<res; i++) { in GetTTGlyphOutline()
866 fprintf(out, "%c ", ((*pointArray)[i].flags & 0x8000) ? 'X' : '.'); in GetTTGlyphOutline()
867 fprintf(out, "%c ", ((*pointArray)[i].flags & 1) ? '+' : '-'); in GetTTGlyphOutline()
868 fprintf(out, "%d %d\n", (*pointArray)[i].x, (*pointArray)[i].y); in GetTTGlyphOutline()
1014 int i; in nameExtract() local
1032 for (i = 0; i < len/2; i++) res[i] = *(ptr + i * 2 + 1); in nameExtract()
1037 for (i = 0; i < len/2; i++ ) (*ucs2result)[i] = GetUInt16( ptr, 2*i, 1 ); in nameExtract()
1053 int l = 0, r = n-1, i; in findname() local
1063 i = (l + r) >> 1; in findname()
1064 t1 = GetUInt32(name + 6, i * 12 + 0, 1); in findname()
1065 t2 = GetUInt32(name + 6, i * 12 + 4, 1); in findname()
1067 if (! ((m1 < t1) || ((m1 == t1) && (m2 < t2)))) l = i + 1; in findname()
1068 if (! ((m1 > t1) || ((m1 == t1) && (m2 > t2)))) r = i - 1; in findname()
1105 int i, r; in GetNames() local
1138 for (i=strlen(t->psname) - 1; i > 0; i--) in GetNames()
1141 if (t->psname[i] == '.' ) { in GetNames()
1142 t->psname[i] = 0; in GetNames()
1186 for( i = 0; t->psname[i] != 0 && bPSNameOK; i++ ) in GetNames()
1187 if( t->psname[ i ] < 33 || (t->psname[ i ] & 0x80) ) in GetNames()
1195 for( i = 0; t->ufamily[ i ] != 0 && bReplace; i++ ) in GetNames()
1196 if( t->ufamily[ i ] < 33 || t->ufamily[ i ] > 127 ) in GetNames()
1326 sal_uInt16 i; in getGlyph4() local
1340 i = GEbinsearch(endCode, segCount, (sal_uInt16)c); in getGlyph4()
1342 if (i == (sal_uInt16) 0xFFFF) { in getGlyph4()
1347 if(Int16FromMOTA(startCode[i]) > c) { in getGlyph4()
1354 if(Int16FromMOTA(idRangeOffset[i]) != 0) { in getGlyph4()
1355 …c = Int16FromMOTA(*(&(idRangeOffset[i]) + (Int16FromMOTA(idRangeOffset[i])/2 + (c - Int16FromMOTA(… in getGlyph4()
1358 ToReturn = (Int16FromMOTA(idDelta[i]) + c) & 0xFFFF; in getGlyph4()
1398 unsigned int i; in FindCmap() local
1408 for (i = 0; i < ncmaps; i++) { in FindCmap()
1413 if( i*8+4 > table_size ) in FindCmap()
1416 pID = GetUInt16(table, 4 + i * 8, 1); in FindCmap()
1417 eID = GetUInt16(table, 6 + i * 8, 1); in FindCmap()
1418 offset = GetUInt32(table, 8 + i * 8, 1); in FindCmap()
1507 for( unsigned i = 0; i < ttf->nkern; ++i) { in GetKern() local
1508 ttf->kerntables[i] = ptr; in GetKern()
1527 for( unsigned i = 0; i < ttf->nkern; ++i) { in GetKern() local
1528 ttf->kerntables[i] = ptr; in GetKern()
1564 sal_uInt32 i, j; in KernGlyphsPrim2() local
1570 for (i = 0; i < (sal_uInt32)nglyphs - 1; i++) { in KernGlyphsPrim2()
1571 gpair = (glyphs[i] << 16) | glyphs[i+1]; in KernGlyphsPrim2()
1609 kern[i].x = XUnits(ttf->unitsPerEm, GetInt16(ptr, 4 + (l-1) * 6, 1)); in KernGlyphsPrim2()
1611 kern[i].y = XUnits(ttf->unitsPerEm, GetInt16(ptr, 4 + (l-1) * 6, 1)); in KernGlyphsPrim2()
1729 int i; in doOpenTTFont() local
1775 for (i=0; i<(int)t->ntables; i++) { in doOpenTTFont()
1777 tag = GetUInt32(t->ptr + tdoffset + 12, 16 * i, 1); in doOpenTTFont()
1800 sal_uInt32 nTableOffset = GetUInt32(t->ptr + tdoffset + 12, 16 * i + 8, 1); in doOpenTTFont()
1801 length = GetUInt32(t->ptr + tdoffset + 12, 16 * i + 12, 1); in doOpenTTFont()
1832 for (i=0; i<NUM_TAGS; i++) { in doOpenTTFont()
1839 if( (sal_uInt8*)t->tables[i] < t->ptr ) in doOpenTTFont()
1842 if( t->tables[i] ) in doOpenTTFont()
1843 …ont file %s has bad table offset %d (tagnum=%d)\n", t->fname, (sal_uInt8*)t->tables[i]-t->ptr, i ); in doOpenTTFont()
1845 t->tlens[i] = 0; in doOpenTTFont()
1846 t->tables[i] = NULL; in doOpenTTFont()
1848 else if( (sal_uInt8*)t->tables[i] + t->tlens[i] > t->ptr + t->fsize ) in doOpenTTFont()
1850 int nMaxLen = (t->ptr + t->fsize) - (sal_uInt8*)t->tables[i]; in doOpenTTFont()
1853 t->tlens[i] = nMaxLen; in doOpenTTFont()
1855 fprintf( stderr, "font file %s has too big table (tagnum=%d)\n", t->fname, i ); in doOpenTTFont()
1893 for( i = 0; i <= (int)t->nglyphs; ++i ) in doOpenTTFont()
1894 …t->goffsets[i] = indexfmt ? GetUInt32(table, i << 2, 1) : (sal_uInt32)GetUInt16(table, i << 1, 1) … in doOpenTTFont()
1998 int i, j, r, n; in CreateT3FromTTGlyphs() local
2078 for (i = 0; i < nGlyphs; i++) { in CreateT3FromTTGlyphs()
2079 fprintf(outf, h16, encoding[i], i); in CreateT3FromTTGlyphs()
2086 for (i = 0; i < nGlyphs; i++) { in CreateT3FromTTGlyphs()
2087 fprintf(outf, h33, i); in CreateT3FromTTGlyphs()
2088 … r = GetTTGlyphOutline(ttf, glyphArray[i] < ttf->nglyphs ? glyphArray[i] : 0, &pa, &metrics, 0); in CreateT3FromTTGlyphs()
2158 int i; in CreateTTFromTTGlyphs() local
2232 for (i = 0; i < nGlyphs; i++) { in CreateTTFromTTGlyphs()
2233 gID[i] = glyfAdd(glyf, GetTTRawGlyphData(ttf, glyphArray[i]), ttf); in CreateTTFromTTGlyphs()
2239 for (i=0; i < nGlyphs; i++) { in CreateTTFromTTGlyphs()
2240 cmapAdd(cmap, 0x010000, encoding[i], gID[i]); in CreateTTFromTTGlyphs()
2299 sal_uInt16 i, numTables = GetUInt16(sfntP, 4, 1); in GlyphOffsetsNew() local
2303 for (i = 0; i < numTables; i++) { in GlyphOffsetsNew()
2304 sal_uInt32 tag = GetUInt32(sfntP + 12, 16 * i, 1); in GlyphOffsetsNew()
2305 sal_uInt32 off = GetUInt32(sfntP + 12, 16 * i + 8, 1); in GlyphOffsetsNew()
2306 sal_uInt32 len = GetUInt32(sfntP + 12, 16 * i + 12, 1); in GlyphOffsetsNew()
2320 for (i = 0; i < res->nGlyphs; i++) { in GlyphOffsetsNew()
2322 res->offs[i] = GetUInt32(loca, i * 4, 1); in GlyphOffsetsNew()
2324 res->offs[i] = GetUInt16(loca, i * 2, 1) << 1; in GlyphOffsetsNew()
2341 sal_uInt16 i, numTables = GetUInt16(sfntP, 4, 1); in DumpSfnts() local
2355 for (i=0; i<numTables; i++) { in DumpSfnts()
2356 sal_uInt32 tag = GetUInt32(sfntP + 12, 16 * i, 1); in DumpSfnts()
2357 sal_uInt32 off = GetUInt32(sfntP + 12, 16 * i + 8, 1); in DumpSfnts()
2358 sal_uInt32 len = GetUInt32(sfntP + 12, 16 * i + 12, 1); in DumpSfnts()
2390 int i; in CreateT42FromTTGlyphs() local
2443 for (i = 0; i < nGlyphs; i++) { in CreateT42FromTTGlyphs()
2444 gID[i] = (sal_uInt16)glyfAdd(glyf, GetTTRawGlyphData(ttf, glyphArray[i]), ttf); in CreateT42FromTTGlyphs()
2471 for (i = 1; i<nGlyphs; i++) { in CreateT42FromTTGlyphs()
2472 fprintf(outf, "Encoding %d /glyph%d put\n", encoding[i], gID[i]); in CreateT42FromTTGlyphs()
2481 for (i = 1; i < (int)glyfCount(glyf); i++) { in CreateT42FromTTGlyphs()
2482 fprintf(outf,"/glyph%d %d def\n", i, i); in CreateT42FromTTGlyphs()
2498 int i; in MapString() local
2514 for( i = 0; i < nchars; i++ ) { in MapString()
2515 aChar = str[i]; in MapString()
2518 cp[i] = aChar; in MapString()
2538 for (i = 0; i < nchars; i++) { in MapString()
2539 cp[i] = (sal_uInt16)ttf->mapper(ttf->cmap, cp[i]); in MapString()
2540 if (cp[i]!=0 && bvertical!=0) in MapString()
2541 cp[i] = (sal_uInt16)UseGSUB(ttf,cp[i],bvertical); in MapString()
2618 for( int i = 0; i < nGlyphs; ++i) { in GetTTSimpleGlyphMetrics() local
2620 sal_uInt16 glyphID = glyphArray[i]; in GetTTSimpleGlyphMetrics()
2634 res[i].adv = 0; /* better than a crash for buggy fonts */ in GetTTSimpleGlyphMetrics()
2636 res[i].adv = static_cast<sal_uInt16>( in GetTTSimpleGlyphMetrics()
2640 res[i].sb = 0; /* better than a crash for buggy fonts */ in GetTTSimpleGlyphMetrics()
2642 res[i].sb = static_cast<sal_Int16>( in GetTTSimpleGlyphMetrics()
2653 int i, n; in GetTTSimpleCharMetrics() local
2658 for (i=0; i<nChars; i++) str[i] = (sal_uInt16)(firstChar + i); in GetTTSimpleCharMetrics()
2745 int i; in KernGlyphs() local
2749 for (i = 0; i < nglyphs-1; i++) kern[i].x = kern[i].y = 0; in KernGlyphs()
2763 int i, n, m; in GetTTRawGlyphData() local
2795 for (i = 0; i < n; i++) { in GetTTRawGlyphData()
2796 if (cp[i].flags & 0x8000) m++; in GetTTRawGlyphData()
2833 int i; in GetTTNameRecords() local
2840 for (i = 0; i < n; i++) { in GetTTNameRecords()
2841 int nStrOffset = GetUInt16(table + 6, 10 + 12 * i, 1); in GetTTNameRecords()
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()
2884 int i; in DisposeNameRecords() local
2885 for (i = 0; i < n; i++) { in DisposeNameRecords()
2886 if (nr[i].sptr) free(nr[i].sptr); in DisposeNameRecords()
2949 int i, r; in main() local
2960 for (i=0; i<224; i++) { in main()
2961 glyphs[i] = i; in main()
2962 encoding[i] = 32 + i; in main()
2990 int i, r; in main() local
2994 for (i=0; i<224; i++) { in main()
2995 glyphs[i] = i; in main()
3008 for (i=0; i<224; i++) { in main()
3009 printf("%d. advWid: %5d, LSBear: %5d\n", i, m[i].adv, m[i].sb); in main()
3025 int i, r; in main() local
3041 for (i=0; i<fnt->nkern; i++) { in main()
3042 printf("%04X ", GetUInt16(fnt->kerntables[i], 4, 1)); in main()
3053 for (i=0; i<fnt->nkern; i++) { in main()
3054 printf("%04X ", GetUInt16(fnt->kerntables[i], 4, 1)); in main()
3092 for (i = 0; i < 32; i++) { in main()
3093 if ((info.ur1 >> i) & 1) { in main()
3094 printf("\t\t\t%s\n", UnicodeRangeName(i)); in main()
3097 for (i = 0; i < 32; i++) { in main()
3098 if ((info.ur2 >> i) & 1) { in main()
3099 printf("\t\t\t%s\n", UnicodeRangeName(i+32)); in main()
3102 for (i = 0; i < 32; i++) { in main()
3103 if ((info.ur3 >> i) & 1) { in main()
3104 printf("\t\t\t%s\n", UnicodeRangeName(i+64)); in main()
3107 for (i = 0; i < 32; i++) { in main()
3108 if ((info.ur4 >> i) & 1) { in main()
3109 printf("\t\t\t%s\n", UnicodeRangeName(i+96)); in main()
3125 int r, i, k = 0; in main() local
3147 for (i = 0; i < k-1; i++) { in main()
3148 printf("%3d %3d: [%3d %3d]\n", g[i], g[i+1], d[i].x, d[i].y); in main()
3163 int r, i; in main() local
3168 for (i=0; i<256; i++) { in main()
3169 glyphs[i] = 512 + i; in main()
3170 encoding[i] = i; in main()
3174 i=0; in main()
3175 glyphs[i++] = 2001; in main()
3176 glyphs[i++] = 2002; in main()
3177 glyphs[i++] = 2003; in main()
3178 glyphs[i++] = 2004; in main()
3179 glyphs[i++] = 2005; in main()
3180 glyphs[i++] = 2006; in main()
3181 glyphs[i++] = 2007; in main()
3182 glyphs[i++] = 2008; in main()
3183 glyphs[i++] = 2009; in main()
3184 glyphs[i++] = 2010; in main()
3185 glyphs[i++] = 2011; in main()
3186 glyphs[i++] = 2012; in main()
3187 glyphs[i++] = 2013; in main()
3188 glyphs[i++] = 2014; in main()
3189 glyphs[i++] = 2015; in main()
3190 glyphs[i++] = 2016; in main()
3191 glyphs[i++] = 2017; in main()
3192 glyphs[i++] = 2018; in main()
3193 glyphs[i++] = 2019; in main()
3194 glyphs[i++] = 2020; in main()
3198 i = 0; in main()
3199 encoding[i++] = r++; in main()
3200 encoding[i++] = r++; in main()
3201 encoding[i++] = r++; in main()
3202 encoding[i++] = r++; in main()
3203 encoding[i++] = r++; in main()
3204 encoding[i++] = r++; in main()
3205 encoding[i++] = r++; in main()
3206 encoding[i++] = r++; in main()
3207 encoding[i++] = r++; in main()
3208 encoding[i++] = r++; in main()
3209 encoding[i++] = r++; in main()
3210 encoding[i++] = r++; in main()
3211 encoding[i++] = r++; in main()
3212 encoding[i++] = r++; in main()
3213 encoding[i++] = r++; in main()
3214 encoding[i++] = r++; in main()
3215 encoding[i++] = r++; in main()
3216 encoding[i++] = r++; in main()
3217 encoding[i++] = r++; in main()
3218 encoding[i++] = r++; in main()
3244 int r, i, j, n; in main() local
3258 for (i = 0; i < n; i++) { in main()
3259 … printf("%d %d %04X %d [", nr[i].platformID, nr[i].encodingID, nr[i].languageID, nr[i].nameID); in main()
3260 for (j=0; j<nr[i].slen; j++) { in main()
3261 printf("%c", isprint(nr[i].sptr[j]) ? nr[i].sptr[j] : '.'); in main()
3327 int r, i; in main() local
3336 for (i = 0; i < fnt->nglyphs; i++) { in main()
3337 r = GetTTGlyphComponents(fnt, i, glyphlist); in main()
3339 printf("%d -> ", i); in main()
3346 printf("%d: single glyph.\n", i); in main()