Custom fonts not working when uploading Maui Android project to Play Store

Mujtaba Ali Panjwani 15 Reputation points
2024-05-21T16:58:13.6333333+00:00

I have added custom fonts in the font directory of my Maui project's Resources directory and updated the MauiProgram.cs file accordingly. The fonts work fine when I deploy the application using Visual Studio, but when I publish the app and upload it to Play Store, the custom fonts are not working at all. Can someone please help me with this issue?

Thank you.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,453 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,887 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Anton Moroder 0 Reputation points
    2024-05-29T12:34:47.2866667+00:00

    I solved the problem by publishing with visual studio version 17.10.0.

    0 comments No comments

  2. Dave 0 Reputation points
    2024-09-15T15:02:16.3433333+00:00

    @Norman Mackay "(happens randomly in debug too although several clean and rebuilds eventually fix this)." Unfortunate, but it works. Thank you.

    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.