Fonts become italic

Dani_S 4,191 Reputation points
2025-03-10T15:23:18.23+00:00

Hi,

In Maui template we have:

fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");

fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");

Later I publish the app as exe.

When I create setup with installshield 2016 the app install successfully.

When uninstall it from control panel it removed successfully but the fonts of computer are italic.

When installing again the app the fonts become normal.

  1. What is the purposes of these fonts above-do we need it?
  2. Where the problem come from: Maui or Installshield?
  3. How the problem cab be solved ?

Thanks in advance,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,005 questions
0 comments No comments
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,166 Reputation points Microsoft External Staff
    2025-03-11T05:53:19.9366667+00:00

    Hello,

    I found an old thread from you - Fonts are italic when uninstalling unpackage maui app when using installshield - Microsoft Q&A

    What is the purposes of these fonts above-do we need it?

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

    True type format (TTF) and open type font (OTF) fonts can be added to your app and referenced by filename or alias, with registration being performed in the CreateMauiApp method in the MauiProgram class. This is accomplished by invoking the ConfigureFonts method on the MauiAppBuilder object. Then, on the IFontCollection object, call the AddFont method to add the required font to your app.

    Please see Fonts in .NET MAUI - .NET MAUI | Microsoft Learn

    Where the problem come from: Maui or Installshield? How the problem cab be solved ?

    I tried to uninstall an app on my Windows machine, the issue doesn't appear. InstallShield is a third-party component and is not supported on Q&A. You could report the issue to the official community of this plugin for further help.

    Best Regards,

    Wenyan Zhang


    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.


0 additional answers

Sort by: Most helpful

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.