for (int i = 0; i < includedFiles.length; i++)
{
String filename = includedFiles[i];
File absoluteFile = new File(filesetBaseDir, filename);
File destinationFile = new File(toDir, m.mapFileName(filename)[0]);
MathBase base = null;
float baseline = 0;
SVGGraphics2D canvas = null;
Document inputDocument;
try {
inputDocument = MathMLParserSupport.parseFile(absoluteFile);
Map<ParameterKey, String> params = MathBase.getDefaultParameters();
params.put(ParameterKey.FontSize, ((Integer) m_size).toString());
params.put(ParameterKey.OutFileType, "image/svg+xml");
// Font f = new Font(m_font, Font.PLAIN, m_size);
base = MathMLParserSupport.createMathBaseFromDocument(inputDocument, params);
DOMImplementation domImpl = SVGDOMImplementation.getDOMImplementation();
Document outputDocument = domImpl.createDocument(null, "svg", null);
canvas = new SVGGraphics2D(outputDocument);
baseline = base.getDescender(canvas);
float width = base.getWidth(canvas);
float height = base.getHeight(canvas);
Dimension d = new Dimension();
d.setSize(width, height);
canvas.setSVGCanvasSize(d);
base.paint(canvas);
} catch (SAXException e) {
log("Error reading file " + absoluteFile.getName(), Project.MSG_WARN);
} catch (IOException e) {
log("Error reading file " + absoluteFile.getName(), Project.MSG_WARN);