Skip to main content Join the Agentforce Virtual Hackathon to build innovative solutions and compete for a $50k Grand Prize. Sign up now. Terms apply.
I have wrote a visualforce page in that I have used some custom fonts(those are otf files, uploaded into static resources) and applied to div span element in vf page. It's working fine in vf page. But when renderas pdf the font is not applying. Please give solution for this asap.

 

Here is the code.

<apex:page showHeader="false" applyHtmlTag="false" applyBodyTag="false" renderAs="pdf">

<html>

<head>

<style type="text/css">

@font-face {

font-family: Neutraface2Text-Bold;

src: url({!URLFOR($Resource.LovesBusinessCardFonts, '/Neutraface2Text-Bold.otf')});

}

</style>

</head>

<body>

<span style="font-family: Neutraface2Text-Bold;font-size:11pt;">Neutraface2Text-Bold</span>

</body>

</html>

</apex:page>

 
1 answer
0/9000