Skip to content

Supported bullets drawing in AnnotatedString - #3400

Open
Vladimir Mazunin (mazunin-v-jb) wants to merge 3 commits into
jb-mainfrom
v.mazunin/cmp-7151-paragraph-with-annotations
Open

Vladimir Mazunin (mazunin-v-jb) wants to merge 3 commits into
jb-mainfrom
v.mazunin/cmp-7151-paragraph-with-annotations

Conversation

@mazunin-v-jb

Copy link
Copy Markdown

Add support for Bullet annotation rendering in Skiko text layout

  • Implemented SkikoBulletPainter for rendering bullet markers in paragraphs
  • Updated SkikoParagraphBuilder and ParagraphLayouter to process and layout bullets
  • Adjusted Skia intrinsic width calculations to include bullet indentation
  • Added utility functions for bullet size resolution and filtering bullet annotations

Fixes: CMP-7151 Support Paragraph(Intrinsics) with annotations

Testing

Should be tested by QA

Release Notes

Features - Multiple Platforms

  • Support for rendering bullet list annotations (Bullet) in AnnotatedString

Fixes - Multiple Platforms

  • Fixed text with textIndent wrapping unexpectedly: the indentation is now included into the paragraph's intrinsic width

- Implemented `SkikoBulletPainter` for rendering bullet markers in paragraphs
- Updated `SkikoParagraphBuilder` and `ParagraphLayouter` to process and layout bullets
- Adjusted Skia intrinsic width calculations to include bullet indentation
- Added utility functions for bullet size resolution and filtering bullet annotations
… text layout

- Added tests validating proper inclusion of `TextIndent` in max intrinsic width calculations
- Ensured proper text layout without wrapping at maximum intrinsic width with indentation
- Introduced bullet painting test cases for desktop with color, size, and position validation
- Verified correct bullet rendering in indented paragraphs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant