Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resizetizer no longer applies fonts #23151

Open
NatWobble opened this issue Jun 20, 2024 · 5 comments
Open

Resizetizer no longer applies fonts #23151

NatWobble opened this issue Jun 20, 2024 · 5 comments
Labels
area-fonts Custom fonts and Font related API's area-single-project Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer platform/android 🤖 platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst potential-regression This issue described a possible regression on a currently supported version., verification pending s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@NatWobble
Copy link

NatWobble commented Jun 20, 2024

Description

PNGs generated from SVGs with embedded text are no longer rendered with the correct font. I jumped from Maui version 8.0.7, which was OK, to 8.0.20, which is when I first noticed the issue. It is also an issue with 8.0.40. I don't have versions 8.0.10 or 8.0.14 installed to test those.

By adding the following into my project I can easily get the fonts to render correctly again:

<MauiVersion>8.0.7</MauiVersion>

See the following shots, one rendered correctly with Comic Sans, the other without:

Screenshot 2024-06-20 at 13 02 43 Screenshot 2024-06-20 at 13 01 45

I am using a Mac. It occurs when building with both Rider and from the CLI.

Steps to Reproduce

Include an SVG file with font text.

Link to public reproduction project repository

No response

Version with bug

8.0.20 SR4

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

8.0.7 SR2

Affected platforms

iOS, Android, macOS

Affected platform versions

No response

Did you find any workaround?

Rollback by adding the following to your project:

<MauiVersion>8.0.7</MauiVersion>

Versions 8.0.10 and 8.0.14 are untested.

Relevant log output

No response

@NatWobble NatWobble added the t/bug Something isn't working label Jun 20, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@jfversluis jfversluis added s/needs-repro Attach a solution or code which reproduces the issue area-single-project Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer labels Jun 20, 2024
@jfversluis
Copy link
Member

Hey @NatWobble thanks for the report! It would be very helpful if you could provide us with a reproduction project that shows this behavior so we can see what the specifics are to how you fit this all together.

Thanks!

@mkArtakMSFT mkArtakMSFT added s/needs-repro Attach a solution or code which reproduces the issue and removed s/needs-repro Attach a solution or code which reproduces the issue labels Jun 20, 2024
@NatWobble
Copy link
Author

NatWobble commented Jun 21, 2024

Hi @jfversluis

Here is a test project:

MauiSvgFontTest.zip

I looked at the SVG in a text editor and it references the fonts so you need them installed on your computer, but I used common fonts. The file is font_test.svg in the resources folder.

I used Affinity designer to export the SVG. A work around would be to convert the fonts to paths in the SVG, but I have confirmed that it worked without doing that up until at least 8.0.7 both building on Windows and on Mac.

Here are some new screenshots, the 1st is a screen shot of the SVG in Finder where the Roboto Bold Italic is rendered correctly, then with 8.0.7 where everything but the Roboto Bold Italic is OK and then using 8.0.40 where nothing is rendered correctly.
It is the same in the Android and iOS sims.
Screenshot 2024-06-21 at 09 49 46
Screenshot 2024-06-21 at 09 58 29
Screenshot 2024-06-21 at 09 57 26

Thanks!

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-repro Attach a solution or code which reproduces the issue labels Jun 21, 2024
@jfversluis jfversluis added area-fonts Custom fonts and Font related API's i/regression This issue described a confirmed regression on a currently supported version and removed s/needs-attention Issue has more information and needs another look labels Jun 21, 2024
@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jun 21, 2024
@Zhanglirong-Winnie
Copy link

Zhanglirong-Winnie commented Jun 21, 2024

This issue repro on Visual Studio 17.11.0 Preview 2.1 (8.0.40 & 8.0.7 & 8.0.3).

@Zhanglirong-Winnie Zhanglirong-Winnie removed the i/regression This issue described a confirmed regression on a currently supported version label Jun 21, 2024
@samhouts samhouts added platform/macOS 🍏 macOS / Mac Catalyst platform/android 🤖 platform/iOS 🍎 potential-regression This issue described a possible regression on a currently supported version., verification pending labels Jun 26, 2024
@samhouts samhouts removed s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 3, 2024
@samhouts samhouts added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 10, 2024
@BaY1251
Copy link

BaY1251 commented Oct 21, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-fonts Custom fonts and Font related API's area-single-project Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer platform/android 🤖 platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst potential-regression This issue described a possible regression on a currently supported version., verification pending s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants