Inline Images in Text Layouts?
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.4k
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
I was wondering if there was interest in having inline images support. I think it would be reasonably easy for the CoreGraphics backend by adding a [NSTextAttachment](https://developer.apple.com/documentation/uikit/nstextattachment) with the [attachment](https://developer.apple.com/documentation/foundation/nsattributedstring/key/1534036-attachment) property.
However, I don't know how difficult this would be on the other platforms. I did a brief search for [Cairo and found this](https://stackoverflow.com/questions/28017155/pango-cairo-is-there-an-existing-approach-for-handling-img-style-tags-in-te). However, [as with the blurred rectangles](https://github.com/linebender/piet/commit/9f3a95d5935ec6d7c6a07c48fe964cdbdf6ff9cd) maybe it is fine to start just with one (well, two if counting iOS) platform(s) here?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named. Start by reviewing the CoreGraphics NSTextAttachment proposal and the linked Cairo/Pango discussion, then compare how piet’s other backends handle text layout. Done requires an agreed scope for inline images and a defined behavior across the supported platforms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, rust
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100