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

Support custom font family for codeblocks and inline code on Android #133

Merged
merged 2 commits into from
Jan 18, 2024

Conversation

tomekzaw
Copy link
Collaborator

Details

This PR changes the implementation of MarkdownFontFamilySpan so that it supports custom fonts on Android.

Related Issues

GH_LINK

Manual Tests

Linked PRs

@tomekzaw tomekzaw requested a review from robertKozik January 18, 2024 18:09
Comment on lines -7 to -9
public class MarkdownFontFamilySpan extends TypefaceSpan implements MarkdownSpan {
public MarkdownFontFamilySpan(@NonNull String fontFamily) {
super(fontFamily);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TypefaceSpan does not support custom fonts added by React Native so we need to come up with our own solution.

@tomekzaw tomekzaw merged commit 1617ec0 into main Jan 18, 2024
1 of 2 checks passed
@tomekzaw tomekzaw deleted the @tomekzaw/fix-android-monospace-custom-font branch January 18, 2024 21:31
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