Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void GenerateSvgForLineCharts()
}

[TestMethod]
public void GenerateSvgForCharts_SecondaryAxis()
public void GenerateSuperScript()
{
ExcelPackage.License.SetNonCommercialOrganization("EPPlus Project");
using (var p = OpenTemplatePackage("ChartForSvg_SecondaryAxis.xlsx"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using EPPlus.DrawingRenderer.RenderItems.SvgItem;
using EPPlus.DrawingRenderer.Svg;
using EPPlus.Export.ImageRenderer.RenderItems.SvgItem;
using EPPlus.Fonts.OpenType;
using EPPlus.Fonts.OpenType.Integration.DataHolders;
using EPPlus.Graphics;
using System.Drawing;
Expand Down Expand Up @@ -120,7 +121,9 @@ private void GenerateTextBodyFile(string fileName, GroupRenderItem baseGroup, Sv

private SvgTextBodyRenderItem GenerateTextBody(GroupRenderItem baseGroup)
{
var textBody = new SvgTextBodyRenderItem(baseGroup.Bounds, true);
var engine = new OpenTypeFontEngine(x => x.SearchSystemDirectories = true);
var renderContext = new RenderContext(() => engine);
var textBody = new SvgTextBodyRenderItem(renderContext, baseGroup.Bounds, true);
var paragraph = textBody.AddParagraph("Hello");

paragraph.AddText(" There");
Expand Down Expand Up @@ -271,7 +274,9 @@ private RenderTextbox GenerateTextBox(out GroupRenderItem group)
group = GenerateGroupRenderItem();

var textbox = new RenderTextbox(group.Bounds, 500d, 500d);
textbox.TextBody = new SvgTextBodyRenderItem(group.Bounds, true);
var engine = new OpenTypeFontEngine(x => x.SearchSystemDirectories = true);
var rc = new RenderContext(() => engine);
textbox.TextBody = new SvgTextBodyRenderItem(rc, group.Bounds, true);
var paragraph = textbox.TextBody.AddParagraph("Hello");

paragraph.AddText(" There");
Expand Down
Loading
Loading