Home | History | Annotate | Download | only in tools

Lines Matching defs:out

77     FILE* out = fopen(outPath.c_str(), "w");
78 fprintf(out, "%s%s\n\n", gHeader, SkOSPath::Basename(__FILE__).c_str());
79 return out;
95 static void output_fixed(SkScalar num, int emSize, SkString* out) {
97 out->appendf("0x%08x,", hex);
98 *out += (int) last_line_length(*out) >= kMaxLineLength ? '\n' : ' ';
101 static void output_scalar(SkScalar num, int emSize, SkString* out) {
104 out->appendS32((int) num);
114 out->appendf("%sf", str.c_str());
116 *out += ',';
117 *out += (int) last_line_length(*out) >= kMaxLineLength ? '\n' : ' ';
217 static void output_font(SkTypeface* face, const char* name, SkTypeface::Style style, FILE* out) {
234 fprintf(out, "const SkScalar %sPoints[] = {\n", fontname);
236 fprintf(out, "%s", ptsOut.c_str());
237 fprintf(out, "\n};\n\n");
238 fprintf(out, "const unsigned char %sVerbs[] = {\n", fontname);
245 fprintf(out, "%u", verb);
248 fprintf(out, "%c", ',');
251 fprintf(out, "%c", '\n');
253 fprintf(out, "%c", ' ');
257 fprintf(out, "\n};\n\n");
261 fprintf(out, "const unsigned %sCharCodes[] = {\n", fontname);
265 fprintf(out, "%u", offset);
268 fprintf(out, "%c", ',');
271 fprintf(out, "%c", '\n');
273 fprintf(out, "%c", ' ');
277 fprintf(out, "\n};\n\n");
280 fprintf(out, "const SkFixed %sWidths[] = {\n", fontname);
285 fprintf(out, "%s\n};\n\n", widthsStr.c_str());
287 fprintf(out, "const int %sCharCodesCount = (int) SK_ARRAY_COUNT(%sCharCodes);\n\n",
292 fprintf(out, "const SkPaint::FontMetrics %sMetrics = {\n", fontname);
309 fprintf(out, "%s\n};\n\n", metricsStr.c_str());
330 FILE* out = nullptr;
334 out = font_header(fontDesc.fName);
348 output_font(resourceTypeface, fontDesc.fFont, fontDesc.fStyle, out);
354 fclose(out);
361 FILE* out = font_header("index");
373 fprintf(out,
382 fprintf(out, "\n");
384 fprintf(out, "static SkTestFontData gTestFonts[] = {\n");
391 fprintf(out,
398 fprintf(out, "};\n\n");
399 fprintf(out, "const int gTestFontsCount = (int) SK_ARRAY_COUNT(gTestFonts);\n\n");
400 fprintf(out,
414 fprintf(out,
420 fprintf(out,
424 fprintf(out, "};\n\n");
425 fprintf(out, "const int gSubFontsCount = (int) SK_ARRAY_COUNT(gSubFonts);\n\n");
427 fprintf(out, "const int gDefaultFontIndex = %d;\n", defaultIndex);
428 fclose(out);