birt icon indicating copy to clipboard operation
birt copied to clipboard

BIRT 4.20 Export PDF can not show emoji or extension characters

Open visioncy opened this issue 1 month ago โ€ข 4 comments

BIRT 4.20 Export PDF can not show emoji or 4byte character

emoji eg. ๐Ÿ˜€ ๐Ÿ˜ƒ ๐Ÿ˜„ ๐Ÿ˜ ๐Ÿ˜† ๐Ÿ˜… ๐Ÿคฃ ๐Ÿ˜‚ ๐Ÿ™‚ ๐Ÿ™ƒ ๐Ÿ˜‰ ๐Ÿ˜Š ๐Ÿ˜‡ ๐Ÿฅฐ ๐Ÿ˜ ๐Ÿคฉ ๐Ÿ˜˜ ๐Ÿ˜— โ˜บ๏ธ ๐Ÿ˜š ๐Ÿ˜™ ๐Ÿฅฒ ๐Ÿ˜‹ ๐Ÿ˜› ๐Ÿ˜œ ๐Ÿคช ๐Ÿ˜ ๐Ÿค‘ ๐Ÿค— ๐Ÿคญ ๐Ÿคซ ๐Ÿค” ๐Ÿค ๐Ÿคจ ๐Ÿ˜ ๐Ÿ˜‘ ๐Ÿ˜ถ ๐Ÿ˜ ๐Ÿ˜’ ๐Ÿ™„ ๐Ÿ˜ฌ ๐Ÿคฅ ๐Ÿ˜Œ ๐Ÿ˜” ๐Ÿ˜ช ๐Ÿคค ๐Ÿ˜ด ๐Ÿฅฑ ๐Ÿ˜ท ๐Ÿค’ ๐Ÿค• ๐Ÿคข ๐Ÿคฎ ๐Ÿคง ๐Ÿฅต ๐Ÿฅถ ๐Ÿ˜ต ๐Ÿคฏ ๐Ÿ˜• ๐Ÿ˜Ÿ ๐Ÿ™ โ˜น๏ธ ๐Ÿ˜ฎ ๐Ÿ˜ฏ ๐Ÿ˜ฒ ๐Ÿ˜ณ ๐Ÿฅบ ๐Ÿ˜ฆ ๐Ÿ˜ง ๐Ÿ˜จ ๐Ÿ˜ฐ ๐Ÿ˜ฅ ๐Ÿ˜ข ๐Ÿ˜ญ ๐Ÿ˜ฑ ๐Ÿ˜– ๐Ÿ˜ฃ ๐Ÿ˜ž ๐Ÿ˜“ ๐Ÿ˜ฉ ๐Ÿ˜ซ ๐Ÿฅด ๐Ÿ˜ก ๐Ÿ˜  ๐Ÿคฌ ๐Ÿ˜ˆ ๐Ÿ‘ฟ ๐Ÿ’€ โ˜ ๏ธ ๐Ÿ’ฉ ๐Ÿคก ๐Ÿ‘น ๐Ÿ‘บ ๐Ÿ‘ป ๐Ÿ‘ฝ ๐Ÿ‘พ ๐Ÿค– | extension characters eg. ๐จ‹ข ๐ฉ Œ ๐ฉŸ”ใ€๐ นบใ€ใ—Ž ๐จ‹‡ใ€๐จŽซใ€๐ฉŸ”

Source:

Image

BIRT Viewer Web:

Image

PDF:

Image

visioncy avatar Nov 18 '25 08:11 visioncy

Can you please provide your test report.

I assume that it is familiar with the #2305 because for PDF-output is a special fnt configuration necessary at file font_config.xml to fetch the correct glyphs. These fonts will be handled in a different way like a browser or the eclipse IDE.

speckyspooky avatar Nov 19 '25 19:11 speckyspooky

I have tried the following:

  1. After adding fontsConfig_pdf.xml, the single emoji that originally displayed became three emojis, but not all of them are shown, and the extension characters still cannot be displayed.
  2. Setting the correct font directly in the .rptdesign file results in the same situation as in point 1.
  3. When I generate a PDF using OpenPDF 3.0.0 with the correct font, all characters display correctly.

test report testreport.zip fonts: fonts.zip

Generate by OpenPDF 3.0.0 emoji.pdf

visioncy avatar Nov 20 '25 00:11 visioncy

Just a wild guess: BIRT doesn't support TTC files.

hvbtup avatar Nov 20 '25 07:11 hvbtup

Sorry, I provided the wrong font. I first used a TTC file, and later switched to a TTF file, but it still didnโ€™t work.

fonts_v2.zip

visioncy avatar Nov 20 '25 08:11 visioncy