How to include custom fonts? #484
-
I'm been bumping my head and i'm not sure how to do it. I've included everything, the assets are there, they are remotely accessible. Why won't the style apply to the element? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
oh, yeah... I got it. My workflow in Github was not including the necessary theme. So my VSCode has the custom theme (with the fonts references in it) in the VSC prefs. But to have the theme working ALSO in github the build must include it so we have to call it via CLI. I basically included the location of the folder - name: Marp Build (README)
uses: docker://marpteam/marp-cli
with:
args: README.md --theme-set build/themes/pmcf.css -o build/index.html
env:
MARP_USER: root:root |
Beta Was this translation helpful? Give feedback.
oh, yeah... I got it. My workflow in Github was not including the necessary theme. So my VSCode has the custom theme (with the fonts references in it) in the VSC prefs.
But to have the theme working ALSO in github the build must include it so we have to call it via CLI. I basically included the location of the folder
themes/pmcf.css
. And then this file is referecing the fonts and applying th style. So on build time--theme-set build/themes/pmcf.css
must be called. Have in mind this is in the context of using marp-to-pages. I had to replicate it for each file i had to create a file (i don't know how to optimize it).