Adding Custom Fonts to BloX Widgets
Published 04-28-2023
Hi GuyY DRay Liliia_DevX ,
I am trying to understand this documentation. On my size, I am trying to add 'Lato' font from Google . I have updated the .css file with:
/* font import examples /*
/* importing local font files */
@font-face {
font-family: 'Lato';
src: url('/branding/bpd/Lato/Lato-Regular.ttf');
font-weight:normal;
font-style:normal;
}
.actions {
/* defining the font used for container1 */
font-family: 'Lato Regular', monospace;
}
I also have the Lato_regular.ttf file along with several other Lato.ttf files. Now I am trying to understand this part:
"style": "@import url('/branding/bpd/Lato/SetFonts.css');",
because I am just the JTD BloX action button, so do I add this style to the BloX configuration -> action -> style or is this the style at the top of the BloX?