Lines Matching refs:n

246 _inline void *scalloc(size_t n, size_t size)  in scalloc()  argument
248 void *res = calloc(n, size); in scalloc()
408 _inline int XUnits(int unitsPerEm, int n) in XUnits() argument
410 return (n * 1000) / unitsPerEm; in XUnits()
532 sal_uInt8 flag, n; in GetSimpleTTOutline() local
569 n = *p++; in GetSimpleTTOutline()
570 for (j=0; j<n; j++) { in GetSimpleTTOutline()
628 F16Dot16 a = 0x10000, b = 0, c = 0, d = 0x10000, m, n, abs1, abs2, abs3; in GetCompoundTTOutline() local
761 n = (abs1 > abs2) ? abs1 : abs2; in GetCompoundTTOutline()
764 if (abs3 <= 33) n *= 2; in GetCompoundTTOutline()
779 ((double) n) / 65536); in GetCompoundTTOutline()
788 …t = fixedMulDiv(b, nextComponent[i].x << 16, n) + fixedMulDiv(d, nextComponent[i].y << 16, n) + (f… in GetCompoundTTOutline()
789 cp.y = (sal_Int16)(fixedMul(t, n) >> 16); in GetCompoundTTOutline()
1012 static char *nameExtract( const sal_uInt8* name, int nTableSize, int n, int dbFlag, sal_uInt16** uc… in nameExtract() argument
1016 const sal_uInt8* ptr = name + GetUInt16(name, 4, 1) + GetUInt16(name + 6, 12 * n + 10, 1); in nameExtract()
1017 int len = GetUInt16(name+6, 12 * n + 8, 1); in nameExtract()
1050 static int findname( const sal_uInt8 *name, sal_uInt16 n, sal_uInt16 platformID, in findname() argument
1053 int l = 0, r = n-1, i; in findname()
1057 if (n == 0) return -1; in findname()
1104 sal_uInt16 n = GetUInt16(table, 2, 1); in GetNames() local
1109 if( nTableSize <= n * 12 + 6 ) in GetNames()
1110 n = 0; in GetNames()
1114 if ((r = findname(table, n, 3, 1, 0x0409, 6)) != -1) in GetNames()
1116 if ( ! t->psname && (r = findname(table, n, 1, 0, 0, 6)) != -1) in GetNames()
1118 if ( ! t->psname && (r = findname(table, n, 3, 0, 0x0409, 6)) != -1) in GetNames()
1124 if ( ! t->psname && (r = findname(table, n, 2, 2, 0, 6)) != -1) in GetNames()
1153 if ((r = findname(table, n, 0, 0, 0, 1)) != -1) in GetNames()
1155 if ( ! t->family && (r = findname(table, n, 3, 1, 0x0409, 1)) != -1) in GetNames()
1157 if ( ! t->family && (r = findname(table, n, 1, 0, 0, 1)) != -1) in GetNames()
1159 if ( ! t->family && (r = findname(table, n, 3, 1, 0x0411, 1)) != -1) in GetNames()
1161 if ( ! t->family && (r = findname(table, n, 3, 0, 0x0409, 1)) != -1) in GetNames()
1171 if ((r = findname(table, n, 1, 0, 0, 2)) != -1) in GetNames()
1173 if ( ! t->subfamily && (r = findname(table, n, 3, 1, 0x0409, 2)) != -1) in GetNames()
1952 int n = 1; in GetTTGlyphComponents() local
1970 n += GetTTGlyphComponents(ttf, index, glyphlist); in GetTTGlyphComponents()
1988 return n; in GetTTGlyphComponents()
1998 int i, j, r, n; in CreateT3FromTTGlyphs() local
2091 n = BSplineToPSPath(pa, r, &path); in CreateT3FromTTGlyphs()
2093 n = 0; /* glyph might have zero contours but valid metrics ??? */ in CreateT3FromTTGlyphs()
2107 for (j = 0; j < n; j++) in CreateT3FromTTGlyphs()
2130 if (n > 0) fprintf(outf, "\tfill\n"); /* if glyph is not a whitespace character */ in CreateT3FromTTGlyphs()
2195 int n = GetTTNameRecords(ttf, &names); in CreateTTFromTTGlyphs() local
2196 name = TrueTypeTableNew_name(n, names); in CreateTTFromTTGlyphs()
2197 DisposeNameRecords(names, n); in CreateTTFromTTGlyphs()
2598 sal_uInt32 n; in GetTTSimpleGlyphMetrics() local
2602 n = ttf->numberOfHMetrics; in GetTTSimpleGlyphMetrics()
2606 n = ttf->numOfLongVerMetrics; in GetTTSimpleGlyphMetrics()
2612 …if (!n || !pTable) return 0; /* the font does not contain the requested metrics */ in GetTTSimpleGlyphMetrics()
2622 if (glyphID < n) { in GetTTSimpleGlyphMetrics()
2626 nAdvOffset = 4 * (n - 1); in GetTTSimpleGlyphMetrics()
2628 nLsbOffset = 4 * n + 2 * (glyphID - n); in GetTTSimpleGlyphMetrics()
2653 int i, n; in GetTTSimpleCharMetrics() local
2659 if ((n = MapString(ttf, str, nChars, 0, mode)) != -1) { in GetTTSimpleCharMetrics()
2660 res = GetTTSimpleGlyphMetrics(ttf, str, n, mode); in GetTTSimpleCharMetrics()
2763 int i, n, m; in GetTTRawGlyphData() local
2792 n = GetTTGlyphPoints(ttf, glyphID, &cp); in GetTTRawGlyphData()
2793 if( n > 0) { in GetTTRawGlyphData()
2795 for (i = 0; i < n; i++) { in GetTTRawGlyphData()
2798 d->npoints = (sal_uInt16)n; in GetTTRawGlyphData()
2831 sal_uInt16 n = GetUInt16(table, 2, 1); in GetTTNameRecords() local
2836 if (n == 0) return 0; in GetTTNameRecords()
2838 NameRecord* rec = (NameRecord*)calloc(n, sizeof(NameRecord)); in GetTTNameRecords()
2840 for (i = 0; i < n; i++) { in GetTTNameRecords()
2879 return n; in GetTTNameRecords()
2882 void DisposeNameRecords(NameRecord* nr, int n) in DisposeNameRecords() argument
2885 for (i = 0; i < n; i++) { in DisposeNameRecords()
3244 int r, i, j, n; in main() local
3252 if ((n = GetTTNameRecords(fnt, &nr)) == 0) { in main()
3257 printf("Number of name records: %d.\n", n); in main()
3258 for (i = 0; i < n; i++) { in main()
3267 DisposeNameRecords(nr, n); in main()