* Fonts in HTML
@ 2019-07-22 15:37 Craig Parker
[not found] ` <b9e13391-700a-2310-bac5-e8064323d8b9-UzRat0APdLvLPIzirxu/xA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Craig Parker @ 2019-07-22 15:37 UTC (permalink / raw)
To: pandoc-discuss
Is there some trick to calling in custom fonts? I'm running:
pandoc -s -f markdown-smart --toc -c style.css README.md -o README2.html
and in my stylesheet I've got a:
@font-face {
font-family: NotoSans;
src: url(/fonts/NotoSans-Regular.ttf);
}
This is how I'm calling it on a website using the same stylesheet. I'm
not getting it in the final html with pandoc though. There's a fonts
directory with, the ttf file in it, sitting in the same directory I'm
running the pandoc command from.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b9e13391-700a-2310-bac5-e8064323d8b9%40linuxacademy.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fonts in HTML
[not found] ` <b9e13391-700a-2310-bac5-e8064323d8b9-UzRat0APdLvLPIzirxu/xA@public.gmane.org>
@ 2019-07-22 16:01 ` Craig Parker
0 siblings, 0 replies; 2+ messages in thread
From: Craig Parker @ 2019-07-22 16:01 UTC (permalink / raw)
To: pandoc-discuss
Just found it. /fonts works on a web server in a wordpress theme, but
not here. It's an absolute path. Nixed the forward slash and I was in
like Flynn.
On 7/22/19 11:37 AM, Craig Parker wrote:
> Is there some trick to calling in custom fonts? I'm running:
>
> pandoc -s -f markdown-smart --toc -c style.css README.md -o README2.html
>
>
> and in my stylesheet I've got a:
>
> @font-face {
> font-family: NotoSans;
> src: url(/fonts/NotoSans-Regular.ttf);
> }
>
> This is how I'm calling it on a website using the same stylesheet. I'm
> not getting it in the final html with pandoc though. There's a fonts
> directory with, the ttf file in it, sitting in the same directory I'm
> running the pandoc command from.
>
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/5566b97f-0084-b238-4b2d-431b497f593a%40linuxacademy.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-22 16:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-22 15:37 Fonts in HTML Craig Parker
[not found] ` <b9e13391-700a-2310-bac5-e8064323d8b9-UzRat0APdLvLPIzirxu/xA@public.gmane.org>
2019-07-22 16:01 ` Craig Parker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).