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

feat: Added support for font family using fonts from assets and G-Fonts #172

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

i-asimkhan
Copy link
Contributor

Description

Added support for font family using fonts from assets and G-Fonts

Related Issues

Closes #118

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Code refactor
  • Build configuration change
  • Documentation
  • Chore

@i-asimkhan
Copy link
Contributor Author

Hey @RodolfoSilva I have come up with something called MiraiFontFamily

class MiraiFontFamily with _$MiraiFontFamily {

This is great because it detects whether to load the font from the assets or through http (google_fonts)

@RodolfoSilva
Copy link
Contributor

Hey @RodolfoSilva I have come up with something called MiraiFontFamily

class MiraiFontFamily with _$MiraiFontFamily {

This is great because it detects whether to load the font from the assets or through http (google_fonts)

I loved this solution @i-asimkhan . It's more extensible...

Copy link
Contributor

@RodolfoSilva RodolfoSilva left a comment

Choose a reason for hiding this comment

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

LGTM!

Signed-off-by: Divyanshu Bhargava <divyanshub024@gmail.com>
Copy link
Contributor

@divyanshub024 divyanshub024 left a comment

Choose a reason for hiding this comment

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

@i-asimkhan Can we remove the Lisu font and only keep the Handjet(Regular, medium & bold)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Add support for fontFamily in MiraiTheme
3 participants