Ejemplo n.º 1
0
	void Generator::GenerateFontFile(
		astring fontPath,
		astring textPath)
	{
		auto result = RenderPng(fontPath, textPath);

		BinaryWriter writer;
		PushAff(writer, result);

#ifdef _WIN32
		ofstream file(m_sheetName + L".aff", ios::out | ios::binary);
#else
		ofstream file(ToUtf8String(m_sheetName.c_str()) + ".aff", ios::out | ios::binary);
#endif

		writer.WriteOut(file);
	}