From 28931c1d7c770921e7843af5662e3f69db0a9e3e Mon Sep 17 00:00:00 2001 From: gered Date: Wed, 8 Dec 2021 17:02:17 -0500 Subject: [PATCH] update README with notes about absolute/relative custom font paths --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 67712e8..40f19c7 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ When set to a map, the map should include CSS styles for the HTML `` tag o default styles shown above. Two additional keys can be set in this map: * `:styles` a single file or vector of filenames pointing to any additional CSS stylesheets to be included. -* `:fonts` a sequence of maps of the form `{:font-family "font-family-name-here" :src "/path/to/custom-font.ttf"}` which allows you to use custom fonts in other CSS style definitions using the `:font-family` name specified here. +* `:fonts` a sequence of maps of the form `{:font-family "font-family-name-here" :src "file:/path/to/custom-font.ttf"}` which allows you to use custom fonts in other CSS style definitions using the `:font-family` name specified here. Note that to use a relative font path with `:src`, just drop the `file:` prefix and of course don't include a leading slash. If you want to include your own custom CSS styles without the base `htmltopdf-base.css` stylesheet being included nor any other base styles being injected, then you can specify either a single CSS filename or a vector of multiple CSS