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
Hi , The font used on the page must be available on the Visualforce PDF rendering service. Web fonts aren’t supportedRefer this link https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_output_pdf_supported_fonts.htm