Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a way to make an @font-face call in using Pandoc's Slidy?

At the beginning of my slidy.css stylesheet, I have a @font-face call in the tradtional format:

@font-face
{
font-family:'ChunkFiveRegular';
src:url('fonts/Chunkfive-webfont.eot') format('embedded-opentype'),
url('fonts/Chunkfive-webfont.woff') format('woff'), 
url('fonts/Chunkfive-webfont.ttf') format('truetype'),
url('fonts/Chunkfive-webfont.svg#ChunkFiveRegular') format('svg');
font-weight:400;
font-style:normal;
}

But when I compile the Slidy file using Pandoc, I am get an error message:

pandoc: Could not determine mime type for `slidy/styles/fonts/Chunkfive-webfont.eot'

Can this be done?

share|improve this question
    
What pandoc version are you using, and what command (options and arguments)? –  John MacFarlane Jul 20 '12 at 15:40
    
@john-macfarlane I'm using pandoc 1.9.4.2 on OSX 10.7.4 The invocation I'm using is: pandoc -s -t slidy --self-contained -V slidy-url=slidy --smart -o Desktop/index.html slidy-test.md –  Peter Salazar Jul 21 '12 at 4:52
    
Part of the problem is that pandoc doesn't know mime types for eot or woff extensions (which could easily be fixed). If you removed those formats, does it work? –  John MacFarlane Jul 22 '12 at 18:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.