private Printing.IPrintableDocument Compose(IEnumerable<string> aozoraText) { float contentHeight = _setting.FontSize * _setting.NumberOfRows; var importer = new IO.AozoraBunkoTextImporter(_latinWordMetric); importer.FontSizeByPoint = _setting.FontSize; var metaData = importer.GetMetaData(aozoraText); var paragraphs = importer.Import(aozoraText); var solver = new Solver(); var printableLines = solver.Layout(paragraphs, LineBreaking.Frame.Constant(contentHeight)); paragraphs = null; return new DynamicLayoutingData(metaData.Title, printableLines, _setting.Leading, _setting.NumberOfLines); }
private Printing.IPrintableDocument Compose(IEnumerable <string> aozoraText) { float contentHeight = _setting.FontSize * _setting.NumberOfRows; var importer = new IO.AozoraBunkoTextImporter(_latinWordMetric); importer.FontSizeByPoint = _setting.FontSize; var metaData = importer.GetMetaData(aozoraText); var paragraphs = importer.Import(aozoraText); var solver = new Solver(); var printableLines = solver.Layout(paragraphs, LineBreaking.Frame.Constant(contentHeight)); paragraphs = null; return(new DynamicLayoutingData(metaData.Title, printableLines, _setting.Leading, _setting.NumberOfLines)); }