function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JskinJskin 

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;
          
}

Best Answer chosen by Admin (Salesforce Developers) 
aballardaballard

Arial Unicode MS is the only provided font that supports multi language characters. 

All Answers

aballardaballard

Arial Unicode MS is the only provided font that supports multi language characters. 

This was selected as the best answer
JskinJskin

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.