You need to sign in to do that
Don't have an account?
Fonts with different languages in pdf visualforce page
Hi,
I'm looking to change a visualforce page that we render as a pdf to display in a different font. The page displays multiple languages with different characters - Japanese, Chinese aswell as English. So far I have only been able to get the page to render correctly by using Arial Unicode MS (see code below). We have a need to use Tahoma instead but the page won't display the non english characters. Any suggestions? Many Thanks.
<apex:page renderAs="pdf" standardController="Enrollment__c" showHeader="false" pageStyle="all">
<head>
<style type="text/css" media="print">
body{
font-family: Arial Unicode MS;
}
@page{
@bottom-center {
}
@bottom-left {
content: element(footer);
}
size: A4 portrait;
margin-top:.0cm;
margin-left:0cm;
margin-right:0cm;
margin-bottom:2.1cm;
}
Arial Unicode MS is the only provided font that supports multi language characters.
All Answers
Arial Unicode MS is the only provided font that supports multi language characters.
Thanks for the feedback. I might have to split this into 2 different pages then. If I did want to use Tahoma with just standard characters how would I add this into the code? I've tried font-family = Tahoma but all I can see is Times New Roman. Thanks again.