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 App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
749 questions
C#
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.
10,602 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,137 questions
{count} votes