michaelalanherrera Posted March 7, 2018 Report Share Posted March 7, 2018 I want to add the Roboto font to my DataPage as a custom font. How do I do that? Quote Link to comment Share on other sites More sharing options...
0 thirdcharm Posted March 9, 2018 Report Share Posted March 9, 2018 Hi michaelalanherrera, 1. Go to your DataPage > create Header/Footer. In the header, click "Source" and insert this code: <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> Reference to Roboto font: https://fonts.google.com/specimen/Roboto?selection.family=Roboto 2. Go to your Styles, use and add the following CSS rules to specify these families: font-family: 'Roboto', sans-serif; Let me know if this helped you. Quote Link to comment Share on other sites More sharing options...
0 IMTanuki Posted March 16, 2018 Report Share Posted March 16, 2018 @thirdcharm Thanks for this info. - I added the CSS in Styles / Data / .cbResultSetData class - is that generally correct? - This works on desktop, but not mobile. However, I haven't set up responsive functions yet (I would have thought that Caspo would be fully responsive OOTB). In your experience, do fonts in Caspio need to be set up : - for each Styles Element Type AND class? - separately for mobile and tablet form factors? Thanks! Quote Link to comment Share on other sites More sharing options...
0 Kurumi Posted January 31, 2023 Report Share Posted January 31, 2023 Hi! Just sharing this tip. You can also use Font icons such as Font Awesome for labels. To apply in the DataPage, follow these steps: 1. Insert Header and Footer. In the Header, insert the installation CDN <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" /> <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/js/all.min.js"></script> 2. Search your icon here: https://fontawesome.com/v5/search?o=r&m=free&s=solid 3. Copy code snippets such as <i class="fas fa-users"></i> 4. Paste the code in Labels or any HTML code where you like to add an icon. Sample Result: References: - https://fontawesome.com/ - https://cdnjs.com/libraries/font-awesome Quote Link to comment Share on other sites More sharing options...
0 Kurumi Posted June 30, 2023 Report Share Posted June 30, 2023 Hi! In addition to having Font icons such as Font Awesome for labels, you can also apply this in the Header in the Results Page of Report DataPage. To apply in the DataPage, follow these steps: 1. Insert Header and Footer. In the Header, insert the installation CDN <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" /> <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/js/all.min.js"></script> 2. Search your icon here: https://fontawesome.com/v5/search?o=r&m=free&s=solid 3. Copy code snippets such as <i class="fas fa-users"></i> 4. Paste the code in Labels in the Header where you like to add an icon. Result: Quote Link to comment Share on other sites More sharing options...
Question
michaelalanherrera
I want to add the Roboto font to my DataPage as a custom font. How do I do that?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.