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

Feature request: support custom typefaces. #47

Closed
JediBurrell opened this issue Nov 12, 2018 · 1 comment
Closed

Feature request: support custom typefaces. #47

JediBurrell opened this issue Nov 12, 2018 · 1 comment

Comments

@JediBurrell
Copy link

No description provided.

@pulyaevskiy
Copy link
Contributor

Thanks for submitting.

Currently you should be able to set custom typefaces by configuring your own DefaultTextStyle. Something like this:

  Widget build(BuildContext context) {
    final style = TextStyle(fontFamily: 'Open Sans');
    return DefaultTextStyle.merge(
      style: style,
      child: ZefyrEditor(/* ... */),
    );
  }

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

No branches or pull requests

2 participants