Can a value be set on a Variable Font's set of available AXIS(s), programmatically, using managed code (C#)?

Kenny Brown 51 Reputation points
2021-10-07T03:41:31.13+00:00

Can a value be set on a Variable Font's set of available AXIS(s), programmatically, using managed code (C#)? Like in a TextBlock control used in XAML.

I know how to do this with Fonts in CSS and HTML5, but don't know if .NET5 (WinUI 3) is set up to handle AXIS(s) from Variable Fonts. I also know, there is an interface, DWriteCore, where I can get AXIS information, and even functions to draw to a Device Context using these values.

Just want to set up a Slider to adjust Axis(s) and display the results.

I'm trying to see, where this capability is in Managed Code (C#).

Thank you in advance, for any assistance.

Windows development | Windows App SDK
Developer technologies | .NET | .NET Runtime
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.