Skip to content

[BugFix] Fix Clay default font family and measured width on iOS - #8835

Open
Neilcc wants to merge 1 commit into
developfrom
shadow/p/ci_lynx/fix_text_fontsize
Open

[BugFix] Fix Clay default font family and measured width on iOS#8835
Neilcc wants to merge 1 commit into
developfrom
shadow/p/ci_lynx/fix_text_fontsize

Conversation

@Neilcc

@Neilcc Neilcc commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Keep Clay text measured width and font-size as float through the measurement path.

Recover TTText fractional line widths from paragraph line metrics when safe.

Keep existing default font family behavior unchanged.

SkipChecks: macro

AutoLand: release/3.9, release/3.8

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1db604b386

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

0.0);
measured_height_ =
std::ceil(cache_paragraph_->GetHeight() - line_spacing);
measured_height_ = cache_paragraph_->GetHeight() - line_spacing;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore height rounding at the text result boundary

When a regular <text> node is measured with an indefinite or at-most height and the paragraph backend returns a fractional height, removing ceil here changes the externally returned height because TextShadowNode::Measure assigns context.measured_height_ directly to result.height. This differs from the updated internal/inner text paths, which still ceil at the result boundary, and contradicts the new height policy in text_measure_spec.md; keep the intermediate value fractional but apply ceil when producing the non-definite MeasureResult.

Useful? React with 👍 / 👎.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant