notofonts / noto-fonts

Noto fonts, except for CJK and emoji
http://fonts.google.com/noto
SIL Open Font License 1.1
2.45k stars 200 forks source link

Adobe Error: Cannot extract embedded font 'NotoSansCJKjp-Regular' #1678

Open sameer-mandaokar opened 4 years ago

sameer-mandaokar commented 4 years ago

Title

Adobe Error: Cannot extract embedded font 'NotoSansCJKjp-Regular'

Font

Noto Sans CJK jp Regular

Where the font came from, and when

Site: https://www.google.com/get/noto/#sans-jpan

Font Version

1.004

OS name and version

Windows 10

Application name and version

JaperReports library(6.8.1) which uses iText(2.1.7) to generate PDFs.

Issue

We're using Google's Noto fonts ( Noto Sans CJK jp and Noto Sans font families) as Custom font with Jasper Reports 6.8.1. We want to export PDF with embedded fonts in 10 languages (English/Spanish/German/French/Chinese Simplified/Chinese Traditional/Japanese/Korean/Russian/Italian).

We've found that using Noto Sans CJK jp font Jasper Engine succesfully creates PDF which shows all characters correctly in all Web Browsers / Document Viewer app etc. However Adobe Acrobat reader is not able to extract embedded fonts and hence doesn't render the localized data/label on PDF. Tried encoding 'CP1252'/'Identity-H'/'CP1250', however none of this shows the localized data in all the mentioned languages.

Character data

English Characters only.

Screenshot

Google Chrome Output - image

Adobe Output - image

Adobe Document Properties - image

lukasz-kusnierz commented 3 years ago

Same with latest flying-saucer-pdf-openpdf@9.1.20 and latest Adobe Acrobat Reader DC 2020.013.20074 (macOS BigSur).

Any information would be appreciated.

nokiajavi commented 3 years ago

Same problem with font NotoSans HK Regular.

I changed Itext to version 5 and not fail adobe Reader but all character not show, for example letters with accents.

I think the problem comes from the OTF source format, since using another source, the NotoSans.ttf I have no problem with the characters.