Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pixi Text not showing the dynamic font loaded through Assets #10208

Open
amitmpixentech opened this issue Feb 12, 2024 · 1 comment
Open

Pixi Text not showing the dynamic font loaded through Assets #10208

amitmpixentech opened this issue Feb 12, 2024 · 1 comment

Comments

@amitmpixentech
Copy link

amitmpixentech commented Feb 12, 2024

Current Behavior

I have just migrated from v6 to v7.2.3. I am now loading fonts through Assets and manifest.
The entry of my font in manifest is like this
{"name": "Roboto-Bold", "alias": "Roboto-Bold", "src": ["assets/fonts/en/Roboto-Bold.ttf"]},
(I have tried only name, only alias too with same result).
Now when creating text I am passing the below object to new Pixi Text.
{
"fontFamily": "Roboto-Bold",
"fontSize": 44,
"fill": 0,
"breakWords": true
}
But it shows me in missing font style.
image

Expected Behavior

The text should with Roboto font.

Steps to Reproduce

Use the above code.

Environment

  • pixi.js version: e.g. 7.4.0
  • Browser & Version: e.g. Chrome 108
  • OS & Version: e.g. windows

Possible Solution

No response

Additional Information

No response

@Soahr
Copy link

Soahr commented May 6, 2024

I have the same issue with my font, maybe an issue with the font file ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants