What are the default fonts supported by Label in .NET MAUI?

Vijayadharshini M 20 Reputation points
2024-01-29T11:42:20.3033333+00:00

.NET MAUI Label has a property named FontFamily It accepts some of the default fonts (Arial, Time New Roman), which are not registered in the MAUI application. Can you please provided the list of default fonts that are supported in the Label control (or) how it takes fonts which are not registered in the MAUI app? has a property named FontFamily It accepts some of the default fonts (Arial, Time New Roman), which are not registered in the MAUI application. Can you please provided the list of default fonts that are supported in the label control (or) how it takes fonts which are not registered in the MAUI app?

Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-01-30T07:41:47.5+00:00

    Hello,

    Can you please provided the list of default fonts that are supported in the Label control (or) how it takes fonts which are not registered in the MAUI app?

    By default, .NET Multi-platform App UI (.NET MAUI) apps use the Open Sans font on each platform.

    Other fonts(use them directly without register) are system-integrated.

    On iOS, you can refer to System Fonts - Fonts - Apple Developer

    On Android, the following system fonts can be consumed by setting them as the value of the FontFamily property):

    • monospace
    • serif
    • sans-serif (or sansserif)
    • sans-serif-black (or sansserif-black)
    • sans-serif-condensed (or sansserif-condensed)
    • sans-serif-condensed-light (or sansserif-condensed-light)
    • sans-serif-light (or sansserif-light)
    • sans-serif-medium (or sansserif-medium)

    On Windows, you could refer to Windows 11 font list for system fonts.

    Best Regards, Leon Lu


    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.

    1 person found this answer helpful.
    0 comments No comments

Your answer

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