Is there a way to load in custom fonts to fmBF? My client wants to use Korolev, note this is not a Google Font, it is an adobe font.
You sure can! Anywhere that you can find web fonts—whether it’s from Adobe, Google, or elsewhere—will provide you with an embed code that you have to inject into the header of your website. In BetterForms, you can add that embed code to your site using the DOM Header insertion section of the site settings > environment tab.
Once the font is installed there, it’s up to you to change the CSS to start using that font
Awesome! So I need to find a web version of it? I have a zip file from the client, or can I upload it to the web and then use it?
Web fonts usually have a different license, and they’re not the same font files that you probably have now. I can see that the font you’re looking for is on Adobe Fonts, but that does require a subscription to use it.
Ok cool, I will request this from the client and revert! Thank you!
Quick question on this, I have the webfoot css files for the font, do I past into the DOM the entire font css and the style css?
You’ll want to make sure to provide a link to the font CSS in your DOM Header Insertions. If you don’t have a link (just the actual CSS files), upload to a host somewhere, or use the Assets tab in FMBetterForms to upload files.
Is it not better to have it in the app as opposed to a link to a server somewhere. If the other server goes down or loads slows, would this affect performance?
No, using a CDN is really the best idea. Their whole purpose is to be fast, responsive, and have backups for those kinds of files so you never really hear about downtime ever. This is just how the web works
Another benefit of CDNs is that they allow separate cacheing of their files. Your font file doesn’t change, but your app will. If the font is loaded separate from the app, then your app changes, the browser will not re-download the font (just your app). So in many cases this can actually result in better performance.
I added the
Teko Google font to the DOM and it’s not working in my form. I followed examples on the web.
This is what’s in my DOM:
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Teko">
This is what’s in my form:
<p class="font-family: 'Teko', serif;">TEXT</p>
You’ve defined a style inside the class attribute. Either change that from
style or define a class with that style in your site’s CSS
Thank you so much. I learned the lesson hopefully.