Skip to content

How to include custom fonts? #484

Answered by freenandes
freenandes asked this question in Q&A
Discussion options

You must be logged in to vote

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).

- name: Marp Build (README)
    uses: docker://marpteam/marp-cli
    with:…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by freenandes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant