playcanvas / playcanvas/engine

Implement Multi-font Object to Increase Text Stylization Options

Open
#2,193 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area: ui enhancement
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:
image
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.