amerkoleci/Vortice.Windows

[Help] Is there an easy way to convert Vortice.DirectWrite.FontWeight Windows.UI.Text.FontWeight

Closed this issue · 2 comments

Just found out built in fontweight is a struct. Do I need to use a switch to convert this or there's something more simple?

Please use discussion for this kind of question, anyway the answer is no but it isn't difficult to add that method by yourself, just cast the enum value to WinUI FontWeight value and you're good.

Please use discussion for this kind of question, anyway the answer is no but it isn't difficult to add that method by yourself, just cast the enum value to WinUI FontWeight value and you're good.

Thank you for your answer, just don't know how to use github