Skip to content
Merged
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
13 changes: 11 additions & 2 deletions Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@

if (width <= 0)
{
var formattedText = new FormattedText(str, CultureInfo.CurrentCulture, FlowDirection.LeftToRight, ((FontAdapter)font).Font, 96d / 72d * font.Size, Brushes.Red);

Check warning on line 125 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 9

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 125 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 9

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 125 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 10

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 125 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 10

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 125 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 10

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 125 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 10

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 125 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 8

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 125 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 8

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 125 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 9

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 125 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 9

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 125 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 8

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 125 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 8

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 125 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 8

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 125 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 8

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 125 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 9

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 125 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 9

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 125 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 10

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 125 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 10

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'
return new RSize(formattedText.WidthIncludingTrailingWhitespace, formattedText.Height);
}

Expand Down Expand Up @@ -164,7 +164,7 @@

if (!handled)
{
var formattedText = new FormattedText(str, CultureInfo.CurrentCulture, FlowDirection.LeftToRight, ((FontAdapter)font).Font, 96d / 72d * font.Size, Brushes.Red);

Check warning on line 167 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 9

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 167 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 9

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 167 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 10

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 167 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 10

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 167 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 10

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 167 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 10

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 167 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 8

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 167 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 8

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 167 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 9

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 167 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 9

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 167 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 8

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 167 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 8

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 167 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 8

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 167 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 8

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 167 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 9

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 167 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 9

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 167 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 10

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 167 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 10

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'
charFit = str.Length;
charFitWidth = formattedText.WidthIncludingTrailingWhitespace;
}
Expand Down Expand Up @@ -200,14 +200,23 @@
point.X += rtl ? 96d / 72d * font.Size * width : 0;

