Fonts for my html report template in appsheet

Hello everyone!
I'm trying to add fonts from google font to an html template that I then transform into a pdf, and when adding the @import between my style tags I get this error:
"Run task "Task for Enviomail"
Error 1 : Task 'Enviomail' Body template. Template could not be loaded due to exception: '=' is an unexpected token. The expected token is ';'. Line 9, position 134.
Error 2 : The document body is empty"

any ideas? I leave the @import tag that I am using:
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700...');

Solved Solved
0 6 303
1 ACCEPTED SOLUTION


@datijoaquin wrote:

am currently investigating how far it can go


Almost no limits actually.
I'm looking for dificult template use cases! - Google Cloud Community
Part 1 - Almost pixel perfect pdf reports from aut... - Google Cloud Community
Part 2: Pixel perfect paginated reports - Google Cloud Community


@datijoaquin wrote:

I'm trying to add fonts from google font to an html template


 

<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=IBM Plex Sans"/>

 

View solution in original post

6 REPLIES 6

Steve
Platinum 4
Platinum 4

What makes you think the error has anything to do with your use of @import?

The test tells me that the error is on line 9, which is where I have the import

 

HTML templates only accept pure html, no css, no google fonts

Hi Marino, thanks for answering, within the style tag, you can write CSS and style the reports. I am currently investigating how far it can go.


@datijoaquin wrote:

am currently investigating how far it can go


Almost no limits actually.
I'm looking for dificult template use cases! - Google Cloud Community
Part 1 - Almost pixel perfect pdf reports from aut... - Google Cloud Community
Part 2: Pixel perfect paginated reports - Google Cloud Community


@datijoaquin wrote:

I'm trying to add fonts from google font to an html template


 

<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=IBM Plex Sans"/>

 

Va por ahí! Gracias!!! 

Top Labels in this Space