Hello,
Fonts in maui currently do not provide an API to directly modify the weight. MAUI provides several options for setting whether the font is bold or italic, but you can't specify specific properties.
Please refer to Fonts in .NET MAUI for more details.
FontAttributes, of type FontAttributes, which is an enumeration with three members: None, Bold, and Italic. The default value of this property is None.
For more font family property support, there are already related issues on GitHub, please stay tuned to [Enhancement] Add an API to handle font families properly #1018.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.