3

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, 2016 at 17:42
  • @Oleksiy didn't help unfortunetely Apr 14, 2016 at 18:04
  • Looks like it's not possible :(
    – o-lexi
    Apr 14, 2016 at 18:36
  • Have you tried using any inline CSS/HTML tags?
    – crmprogdev
    Apr 14, 2016 at 18:37
  • 1
    @crmprogdev that does not help. font-weight: bold; works for Verdana, I tried it, but cyrillic characters are displayed only for Arial Unicode MS Apr 14, 2016 at 18:50

1 Answer 1

2

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .