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! Go to 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"/>
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!!!
User | Count |
---|---|
41 | |
25 | |
25 | |
17 | |
11 |