Closed Bug 2050224 Opened 2 days ago Closed 1 day ago

[skpdf] Emojis print blank.

Categories

(Core :: Printing: Output, defect, P3)

defect

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

The only real test failure from turning skpdf on on nightly, is a failure in the test added for bug 1723787.

STR:

ER:

  • Emoji prints.

AR:

  • Blank page.

I haven't dug further just yet.

Flags: needinfo?(emilio)

Emilio, this seems to work for me fine on Linux. Are you on macOS, by chance?

No, I was on Linux, and so is the CI run FWIW. Curious, did you actually "Save as PDF" with print.experimental.skpdf=true.

I did toggle the pref, and on my nightly build it still works for me. On Debian Linux.

The resulting output pdf with skpdf=true pref on.

Ah, I think I found something. My default emoji font is a COLR font. Maybe yours isn't?

The inspector says Twemoji Mozilla.

Ah, for me it's Noto Color Emoji

Without this fix, we bail out in:

https://searchfox.org/firefox-main/rev/c1395f54bdda7cb0ed71bbe54e2940ce16175389/gfx/skia/skia/src/pdf/SkPDFFont.cpp#160-162

This matches Skia's SkTypeface_FreeType::GetUnitsPerEm (but without the
SkIntToScalar nonsense because the int->float->int conversion seems
just useless?).

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Flags: needinfo?(emilio)
Status: ASSIGNED → RESOLVED
Closed: 1 day ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: