playcanvas / playcanvas/engine
Implement Multi-font Object to Increase Text Stylization Options
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 16.8k
- Forks
- 2k
- Avg merge
- 4h 32m
- Merged PRs (30d)
- 222
Description
Brief summary:
Create an object that can hold multiple related fonts (Font-Regular, Font-Bold, Font-Italic, etc) to allow for an easy swap in both the editor's text element as well as inline via markup.
Example:
this.entity.element.text = "pre " + "[b]bold text[/b]" + " post";
would appear as "pre bold text post"
Unity's TextMeshProUGUI Editor example:

In this example, all letters are auto-capitalized.
For more details, see https://forum.playcanvas.com/t/inline-bold-italic-text-styling/13762
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 with the issue description and the linked forum discussion to clarify the scope for multi-font objects, editor text elements, and inline markup. Done should include a defined way to associate related font styles and render the requested inline styling, but the issue does not name files or tests to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100