Always parse fonts with skia when fontations is enabled. [pdfium : main]

0 views
Skip to first unread message

Tom Sepez (Gerrit)

unread,
Mar 12, 2026, 7:23:56 PM (5 days ago) Mar 12
to Lei Zhang, pdfium-...@googlegroups.com
Attention needed from Lei Zhang

Tom Sepez added 2 comments

File core/fxge/cfx_face.cpp
Line 358, Patchset 2 (Latest):#if defined(PDF_ENABLE_FONTATIONS)
Tom Sepez . unresolved

NOTE: would like to do this for PDF_USE_SKIA, but profiling embedder_tests shows that only about 40% of fonts are loaded this way later on. Too much?

Line 933, Patchset 2 (Latest):SkTypeface* CFX_Face::GetOrCreateSkTypeface() {
Tom Sepez . unresolved

NOTE: at which point this would become a simple getter.

Open in Gerrit

Related details

Attention is currently required from:
  • Lei Zhang
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: pdfium
Gerrit-Branch: main
Gerrit-Change-Id: I9f403648f581a5df79e5b9c54c1b68dfaa6988fe
Gerrit-Change-Number: 144732
Gerrit-PatchSet: 2
Gerrit-Owner: Tom Sepez <tse...@chromium.org>
Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
Gerrit-Attention: Lei Zhang <the...@chromium.org>
Gerrit-Comment-Date: Thu, 12 Mar 2026 23:23:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Lei Zhang (Gerrit)

unread,
Mar 12, 2026, 10:05:44 PM (5 days ago) Mar 12
to Tom Sepez, Pdfium LUCI CQ, Lei Zhang, pdfium-...@googlegroups.com
Attention needed from Tom Sepez

Lei Zhang added 2 comments

File core/fxge/cfx_face.cpp
Line 358, Patchset 2:#if defined(PDF_ENABLE_FONTATIONS)
Tom Sepez . unresolved

NOTE: would like to do this for PDF_USE_SKIA, but profiling embedder_tests shows that only about 40% of fonts are loaded this way later on. Too much?

Lei Zhang

Can this be guarded by a run-time check rather than compile-time?

Line 361, Patchset 4 (Latest): return result; // Private ctor.
Lei Zhang . unresolved

Comment is in the wrong place.

Open in Gerrit

Related details

Attention is currently required from:
  • Tom Sepez
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: pdfium
Gerrit-Branch: main
Gerrit-Change-Id: I9f403648f581a5df79e5b9c54c1b68dfaa6988fe
Gerrit-Change-Number: 144732
Gerrit-PatchSet: 4
Gerrit-Owner: Tom Sepez <tse...@chromium.org>
Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
Gerrit-Attention: Tom Sepez <tse...@chromium.org>
Gerrit-Comment-Date: Fri, 13 Mar 2026 02:05:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Tom Sepez <tse...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Tom Sepez (Gerrit)

unread,
Mar 13, 2026, 1:32:40 PM (4 days ago) Mar 13
to Pdfium LUCI CQ, Lei Zhang, pdfium-...@googlegroups.com
Attention needed from Lei Zhang

Tom Sepez voted and added 3 comments

Votes added by Tom Sepez

Commit-Queue+1

3 comments

File core/fxge/cfx_face.cpp
Line 358, Patchset 2:#if defined(PDF_ENABLE_FONTATIONS)
Tom Sepez . resolved

NOTE: would like to do this for PDF_USE_SKIA, but profiling embedder_tests shows that only about 40% of fonts are loaded this way later on. Too much?

Lei Zhang

Can this be guarded by a run-time check rather than compile-time?

Tom Sepez

Probably, but yet another initialization parameter. I'll leave it for fontations at the moment.

Line 361, Patchset 4: return result; // Private ctor.
Lei Zhang . resolved

Comment is in the wrong place.

Tom Sepez

Done

Line 933, Patchset 2:SkTypeface* CFX_Face::GetOrCreateSkTypeface() {
Tom Sepez . resolved

NOTE: at which point this would become a simple getter.

Tom Sepez

Acknowledged

Open in Gerrit

Related details

Attention is currently required from:
  • Lei Zhang
Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: pdfium
    Gerrit-Branch: main
    Gerrit-Change-Id: I9f403648f581a5df79e5b9c54c1b68dfaa6988fe
    Gerrit-Change-Number: 144732
    Gerrit-PatchSet: 5
    Gerrit-Owner: Tom Sepez <tse...@chromium.org>
    Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
    Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Lei Zhang <the...@chromium.org>
    Gerrit-Comment-Date: Fri, 13 Mar 2026 17:32:35 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Lei Zhang <the...@chromium.org>
    Comment-In-Reply-To: Tom Sepez <tse...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Lei Zhang (Gerrit)

    unread,
    Mar 13, 2026, 2:12:48 PM (4 days ago) Mar 13
    to Tom Sepez, Pdfium LUCI CQ, Lei Zhang, pdfium-...@googlegroups.com
    Attention needed from Tom Sepez

    Lei Zhang added 1 comment

    File core/fxge/cfx_face.cpp
    Line 358, Patchset 2:#if defined(PDF_ENABLE_FONTATIONS)
    Tom Sepez . unresolved

    NOTE: would like to do this for PDF_USE_SKIA, but profiling embedder_tests shows that only about 40% of fonts are loaded this way later on. Too much?

    Lei Zhang

    Can this be guarded by a run-time check rather than compile-time?

    Tom Sepez

    Probably, but yet another initialization parameter. I'll leave it for fontations at the moment.

    Lei Zhang

    Isn't it just a `CFX_FontMgr::font_backend_` query, exposed via CFX_GEModule?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Tom Sepez
    Submit Requirements:
      • requirement satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: pdfium
      Gerrit-Branch: main
      Gerrit-Change-Id: I9f403648f581a5df79e5b9c54c1b68dfaa6988fe
      Gerrit-Change-Number: 144732
      Gerrit-PatchSet: 5
      Gerrit-Owner: Tom Sepez <tse...@chromium.org>
      Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
      Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
      Gerrit-Attention: Tom Sepez <tse...@chromium.org>
      Gerrit-Comment-Date: Fri, 13 Mar 2026 18:12:45 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Tom Sepez (Gerrit)

      unread,
      Mar 13, 2026, 2:14:09 PM (4 days ago) Mar 13
      to Pdfium LUCI CQ, Lei Zhang, pdfium-...@googlegroups.com
      Attention needed from Lei Zhang

      Tom Sepez added 1 comment

      File core/fxge/cfx_face.cpp
      Line 358, Patchset 2:#if defined(PDF_ENABLE_FONTATIONS)
      Tom Sepez . unresolved

      NOTE: would like to do this for PDF_USE_SKIA, but profiling embedder_tests shows that only about 40% of fonts are loaded this way later on. Too much?

      Lei Zhang

      Can this be guarded by a run-time check rather than compile-time?

      Tom Sepez

      Probably, but yet another initialization parameter. I'll leave it for fontations at the moment.

      Lei Zhang

      Isn't it just a `CFX_FontMgr::font_backend_` query, exposed via CFX_GEModule?

      Tom Sepez

      I'm cheating. I actually want to check that normal skia returns the same things in a follow-on CL. Suggestions?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Lei Zhang
      Submit Requirements:
      • requirement satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: pdfium
      Gerrit-Branch: main
      Gerrit-Change-Id: I9f403648f581a5df79e5b9c54c1b68dfaa6988fe
      Gerrit-Change-Number: 144732
      Gerrit-PatchSet: 5
      Gerrit-Owner: Tom Sepez <tse...@chromium.org>
      Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
      Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
      Gerrit-Attention: Lei Zhang <the...@chromium.org>
      Gerrit-Comment-Date: Fri, 13 Mar 2026 18:14:06 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Lei Zhang (Gerrit)

      unread,
      Mar 13, 2026, 2:29:21 PM (4 days ago) Mar 13
      to Tom Sepez, Lei Zhang, Pdfium LUCI CQ, pdfium-...@googlegroups.com
      Attention needed from Tom Sepez

      Lei Zhang voted and added 1 comment

      Votes added by Lei Zhang

      Code-Review+1

      1 comment

      File core/fxge/cfx_face.cpp
      Line 358, Patchset 2:#if defined(PDF_ENABLE_FONTATIONS)
      Tom Sepez . unresolved

      NOTE: would like to do this for PDF_USE_SKIA, but profiling embedder_tests shows that only about 40% of fonts are loaded this way later on. Too much?

      Lei Zhang

      Can this be guarded by a run-time check rather than compile-time?

      Tom Sepez

      Probably, but yet another initialization parameter. I'll leave it for fontations at the moment.

      Lei Zhang

      Isn't it just a `CFX_FontMgr::font_backend_` query, exposed via CFX_GEModule?

      Tom Sepez

      I'm cheating. I actually want to check that normal skia returns the same things in a follow-on CL. Suggestions?

      Lei Zhang

      Maybe write a TODO or have some other reminder to eventually stop cheating?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Tom Sepez
      Submit Requirements:
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: pdfium
      Gerrit-Branch: main
      Gerrit-Change-Id: I9f403648f581a5df79e5b9c54c1b68dfaa6988fe
      Gerrit-Change-Number: 144732
      Gerrit-PatchSet: 5
      Gerrit-Owner: Tom Sepez <tse...@chromium.org>
      Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
      Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
      Gerrit-Attention: Tom Sepez <tse...@chromium.org>
      Gerrit-Comment-Date: Fri, 13 Mar 2026 18:29:18 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages