aframevr / aframevr/aframe

`a-text` custom font broken

Open
#5,009 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
17.6k
Forks
4.4k
PR merge metrics
No merged PRs in 30d

Description

Description:

  • A-Frame Version: 1.3.0
  • Platform / Device: MacOS M1 air, browser: Chrome, Firefox, Safari

Issue:

I use under code

<a-text
  value="Hello"
  color="black"
  width="0.5"
  height="0.5"
  position="-0.125 0.03 0"
  font="/SpoqaHanSansNeo-Regular.json"
  font-image="/SpoqaHanSansNeo-Regular.png"
></a-text>

and cause this issue

image

I was make font here: https://msdf-bmfont.donmccurdy.com/
and use this font: https://cdn.jsdelivr.net/gh/spoqa/spoqa-han-sans@latest/Subset/SpoqaHanSansNeo/SpoqaHanSansNeo-Regular.ttf

image

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 a-text component and its font and font-image configuration, then reproduce the supplied example with the generated SpoqaHanSansNeo assets in Chrome, Firefox, and Safari. Done means the custom font renders correctly instead of showing the reported broken output.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.