Example #1
0
/* Dump FontMatrix. */
static void dumpFontMatrix(abfDumpCtx h, char *name, abfFontMatrix *FontMatrix)
	{
	if (!abfIsDefaultFontMatrix(FontMatrix))
		{
		/* Print values with higher precision than dumpRealArray() provides */
		int i;
		char *sep;
		fprintf(h->fp, "%-20s", name);
		sep = "{";
		for (i = 0; i < FontMatrix->cnt; i++)
			{
			fprintf(h->fp, "%s%.8g", sep, FontMatrix->array[i]);
			sep = ",";
			}
		fprintf(h->fp, "}\n");
		}
	}
Example #2
0
/* Save normal FontMatrix. */
static void saveFontMatrix(DICT *dict, abfFontMatrix *FontMatrix) {
	if (!abfIsDefaultFontMatrix(FontMatrix)) {
		saveRealArrayOp(dict, 6, FontMatrix->array, cff_FontMatrix);
	}
}