[Bug] text fontVariant 折行显示问题
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 263
- Forks
- 50
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 16
Description
Version
Link to Minimal Reproduction
Steps to Reproduce
createText({
"fontFamily": "Arial",
"fontSize": 20,
"fontWeight": "bold",
"fontStyle": "italic",
"fontVariant": "small-caps",
"fill": "#F66",
"stroke": false,
"textAlign": "right",
"textBaseline": "top",
"lineHeight": 20,
"ellipsis": "...",
"text": "RecruitingManager",
"maxLineWidth": 150,
"autoWrapText": true,
"wordBreak": "break-word",
"heightLimit": 100,
"dx": 0,
"whiteSpace": "normal",
"x": 400,
"y": 600,
_debug_bounds: true,
})
Current Behavior
Expected Behavior
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
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
Start by reproducing the createText example with fontVariant set to small-caps, autoWrapText enabled, and wordBreak set to break-word. Trace the text layout and wrapping entry point used by this example; the issue does not name a file, test, or expected rendered result, so the intended line-break behavior must be clarified before completion can be verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100