Lines Matching defs:out

63     FILE* out = fopen(outPath.c_str(), "w");
74 fprintf(out, "%s%s\n\n", kHeader, SkOSPath::Basename(__FILE__).c_str());
75 return out;
91 static void output_fixed(SkScalar num, int emSize, SkString* out) {
93 out->appendf("0x%08x,", hex);
94 *out += (int) last_line_length(*out) >= kMaxLineLength ? '\n' : ' ';
97 static void output_scalar(SkScalar num, int emSize, SkString* out) {
100 out->appendS32((int) num);
110 out->appendf("%sf", str.c_str());
112 *out += ',';
113 *out += (int) last_line_length(*out) >= kMaxLineLength ? '\n' : ' ';
192 static void output_font(sk_sp<SkTypeface> face, const char* identifier, FILE* out) {
204 fprintf(out, "const SkScalar %sPoints[] = {\n", identifier);
206 fprintf(out, "%s", ptsOut.c_str());
207 fprintf(out, "\n};\n\n");
208 fprintf(out, "const unsigned char %sVerbs[] = {\n", identifier);
215 fprintf(out, "%u", verb);
218 fprintf(out, "%c", ',');
221 fprintf(out, "%c", '\n');
223 fprintf(out, "%c", ' ');
227 fprintf(out, "\n};\n\n");
231 fprintf(out, "const SkUnichar %sCharCodes[] = {\n", identifier);
235 fprintf(out, "%u", offset);
238 fprintf(out, "%c", ',');
241 fprintf(out, "%c", '\n');
243 fprintf(out, "%c", ' ');
247 fprintf(out, "\n};\n\n");
250 fprintf(out, "const SkFixed %sWidths[] = {\n", identifier);
255 fprintf(out, "%s\n};\n\n", widthsStr.c_str());
257 fprintf(out, "const size_t %sCharCodesCount = SK_ARRAY_COUNT(%sCharCodes);\n\n",
262 fprintf(out, "const SkFontMetrics %sMetrics = {\n", identifier);
281 fprintf(out, "%s\n};\n\n", metricsStr.c_str());
291 FILE* out = nullptr;
293 out = font_header(family.fGenericName);
299 output_font(std::move(resourceTypeface), identifier(family, font).c_str(), out);
301 fclose(out);
317 FILE* out = font_header("index");
318 fprintf(out, "static SkTestFontData gTestFonts[] = {\n");
324 fprintf(out,
335 fprintf(out, "};\n\n");
336 fprintf(out,
353 fprintf(out,
364 fprintf(out,
372 fprintf(out, "};\n\n");
374 fprintf(out, "const size_t gDefaultFontIndex = %d;\n", defaultIndex);
375 fclose(out);