material-theme-builder icon indicating copy to clipboard operation
material-theme-builder copied to clipboard

Changing fonts breaks Android Schemes generation

Open PrattiDev opened this issue 3 years ago • 1 comments

Describe the bug Once two or three text styles have their fonts changed, the plugin will no longer be able to generate Android Schemes, and will crash when attempting to do so.

To Reproduce Steps to reproduce the behavior:

  1. Change the font of two or three text styles. In this case, I used Display/Large, Medium, Small, and changed their font to Manrope.
  2. Attempt to generate Android Schemes from the context menu of Figma.
  3. The plugin will launch but crash almost instantly.

The error shown is as follows:

chrome_9EN7clXyM3

Expected behavior Android Schemes should ideally, update automatically, as per #13 . However, in this instance, the plugin should at least generate Android Schemes and update those color styles regardless of the font chosen.

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows 11
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22] Version 97.0.4692.99 (Official Build) (64-bit)

PrattiDev avatar Jan 26 '22 21:01 PrattiDev

Yep this is a Figma issue I have been working on.

I am making sure to load the font but it still fails randomly.

Im working on improving the typography support

rodydavis avatar Feb 18 '22 19:02 rodydavis