Simplify text formatting constructors by MrJul · Pull Request #20527 · AvaloniaUI/Avalonia (original) (raw)

This PR makes the fontFeatures parameter optional for the constructors of the following types:

For each of the above types, the other constructor without fontFeatures has been removed.

Doing so fixes the existing TODO12 comments for these types, and make them easier to use (seeing the differences between the two constructors with that many parameter isn't always obvious).

This PR also fixes another simple TODO12: the flowDirection parameter of TextCollapsingProperties.CreateCollapsedRuns has been removed.

namespace Avalonia.Media.TextFormatting { public class GenericTextRunProperties : Avalonia.Media.TextFormatting.TextRunProperties {