I'm using this source:
<link href="https://fonts.googleapis.com/css?family=Meie+Script" rel="stylesheet">
font-family: 'Meie Script', cursive;
It works normally on the page.
But when it comes to printing the font, it does not come out in the preview or print. I am using the print()
function of javascript .
Can you use a google font in print?
EDIT:
CSS :
<style>
.nomes {
font-family: 'Rouge Script', cursive !important;
}
</style>
A div :
<div class="row nomes">
<div class="container nome-aluno">
Thiago
</div>
</div>
The print button:
<button class="imprimi-certificado btn bg-green waves-effect">
<i class="material-icons">print</i>
</button>
The JQuery function that prints:
$('body').on('click', '.imprimi-certificado', function(){
var printContents = $(".cert").html();
var originalContents = document.body.innerHTML;
var WindowObject = window.open("", "PrintWindow","width=750,height=650,top=50,left=50,toolbars=no,scrollbars=yes,status=no,resizable=yes");
WindowObject.document.writeln("<style>.cert{display:block}.tabela tr td{border-bottom:2px solid #111;}.pagebreak { page-break-before: always; }</style>");
WindowObject.document.writeln(printContents);
WindowObject.document.close();
WindowObject.focus();
WindowObject.print();
WindowObject.close();
});