Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source Han Sans not displaying correctly at specific weight #5476

Closed
Fanolian opened this issue Nov 6, 2014 · 4 comments
Closed

Source Han Sans not displaying correctly at specific weight #5476

Fanolian opened this issue Nov 6, 2014 · 4 comments

Comments

@Fanolian
Copy link

Fanolian commented Nov 6, 2014

OS: Win 8.1 64bit, all updates installed
Browser: Nightly 2014-11-05 build
pdf.js version: unknown

In the document "Developing & Deploying The World’s First Open Source Pan-CJK Typeface Family" (https://blogs.adobe.com/CCJKType/files/2014/11/iuc38-lunde-s1t3.pdf#page=21), Source Han Sans does not display correctly at a specific weight.
However in a very similar page from another document "Building Source Han Sans & Noto Sans CJK" (https://blogs.adobe.com/CCJKType/files/2014/11/iuc38-lunde-s8t1.pdf#page=50), this is displaying correctly.

There is displaying issue on page 20 in the first document (See screenshot) but I don't know if it's related.
p.s. I have both fonts Source Han Sans & Noto Sans CJK installed if it matters.

Screenshots:
pdf.js issue in Nightly
pdf js

Expected result in adobe reader 11.0.09
adobe reader

No issue in another document
pdf js2

@Snuffleupagus
Copy link
Collaborator

"PDF 3b306b869394b1a1eaaa26e761ed25ff [1.6 Mac OS X 10.9.5 Quartz PDFContext / PowerPoint] (PDF.js: 1.0.940 [WebGL])" viewer.js:5357
downloadable font: OS/2: first char index 65535 > last char index 65353 in os2 (font-family: "g_font_4" style:normal weight:normal stretch:normal src index:0) source: data:font/opentype;base64,T1RUTwAJAIAAAwAQQ0ZGIFOeD+YAAACcAPlZRk9TLzJfCkMkAPlZ5AAAAGBjbWFwnBNBEwD5WkQAAYvKaGVhZKsnUDQA+uYQAAAANmhoZWEHFPTYAPrmSAAAACRobXR4SjsAAAD65mwAA8qobWF4cPKqUAAA/rEUAAAABm5hbWXgsuZOAP6xHAAAAlJwb3N0AAMAAAD+s3AAAAAgAQAEAwABAQEbSUxDQkZCK1NvdXJjZUhhblNhbnMtTGlnaHQAAQEBTvgb+ByLDB74HQH4FgT+d/6tHAtxHAcRBYyWHQCNg6MOHQAAAyoPHQAABtMRHQAAAAAdAAAAABL4HgwV+B8MFh0A+VXaDCUdAPlW8wwkABQCAAEABgAOAK4AuwDOAOwBEAEsAUgBagGFAaIBvQHWAfACCgIoAkACYAKGQWRvYmVJZGVudGl0eUNvcHlyaWdodCAyMDE0IEFkb2JlIFN5c3RlbXMgSW5jb3Jwb3JhdGVkLiBBbGwgUmlnaHRzIFJlc2VydmVkLiBTb3VyY2UgaXMgYSB0cmFkZW1hcmsgb2YgQWRvYmUgU3lzdGVtcyBJbmNvcnBvcmF0ZWQgaW4gdGhlIFVuaXRlZCBTdGF0ZXMgYW5kL29yIG90aGVyIGNvdW50cmllcy4vRlNUeXBlIDAgZGVmU291cmNlSGFuU2Fucy1MaWdodFNvdXJjZUhhblNhbnMtTGlnaHQtQWxwaGFiZXRpY1NvdXJjZUhhblNhbnMtTGlnaHQtQWxwaGFiZXRpY0RpZ2l0c1NvdXJjZUhhblNhbnMtTGl iuc38-lunde-s1t3.pdf
downloadable font: OS/2: failed to parse table (font-family: "g_font_4" style:normal weight:normal stretch:normal src index:0) source: data:font/opentype;base64,T1RUTwAJAIAAAwAQQ0ZGIFOeD+YAAACcAPlZRk9TLzJfCkMkAPlZ5AAAAGBjbWFwnBNBEwD5WkQAAYvKaGVhZKsnUDQA+uYQAAAANmhoZWEHFPTYAPrmSAAAACRobXR4SjsAAAD65mwAA8qobWF4cPKqUAAA/rEUAAAABm5hbWXgsuZOAP6xHAAAAlJwb3N0AAMAAAD+s3AAAAAgAQAEAwABAQEbSUxDQkZCK1NvdXJjZUhhblNhbnMtTGlnaHQAAQEBTvgb+ByLDB74HQH4FgT+d/6tHAtxHAcRBYyWHQCNg6MOHQAAAyoPHQAABtMRHQAAAAAdAAAAABL4HgwV+B8MFh0A+VXaDCUdAPlW8wwkABQCAAEABgAOAK4AuwDOAOwBEAEsAUgBagGFAaIBvQHWAfACCgIoAkACYAKGQWRvYmVJZGVudGl0eUNvcHlyaWdodCAyMDE0IEFkb2JlIFN5c3RlbXMgSW5jb3Jwb3JhdGVkLiBBbGwgUmlnaHRzIFJlc2VydmVkLiBTb3VyY2UgaXMgYSB0cmFkZW1hcmsgb2YgQWRvYmUgU3lzdGVtcyBJbmNvcnBvcmF0ZWQgaW4gdGhlIFVuaXRlZCBTdGF0ZXMgYW5kL29yIG90aGVyIGNvdW50cmllcy4vRlNUeXBlIDAgZGVmU291cmNlSGFuU2Fucy1MaWdodFNvdXJjZUhhblNhbnMtTGlnaHQtQWxwaGFiZXRpY1NvdXJjZUhhblNhbnMtTGlnaHQtQWxwaGFiZXRpY0RpZ2l0c1NvdXJjZUhhblNhbnMtTGlnaHQtQm9wb21vZm9Tb3VyY2VIYW5TYW5 iuc38-lunde-s1t3.pdf
downloadable font: rejected by sanitizer (font-family: "g_font_4" style:normal weight:normal stretch:normal src index:0) source: data:font/opentype;base64,T1RUTwAJAIAAAwAQQ0ZGIFOeD+YAAACcAPlZRk9TLzJfCkMkAPlZ5AAAAGBjbWFwnBNBEwD5WkQAAYvKaGVhZKsnUDQA+uYQAAAANmhoZWEHFPTYAPrmSAAAACRobXR4SjsAAAD65mwAA8qobWF4cPKqUAAA/rEUAAAABm5hbWXgsuZOAP6xHAAAAlJwb3N0AAMAAAD+s3AAAAAgAQAEAwABAQEbSUxDQkZCK1NvdXJjZUhhblNhbnMtTGlnaHQAAQEBTvgb+ByLDB74HQH4FgT+d/6tHAtxHAcRBYyWHQCNg6MOHQAAAyoPHQAABtMRHQAAAAAdAAAAABL4HgwV+B8MFh0A+VXaDCUdAPlW8wwkABQCAAEABgAOAK4AuwDOAOwBEAEsAUgBagGFAaIBvQHWAfACCgIoAkACYAKGQWRvYmVJZGVudGl0eUNvcHlyaWdodCAyMDE0IEFkb2JlIFN5c3RlbXMgSW5jb3Jwb3JhdGVkLiBBbGwgUmlnaHRzIFJlc2VydmVkLiBTb3VyY2UgaXMgYSB0cmFkZW1hcmsgb2YgQWRvYmUgU3lzdGVtcyBJbmNvcnBvcmF0ZWQgaW4gdGhlIFVuaXRlZCBTdGF0ZXMgYW5kL29yIG90aGVyIGNvdW50cmllcy4vRlNUeXBlIDAgZGVmU291cmNlSGFuU2Fucy1MaWdodFNvdXJjZUhhblNhbnMtTGlnaHQtQWxwaGFiZXRpY1NvdXJjZUhhblNhbnMtTGlnaHQtQWxwaGFiZXRpY0RpZ2l0c1NvdXJjZUhhblNhbnMtTGlnaHQtQm9wb21vZm9Tb3VyY2VIYW5TYW5zLUxpZ iuc38-lunde-s1t3.pdf
downloadable font: font load failed (font-family: "g_font_4" style:normal weight:normal stretch:normal src index:0) source: data:font/opentype;base64,T1RUTwAJAIAAAwAQQ0ZGIFOeD+YAAACcAPlZRk9TLzJfCkMkAPlZ5AAAAGBjbWFwnBNBEwD5WkQAAYvKaGVhZKsnUDQA+uYQAAAANmhoZWEHFPTYAPrmSAAAACRobXR4SjsAAAD65mwAA8qobWF4cPKqUAAA/rEUAAAABm5hbWXgsuZOAP6xHAAAAlJwb3N0AAMAAAD+s3AAAAAgAQAEAwABAQEbSUxDQkZCK1NvdXJjZUhhblNhbnMtTGlnaHQAAQEBTvgb+ByLDB74HQH4FgT+d/6tHAtxHAcRBYyWHQCNg6MOHQAAAyoPHQAABtMRHQAAAAAdAAAAABL4HgwV+B8MFh0A+VXaDCUdAPlW8wwkABQCAAEABgAOAK4AuwDOAOwBEAEsAUgBagGFAaIBvQHWAfACCgIoAkACYAKGQWRvYmVJZGVudGl0eUNvcHlyaWdodCAyMDE0IEFkb2JlIFN5c3RlbXMgSW5jb3Jwb3JhdGVkLiBBbGwgUmlnaHRzIFJlc2VydmVkLiBTb3VyY2UgaXMgYSB0cmFkZW1hcmsgb2YgQWRvYmUgU3lzdGVtcyBJbmNvcnBvcmF0ZWQgaW4gdGhlIFVuaXRlZCBTdGF0ZXMgYW5kL29yIG90aGVyIGNvdW50cmllcy4vRlNUeXBlIDAgZGVmU291cmNlSGFuU2Fucy1MaWdodFNvdXJjZUhhblNhbnMtTGlnaHQtQWxwaGFiZXRpY1NvdXJjZUhhblNhbnMtTGlnaHQtQWxwaGFiZXRpY0RpZ2l0c1NvdXJjZUhhblNhbnMtTGlnaHQtQm9wb21vZm9Tb3VyY2VIYW5TYW5zLUxpZ2h0LU iuc38-lunde-s1t3.pdf

@Snuffleupagus
Copy link
Collaborator

"Reduced" test case available at: https://www.dropbox.com/s/2y1ddj67w8hlmhj/issue5476_reduced.pdf?dl=0.
Note: the problematic font includes a font file that is >10 MB, hence the large file size despite this being a reduced test case.

@timvandermeij
Copy link
Contributor

Likely to be related to #5377.

@timvandermeij
Copy link
Contributor

Fixed by #9340.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants