dotnet / dotnet/maui

Maui Windows Native AOT custom font

Open
#37,455 8 comments 2 reactions 0 assignees View on GitHub
partner/syncfusion platform/windows s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 14h
Merged PRs (30d)
296

Description

### Description

The custom font feature is not working on windows for template project if Native AOT is turned on.

### Steps to Reproduce

1. Create a new project.
2. Add native AOT as true in csproj file.

### Link to public reproduction project repository

_No response_

### Version with bug

10.0.90

### Is this a regression from previous behavior?

No, this is something new

### Last version that worked well

Unknown/Other

### Affected platforms

Windows

### Affected platform versions

Windows 11

### Did you find any workaround?

Turned off native AOT

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Research direction

Start with a new .NET MAUI template project on Windows 11, add Native AOT in its .csproj file, and reproduce the custom-font failure. Compare the Native AOT and non-AOT build output to identify where the font stops working; done means the template's custom font works with Native AOT enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.