Skip to content

Default Fonts should be "Segoe UI, 9pt" in .NET6 and later #23

@harborsiem

Description

@harborsiem

First of all: You have done a great job with this project.

In some classes the DefaultFont is set to "Microsoft Sans Serif, 8pt". That is a relict from the .NET Framework. It should be changed to "Segoe UI, 9pt".
Here is a list of files with line numbers where to change:

System.Windows.Forms.DataVisualization\ChartWinControl.cs(1380): DefaultValue(typeof(Font), "Microsoft Sans Serif, 8pt"),
System.Windows.Forms.DataVisualization\Annotation\AnnotationBase.cs(842): DefaultValue(typeof(Font), "Microsoft Sans Serif, 8pt"),
System.Windows.Forms.DataVisualization\Annotation\GroupAnnotation.cs(284): DefaultValue(typeof(Font), "Microsoft Sans Serif, 8pt"),
System.Windows.Forms.DataVisualization\Annotation\ImageAnnotation.cs(286): DefaultValue(typeof(Font), "Microsoft Sans Serif, 8pt"),
System.Windows.Forms.DataVisualization\Annotation\LineAnnotation.cs(214): DefaultValue(typeof(Font), "Microsoft Sans Serif, 8pt"),
System.Windows.Forms.DataVisualization\Annotation\PolygonAnnotation.cs(208): DefaultValue(typeof(Font), "Microsoft Sans Serif, 8pt"),
System.Windows.Forms.DataVisualization\Annotation\TextAnnotation.cs(119): DefaultValue(typeof(Font), "Microsoft Sans Serif, 8pt"),
System.Windows.Forms.DataVisualization\General\Axis.cs(821): DefaultValue(typeof(Font), "Microsoft Sans Serif, 8pt"),
System.Windows.Forms.DataVisualization\General\Chart.cs(3181): // Find the "Microsoft Sans Serif" font
System.Windows.Forms.DataVisualization\General\Chart.cs(3184): if (fontFamily.Name == "Microsoft Sans Serif")
System.Windows.Forms.DataVisualization\General\Label.cs(2444): DefaultValue(typeof(Font), "Microsoft Sans Serif, 8pt"),
System.Windows.Forms.DataVisualization\General\Legend.cs(3269): DefaultValue(typeof(Font), "Microsoft Sans Serif, 8pt"),
System.Windows.Forms.DataVisualization\General\Legend.cs(3674): DefaultValue(typeof(Font), "Microsoft Sans Serif, 8pt, style=Bold"),
System.Windows.Forms.DataVisualization\General\LegendColumns.cs(523): DefaultValue(typeof(Font), "Microsoft Sans Serif, 8pt, style=Bold"),
System.Windows.Forms.DataVisualization\General\StripLine.cs(1323): DefaultValue(typeof(Font), "Microsoft Sans Serif, 8pt"),
System.Windows.Forms.DataVisualization\General\Title.cs(833): DefaultValue(typeof(Font), "Microsoft Sans Serif, 8pt"),
WinForms.DataVisualization.Designer.Client\TypeEditors\KeywordsStringEditorForm.cs(374): string resultRtf = @"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}}\r\n";

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions