Skip to content

BUG: FontAttributes="Bold" on iOS has no effect in .NET MAUI (x .NET 9.0) #28995

Open
@Auto72

Description

@Auto72

Description

The following XAML code doesn't set bold the text label on iOS:

<Label Text="Hello, World Bold!" HorizontalOptions ="Fill" FontAttributes="Bold" />

iOS (18.4)
Image

Android
Image

Windows
Image

Workaround:

        <Label x:Name="Label2Span">
            <Label.FormattedText>
                <FormattedString>
                    <Span Text="Hello, World Bold Workaround (FormattedText)" FontAttributes="Bold"/>
                </FormattedString>
            </Label.FormattedText>
        </Label>

Steps to Reproduce

Get the example here and run it on iOS
https://github.com/Auto72/MauiAppBoldTest

Link to public reproduction project repository

https://github.com/Auto72/MauiAppBoldTest

Version with bug

9.0.60 SR6

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    partner/syncfusionIssues / PR's with Syncfusion collaborationplatform/iOS 🍎platform/macOS 🍏macOS / Mac Catalysts/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions