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

[Compose] Allow setting and remapping fonts #1842

Merged
merged 1 commit into from
Jul 15, 2021
Merged

[Compose] Allow setting and remapping fonts #1842

merged 1 commit into from
Jul 15, 2021

Conversation

gpeal
Copy link
Collaborator

@gpeal gpeal commented Jul 14, 2021

This PR adds 4 APIs to load typefaces in lottie-compose:

  1. Using default paths. Fonts are in /assets/fonts/FAMILY_NAME.ttf
  2. Overriding the assets subfolder or font file extension
  3. Remapping family names to font files in assets
  4. Dynamic properties

The dynamic properties API can also be used with lottie-android.

@LottieSnapshotBot
Copy link

Snapshot Tests
28: Report Diff

@gpeal gpeal merged commit f6a7569 into master Jul 15, 2021
@gpeal gpeal deleted the gpeal/fonts branch July 15, 2021 01:44
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.

2 participants