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

The font changes when Math.tex is in a TextButton #81

Open
Francesco-FL opened this issue Aug 17, 2023 · 0 comments
Open

The font changes when Math.tex is in a TextButton #81

Francesco-FL opened this issue Aug 17, 2023 · 0 comments

Comments

@Francesco-FL
Copy link

Hi,
when I try to put Math.tex in a button, the font of the letters is automatically changed. Below is an image where on the left I created an InkWell with Math.tex (which maintains the classic Math.tex font), and on the right a TextButton with Math.tex

Screenshot_20230817-154841~2 (1)

As you can see the fonts are different, I would like the classic Math.tex font to be kept in a button as well, how can I do this?

InkWell( onTap: () {}, child: Align( alignment: Alignment.center, child: Math.tex( r"abc", ), ), ),

TextButton( onPressed: () => {}, child: Math.tex( r"abc", ), ),

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

No branches or pull requests

1 participant