This is unnecessary as figma already injects/defines Inter in plugin iframe:
Since the introduction of plugin network restrictions, it also forces plugin authors to add fonts.googleapis.com (and fonts.gstatic.com) to manifest allowedDomains to avoid network errors on the font request (but even without, the text is properly rendered because the fontface is injected by figma, pointing to static.figma.com allowed hosting).
Hi,
default css injected by create-figma-plugin-ui
base.css
will importInter
font from googleapis: https://github.com/yuanqing/create-figma-plugin/blob/8f5246aa76899f081f9cf89b1a7b59a1b449fb3a/packages/ui/src/css/base.css#L1This is unnecessary as figma already injects/defines Inter in plugin iframe:![image](https://github.com/yuanqing/create-figma-plugin/assets/604263/5e030d55-50e6-4296-9ade-122ad4ec88ad)
Since the introduction of plugin network restrictions, it also forces plugin authors to add
fonts.googleapis.com
(andfonts.gstatic.com
) to manifestallowedDomains
to avoid network errors on the font request (but even without, the text is properly rendered because the fontface is injected by figma, pointing tostatic.figma.com
allowed hosting).Can we remove it ?
Thanks.