VisActor / VisActor/VRender

[Bug] text fontVariant 折行显示问题

Open
#1,594 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

image

Expected Behavior
Environment
- OS:
- Browser:
- Framework:
Any additional comments?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.