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

Cannot load custom font #1616

Open
tudorsirbu opened this issue Oct 4, 2024 · 2 comments
Open

Cannot load custom font #1616

tudorsirbu opened this issue Oct 4, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@tudorsirbu
Copy link

tudorsirbu commented Oct 4, 2024

Description
Hello,

I have tried to update from compose-bom version 2023.10.01 to 2024.01.00 and all of a sudden some of my snapshot tests (using Paparazzi) started failing. Upon inspecting the stacktrace it seems it's because it couldn't load the custom fonts we have in this project.

I've dug through release notes and recent changes but I cannot see why that is happening. Does anyone have any clue/suggestion of what might be going on? 🤔

The fonts are under /res/folder in the project. If I load the previews in Android Studio I can see them loaded fine.

Steps to Reproduce
I have also attached an example of the stacktrace from one of the tests.

Expected behavior
A clear and concise description of what you expected to happen.

Additional information:

  • Paparazzi Version: 1.3.1, 1.3.3
  • OS:
  • Compile SDK: 34
  • Gradle Version: 8.7.0 (also the same problem on 8.5.1)

Screenshots
I have attached screenshots of a sample test and an extension we use to run the test.

Screenshot 2024-10-04 at 09 16 49 Screenshot 2024-10-04 at 09 17 19
@tudorsirbu tudorsirbu added the bug Something isn't working label Oct 4, 2024
@tudorsirbu
Copy link
Author

tudorsirbu commented Oct 4, 2024

The stacktrace from one of the failing tests:

Authentication Snapshot Tests Student Sign Up output.txt

@cbruegg
Copy link

cbruegg commented Oct 4, 2024

Paparazzi 1.3.5-SNAPSHOT has some fixes regarding font loading from my understanding, you could try it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants