Automatic Font Detection
The Plot’s Style class contains a method which automatically sets the fonts of common plot objects to the font most likely able to display the characters they contain.
ScottPlot.Plot myPlot = new();
var sig1 = myPlot.Add.Signal(Generate.Sin(phase: .1));
var sig2 = myPlot.Add.Signal(Generate.Sin(phase: .2));
var sig3 = myPlot.Add.Signal(Generate.Sin(phase: .3));
sig1.LegendText = "测试"; // Chinese
sig2.LegendText = "試験"; // Japanese
sig3.LegendText = "테스트"; // Korean
myPlot.ShowLegend();
myPlot.Title("测试"); // Chinese
myPlot.YLabel("試験"); // Japanese
myPlot.XLabel("테스트"); // Korean
myPlot.Font.Automatic(); // set font for each item based on its content
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Internationalization category
