Releases: ForNeVeR/xaml-math
XAML-Math v2.1.0
Changed
- AvaloniaMath is now based on (and thus compatible with) Avalonia 11.
Fixed
XAML-Math v2.0.0
Although a major release with certain formally breaking changes, these changes should hopefully not break any normal usage of the library (if the user code doesn't implement own IElementRenderer).
Changed
- (Breaking!) Avalonia: rename
AvaloniaBrushExtensionstoAvaloniaExtensions. - (Breaking!) WPF: rename
WpfBrushExtensionstoWpfExtensions. - (Breaking!)
IElementRendereris now required to implement a new method,RenderLine(required for the new\cancel*commands).
Added
jlm_msam10.ttffont with a lot of new characters, thanks @Orace, that closes the following requests:- New commands:
\cancel,\bcancel,\xcancel(partially addressing issue #349), thanks @Orace.
Fixed
XAML-Math v1.1.0
Fixed
- #387: Alignment issue in matrix with an empty cell, thanks @Orace.
- #389: Padding is not respected with
\cases, thanks @Orace.
Added
- #381: Support for
\begin{align}, thanks @Orace. - The README file is now packed into NuGet for better documentation.
XAML-Math v1.0.0
Changed
- The project has been renamed to XAML-Math. This doesn't change the NuGet package names (WpfMath and AvaloniaMath) and their contents (including namespaces of most entities), but changed the contents of the shared assembly.
- (Breaking change.)
WpfMath.Sharedassembly was renamed toXamlMath.Shared:- a lot of types were migrated from
WpfMathnamespace toXamlMath, - all the internal XML file resources were migrated to the new namespace as well.
- a lot of types were migrated from
- The
XamlMath.Sharedassembly has been extracted into a separately published NuGet package. - (Breaking change.) WPF-Math no longer supports .NET Framework 4.5.2, .NET Core 3.1 and .NET 5.0, because they are out of support by Microsoft. The only supported runtimes are:
- .NET Framework 4.6.2 or later,
- .NET 6.0 and later.
- (Breaking change.)
WpfMath.Colors.IColorParser::Parsenow acceptsIReadOnlyListinstead ofIEnumerable. - (Minor breaking change.)
XamlMath.Colors.StandardColorParsers::Dictionarystatic public field is nowreadonly. - (Minor breaking change.)
WpfMath.Rendering.WpfBrushFactory's constructor is nowprivate. - (Minor breaking change.)
WpfMath.Rendering.WpfBrushFactory::Instancestatic public field is nowreadonly.
Removed
- (Breaking change.) Delete the
TexRendererclass. Use extension methods fromWpfMath.Rendering.WpfTeXFormulaExtensionsandWpfMath.Rendering.TeXFormulaExtensionsto replace its functionality in your code.
Added
-
Avalonia version is now available! Install the AvaloniaMath NuGet package to get it.
It supports the following .NET variants:
- .NET Framework 4.6.2 or later,
- .NET Standard 2.0 or later,
- .NET 6.0 or later.
-
Portable PDB packages are now published to NuGet.
WPF-Math v0.13.1
WPF-Math v0.13.0
Changed
-
(Breaking change.) The library is now distributed in the form of two assemblies:
WpfMathandWpfMath.Shared(as a future cross-platform core of the library).Both of the assemblies are still distributed in the same NuGet package.
A lot of types were moved to
WpfMath.Sharedassembly (preserving their namespaces). -
(Breaking change.) It is no longer recommended to create instances of
TexEnvironmentusing the public constructor. UseWpfMath.Rendering.WpfTeXEnvironment::Createinstead. -
(Breaking change.) It is no longer recommended to create instances of
TexFormulaParserusing public constructors. UseWpfMath.Parsers.WpfTeXFormulaParser::Instanceinstead. -
(Breaking change.) WPF-specific
WpfMath.Rendering.IBrushhas been replaced withWpfMath.Rendering.IBrushin most of the public interfaces. UseWpfMath.Rendering.WpfBrushExtensionsto convert back and forth to the WPF type. -
(Breaking change.)
WpfMath.Rendering.IElementRendererhas been updated:RenderGlyphRunhas been replaced withRenderCharactermethod (not reliant on any WPF-specific types),RenderRectanglenow receives an instance of a newWpfMath.Rendering.Rectangletype (decoupled from WPF).
-
WpfMath.TexRendereris now obsolete. Consult the documentation on new recommended ways to perform custom rendering. There are new extension methods in two classes (WpfMath.Rendering.WpfTeXFormulaExtensionsandWpfMath.Rendering.TeXFormulaExtensions) that are the main way to render formulae now. -
(Breaking change.)
WpfMath.TexFormnula::GetRendereris gone. Create aTexRendererusing constructor (obsolete) or use the aforementioned extension methods instead.
Added
WpfMath.CharInfo: a new public type to work with a font character. UseWpfMath.Fonts.WpfCharInfoEx::GetGlyphRunif you need to get aSystem.Windows.Media.GlyphRunfrom it.WpfMath.Rendering.WpfTeXFormulaExtensionsto render aWpfMath.TexFormulainto aSystem.Windows.Media.Imaging.BitmapSourceorSystem.Windows.Media.Geometry.- New classes for WPF-Math porting to platforms other than WPF (consult the
WpfMath.Rendering.IElementRendererinterface andTexFormulaParserconstructor parameters to know more). WpfMath.Colors.RgbaColoras a new portable color representation.WpfMath.Fonts.IFontProvider: implement this interface to provide alternate font reading functionality.WpfMath.Fonts.ITeXFont: implement this interface to provide access to a platform-specific font resource.WpfMath.Rendering.IBrushFactory: implement this interface to provide access to creation of platform-specific solid-colored brushes.WpfMath.TeXFontMetricsthat contains some measurements of a font glyph.- An utility
Resultstruct is now public.
WPF-Math v0.12.0
Added
- TeX's environment support with only one environment for now:
\begin{pmatrix}(see #329).
Changed
- The project is now built on .NET 7 SDK and C# 11 (shouldn't change the supported framework set).
WPF-Math v0.11.0
WPF-Math v0.10.0
Changed
- (Breaking change!) Removed support for .NET Core 3.0. .NET Core 3.1 or later is supported from now (.NET Framework 4.5.2 is still supported; .NET 5.0 or later is supported, too).
Added
- #277: Enable nullable reference types
Fixed
- #99:
Foregroundproperty not working onFormulaControl - #283: Fix typo in
SystemTextFontNameProperty - #244:
\limsupthrows exception - #254: Fix for scripts with curly braces after a command with curly braces (e.g.
\hat{x}_{y}) - #261: Crash on empty
\sqrt{} - #275:
OverUnderBoxconstructor may dereference scriptBox parameter if it'snull
0.9.0
New features:
- #59: Extended delimiter support: e.g.
\left\\ - #149: Newline command support: try using
\\outside of a matrix - #252: Support for \{ and \} commands
Fixed issues:
- #139: Exception thrown by \,
- #151: Wrong sources detected for complex predefined formulae
- #248: Wrong exception gets thrown for \text{∅}
- #225: \text doesn't work with indices if there's only one Cyrillic letter
- #253: Added equal padding to all sides when saving to bitmap
- #257: IndexOutOfRangeException throws when using \color