chromium-legacy: Printing is broken on 10.9

On 10.9, characters on print preview are invisible, and the print result is filled with completely broken glyphs. Screen Shot 2021-03-30 at 4 48 24 AM

Seems code path with SkFontMgr_Mac::onMakeFromStreamArgs cannot create proper glyphs and renderer for printing follows that path.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (8 by maintainers)

Commits related to this issue

Most upvoted comments

Ah, sorry! I forgot to merge the fix to the stable branch of skia. Rebuilt and replaced the stable binary.

@Wowfunhappy Thanks! I close this issue at this time. If #11 occurs, feel free to reopen #11.

@Wowfunhappy Is r946471 still crashing?

No, it’s not crashing! And printing seems to work perfectly!

Edit: Oh, #11 was only on a handful of pages! Let me test more thoroughly for a few days before celebrating. Printing does work though!

Thanks for the investigation!

Finally, I got a culprit! 🧐 Q: Why only on Mavericks? A: You wrote that. https://github.com/blueboxd/skia/blob/e7368167b01830659a60ba1e896ae52789f7a2f5/src/ports/SkScalerContext_mac_ct.cpp#L757

if(isMavericks())
  return false;

We need to make SkScalerContext_Mac::generatePath (i.e. CTFontCreatePathForGlyph or equivalent) usable on Mavericks… I’ll investigate old Skia.