Hello! I have a question about my custom component and custom font inside. I am trying to build Bryntum chart into Retool Custom component. Bryntum uses its own font 'fa-solid-900.woff2'. When I try to start this chart on local machine - everything is good, cause this font is near my css file and they are connected. When I try to push the Custom component to Retool, the font becomes broken. Is it a way to connect this custom font to my Retool Custom Component? Or can I replace their font with another one (maybe from Google Fonts)? I think, there must be a list of fonts approved by Retool. Thank you!
Hi @MrOlegyou - have you tried building the custom component in Retool directly with the font provided? That may be helpful to then build out your current set up.
I have just tried this and can see the bullet points - here a screenshot of the script and the custom component
Hey @Alice, thank you for your response! Your idea is very helpful. I develop React Custom Component and it is another feature of Retool (not the iFrame code from your screen). However, I tried to connect the font not from the file, but from the CDN link. It helped. Moral of the story: right now Retool can't work with font-files, but we can connect the font using the settings of Retool or CSS of any Custom Component.
This is what I have added to my React and TypeScript files.
For example, in Bryntum components, the themes are available by default in the node_modules and to make them work with Retool, one has to copy from node_modules and replace the local paths with CDN links.
Hi @khattakdev The new custom components you develop locally on your machine and publish them to your Retool instance. So in development you would have access to whatever CSS files you're using. For legacy custom components that use cdn links, the Retool instance cloud or self-hosted would just generally need access to wherever the CSS files are. That's probably not the case for local CSS files on your computer, so you'd need to copy/paste in whatever CSS you want to use in your component.