glyphRendered = true;
var glyphRun = new GlyphRun(glyphTypeface, rtl ? 1 : 0, false, 96d / 72d * font.Size, glyphs, Utils.ConvertRound(point), widths, null, null, null, null, null, null);
var wpfPoint = Utils.ConvertRound(point);
var glyphRun = new GlyphRun(glyphTypeface, rtl ? 1 : 0,

Check warning on line 204 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 9

'GlyphRun.GlyphRun(GlyphTypeface, int, bool, double, IList<ushort>, Point, IList<double>, IList<Point>, IList<char>, string, IList<ushort>, IList<bool>, XmlLanguage)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 204 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 9

'GlyphRun.GlyphRun(GlyphTypeface, int, bool, double, IList<ushort>, Point, IList<double>, IList<Point>, IList<char>, string, IList<ushort>, IList<bool>, XmlLanguage)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 204 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 10

'GlyphRun.GlyphRun(GlyphTypeface, int, bool, double, IList<ushort>, Point, IList<double>, IList<Point>, IList<char>, string, IList<ushort>, IList<bool>, XmlLanguage)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 204 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 10

'GlyphRun.GlyphRun(GlyphTypeface, int, bool, double, IList<ushort>, Point, IList<double>, IList<Point>, IList<char>, string, IList<ushort>, IList<bool>, XmlLanguage)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 204 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 10

'GlyphRun.GlyphRun(GlyphTypeface, int, bool, double, IList<ushort>, Point, IList<double>, IList<Point>, IList<char>, string, IList<ushort>, IList<bool>, XmlLanguage)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 204 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 10

'GlyphRun.GlyphRun(GlyphTypeface, int, bool, double, IList<ushort>, Point, IList<double>, IList<Point>, IList<char>, string, IList<ushort>, IList<bool>, XmlLanguage)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 204 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 8

'GlyphRun.GlyphRun(GlyphTypeface, int, bool, double, IList<ushort>, Point, IList<double>, IList<Point>, IList<char>, string, IList<ushort>, IList<bool>, XmlLanguage)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 204 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 8

'GlyphRun.GlyphRun(GlyphTypeface, int, bool, double, IList<ushort>, Point, IList<double>, IList<Point>, IList<char>, string, IList<ushort>, IList<bool>, XmlLanguage)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 204 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 9

'GlyphRun.GlyphRun(GlyphTypeface, int, bool, double, IList<ushort>, Point, IList<double>, IList<Point>, IList<char>, string, IList<ushort>, IList<bool>, XmlLanguage)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 204 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 9

'GlyphRun.GlyphRun(GlyphTypeface, int, bool, double, IList<ushort>, Point, IList<double>, IList<Point>, IList<char>, string, IList<ushort>, IList<bool>, XmlLanguage)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 204 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 8

'GlyphRun.GlyphRun(GlyphTypeface, int, bool, double, IList<ushort>, Point, IList<double>, IList<Point>, IList<char>, string, IList<ushort>, IList<bool>, XmlLanguage)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 204 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 8

'GlyphRun.GlyphRun(GlyphTypeface, int, bool, double, IList<ushort>, Point, IList<double>, IList<Point>, IList<char>, string, IList<ushort>, IList<bool>, XmlLanguage)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 204 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 8

'GlyphRun.GlyphRun(GlyphTypeface, int, bool, double, IList<ushort>, Point, IList<double>, IList<Point>, IList<char>, string, IList<ushort>, IList<bool>, XmlLanguage)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 204 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 8

'GlyphRun.GlyphRun(GlyphTypeface, int, bool, double, IList<ushort>, Point, IList<double>, IList<Point>, IList<char>, string, IList<ushort>, IList<bool>, XmlLanguage)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 204 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 9

'GlyphRun.GlyphRun(GlyphTypeface, int, bool, double, IList<ushort>, Point, IList<double>, IList<Point>, IList<char>, string, IList<ushort>, IList<bool>, XmlLanguage)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 204 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 9

'GlyphRun.GlyphRun(GlyphTypeface, int, bool, double, IList<ushort>, Point, IList<double>, IList<Point>, IList<char>, string, IList<ushort>, IList<bool>, XmlLanguage)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 204 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 10

'GlyphRun.GlyphRun(GlyphTypeface, int, bool, double, IList<ushort>, Point, IList<double>, IList<Point>, IList<char>, string, IList<ushort>, IList<bool>, XmlLanguage)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 204 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 10

'GlyphRun.GlyphRun(GlyphTypeface, int, bool, double, IList<ushort>, Point, IList<double>, IList<Point>, IList<char>, string, IList<ushort>, IList<bool>, XmlLanguage)' is obsolete: 'Use the PixelsPerDip override'
false, 96d / 72d * font.Size, glyphs,
wpfPoint, widths, null, null, null, null, null, null);

var guidelines = new GuidelineSet();
guidelines.GuidelinesX.Add(wpfPoint.X);
guidelines.GuidelinesY.Add(wpfPoint.Y);
_g.PushGuidelineSet(guidelines);
_g.DrawGlyphRun(colorConv, glyphRun);
_g.Pop();
}
}

if (!glyphRendered)
{
var formattedText = new FormattedText(str, CultureInfo.CurrentCulture, rtl ? FlowDirection.RightToLeft : FlowDirection.LeftToRight, ((FontAdapter)font).Font, 96d / 72d * font.Size, colorConv);

Check warning on line 219 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 9

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 219 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 9

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 219 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 10

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 219 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 10

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 219 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 10

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 219 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 10

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 219 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 8

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 219 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 8

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 219 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 9

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 219 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Ubuntu x64 .NET 9

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 219 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 8

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 219 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / macOS arm64 .NET 8

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 219 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 8

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 219 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 8

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 219 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 9

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 219 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 9

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 219 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 10

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'

Check warning on line 219 in Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs

View workflow job for this annotation

GitHub Actions / Windows x64 .NET 10

'FormattedText.FormattedText(string, CultureInfo, FlowDirection, Typeface, double, Brush)' is obsolete: 'Use the PixelsPerDip override'
point.X += rtl ? formattedText.Width : 0;
_g.DrawText(formattedText, Utils.ConvertRound(point));
}
Expand Down Expand Up @@ -318,4 +327,4 @@

#endregion
}
}
}