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

Allow zip files to contain embedded fonts #2102

Merged
merged 1 commit into from
Jun 27, 2022
Merged

Allow zip files to contain embedded fonts #2102

merged 1 commit into from
Jun 27, 2022

Conversation

gpeal
Copy link
Collaborator

@gpeal gpeal commented Jun 27, 2022

ZIP files have never supported embedded typefaces. They relied on you setting your own via a FontAssetDelegate or having the font in assets/. Now, you can embed fonts in zip files. However, Android only lets you parse a Typeface from a File, not an InputStream which requires the LottieCompositionFactory zip APIs to require context now.

Fixes #2092

@LottieSnapshotBot
Copy link

Snapshot Tests
28: Report Diff

@gpeal gpeal merged commit 660d8d5 into master Jun 27, 2022
@gpeal gpeal deleted the gpeal/zip-fonts branch June 27, 2022 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

java.lang.RuntimeException: Font asset not found
2 participants