2

I am creating PDF page in salesforce and I have to use cyrillic characters in page. As font I set up 'Arial Unicode MS' in css, because cyrillic characters are not rendered with other fonts. But I need some text to be bold.

From this page https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_output_pdf_supported_fonts.htm I see that I can use only 'Arial Unicode MS'. But how can I make text bold?

7
  • 1
    Have you tried this ? >>After version 27, users have to add applyBodyTag="false" to render double-byte PDF as usual.
    – o-lexi
    Apr 14 '16 at 17:42
  • @Oleksiy didn't help unfortunetely Apr 14 '16 at 18:04
  • Looks like it's not possible :(
    – o-lexi
    Apr 14 '16 at 18:36
  • Have you tried using any inline CSS/HTML tags?
    – crmprogdev
    Apr 14 '16 at 18:37
  • @crmprogdev I have outputText in my pdf page and I add styles to it. For example, I add style="font-weight: 800; color: #FF0000;", without renderas="pdf" text is red and bold, but as pdf it is red only Apr 14 '16 at 18:38
3

According to Flying Saucer PDF Generator and Unicode you need a special variant build of Flying Saucer to:

generate the appropriate PDF commands to emulate bold and italics when a style calls for it but no matching font can be found.

From the Features of this Release:

Added font emulation for bold and italics variations when there is no direct support in the font files themselves. Fonts like Microsoft's Arial Unicode MS only come in one version: plain text. In order to have bold, italics and bold+italics the font must be modified on-the-fly by the PDF display software.

So, unless Salesforce were using a variation of Flying Saucer or switch to another PDF renderer it won't be possible.

As per the comment by Oleksiy, voting for the idea Arial Unicode MS - Bold in PDF may help in the long run.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.