Skip to content

Instantly share code, notes, and snippets.

@dizpers
Created March 20, 2013 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dizpers/5207502 to your computer and use it in GitHub Desktop.
Save dizpers/5207502 to your computer and use it in GitHub Desktop.
<style>
@font-face {
font-family: "arial", "helvetica", "symbol";
src: url("{{ MEDIA_ROOT }}fonts/Arial.ttf");
}
@font-face {
font-family: "arial black";
src: url("{{ MEDIA_ROOT }}fonts/Arial-bold.ttf");
}
@font-face {
font-family: "arial";
src: url("{{ MEDIA_ROOT }}fonts/Arial-bold.ttf");
font-weight: bold;
}
@font-face {
font-family: "arial";
src: url("{{ MEDIA_ROOT }}fonts/Arial-bold-italic.ttf");
font-weight: bold;
font-style: italic;
}
@font-face {
font-family: "arial";
src: url("{{ MEDIA_ROOT }}fonts/Arial-italic.ttf");
font-style: italic;
}
@font-face {
font-family: "verdana";
src: url("{{ MEDIA_ROOT }}fonts/Verdana.ttf");
}
@font-face {
font-family: "Times New Roman", "wingdings";
src: url("{{ MEDIA_ROOT }}fonts/TimesNewRoman.ttf");
}
@font-face {
font-family: "Times New Roman", "wingdings";
src: url("{{ MEDIA_ROOT }}fonts/TimesNewRoman-bold.ttf");
font-weight: bold;
}
@font-face {
font-family: "Times New Roman", "wingdings";
src: url("{{ MEDIA_ROOT }}fonts/TimesNewRoman-bold-italic.ttf");
font-weight: bold;
font-style: italic;
}
@font-face {
font-family: "Times New Roman", "wingdings";
src: url("{{ MEDIA_ROOT }}fonts/TimesNewRoman-italic.ttf");
font-style: italic;
}
@font-face {
font-family: "Comic Sans Ms";
src: url("{{ MEDIA_ROOT }}fonts/ComicSans.ttf");
}
@page {
margin: 1cm;
margin-bottom: 2.5cm;
@frame footer {
-pdf-frame-content: footerContent;
bottom: 2cm;
margin-left: 1cm;
margin-right: 1cm;
height: 1cm;
}
}
html, body, table, caption, tbody, tfoot, thead, tr, th, td {
font-family: "Times New Roman";
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment