Skip to content

Inconsistent font rendering between Windows and MacOS / iOS #22019

Description

@andrew-vincer

Describe the bug

We have found that certain fonts, such as Arial Rounded MT Bold, do not appear correctly on MacOS or iOS despite being present on those platforms. They appear to have a glyph typeface of Helvetica instead.

To Reproduce

A small app, available at https://github.com/Smartbox-Assistive-Technology/Avalonia-Font-Test , shows the effect. When run on Windows it will show "The quick brown fox..." in a bold font, as it is correctly rendered in Arial Rounded MT Bold.

On MacOS or iOS this text appears in Helvetica. The debug text shown below is also different between the platforms, seeming to suggest that an incorrect (or more likely default) glyph typeface is used for this font.

Screenshots of the difference are below. Windows first (expected appearance), then iOS in the simulator (incorrect)

Image Image

Expected behavior

I note that this font is listed in the FontManager.Current.SystemFonts collection, so my expectation is that it should appear much the same on all platforms.

Avalonia version

12.1.1

OS

No response

Additional context

This issue came to light after porting part of our application from .NET iOS with UI Kit front end to Avalonia. This font is displayed correctly in UI Kit.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions