From d4aa32f4cb6f0a8ad2c3381b2aa0e59134a9fd91 Mon Sep 17 00:00:00 2001 From: Friedrich von Never Date: Wed, 25 Jan 2023 22:32:20 +0100 Subject: [PATCH] (#63) WpfCharInfoEx: make public Custom IElementRenderers may use it. --- src/WpfMath.ApiTest/api/WpfMath.net452.verified.cs | 7 +++++++ src/WpfMath.ApiTest/api/WpfMath.netcoreapp3.1.verified.cs | 7 +++++++ src/WpfMath/Fonts/WpfCharInfoEx.cs | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/WpfMath.ApiTest/api/WpfMath.net452.verified.cs b/src/WpfMath.ApiTest/api/WpfMath.net452.verified.cs index 609bc269..5dc050f9 100644 --- a/src/WpfMath.ApiTest/api/WpfMath.net452.verified.cs +++ b/src/WpfMath.ApiTest/api/WpfMath.net452.verified.cs @@ -83,6 +83,13 @@ public SVGConverter() { } public string ConvertGeometry(System.Windows.Media.Geometry geometry) { throw null; } } } +namespace WpfMath.Fonts +{ + public static partial class WpfCharInfoEx + { + public static System.Windows.Media.GlyphRun GetGlyphRun(this WpfMath.CharInfo info, double x, double y, double scale) { throw null; } + } +} namespace WpfMath.Parsers { public static partial class WpfTeXFormulaParser diff --git a/src/WpfMath.ApiTest/api/WpfMath.netcoreapp3.1.verified.cs b/src/WpfMath.ApiTest/api/WpfMath.netcoreapp3.1.verified.cs index fb97f4b4..2e8a0ca8 100644 --- a/src/WpfMath.ApiTest/api/WpfMath.netcoreapp3.1.verified.cs +++ b/src/WpfMath.ApiTest/api/WpfMath.netcoreapp3.1.verified.cs @@ -83,6 +83,13 @@ public SVGConverter() { } public string ConvertGeometry(System.Windows.Media.Geometry geometry) { throw null; } } } +namespace WpfMath.Fonts +{ + public static partial class WpfCharInfoEx + { + public static System.Windows.Media.GlyphRun GetGlyphRun(this WpfMath.CharInfo info, double x, double y, double scale) { throw null; } + } +} namespace WpfMath.Parsers { public static partial class WpfTeXFormulaParser diff --git a/src/WpfMath/Fonts/WpfCharInfoEx.cs b/src/WpfMath/Fonts/WpfCharInfoEx.cs index 0d47d9ca..62c2b699 100644 --- a/src/WpfMath/Fonts/WpfCharInfoEx.cs +++ b/src/WpfMath/Fonts/WpfCharInfoEx.cs @@ -8,7 +8,7 @@ namespace WpfMath.Fonts; -internal static class WpfCharInfoEx +public static class WpfCharInfoEx { public static GlyphRun GetGlyphRun(this CharInfo info, double x, double y, double scale) {