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

Set the size of the font texture asset generated #999

Open
yaustar opened this issue Mar 10, 2023 · 1 comment
Open

Set the size of the font texture asset generated #999

yaustar opened this issue Mar 10, 2023 · 1 comment

Comments

@yaustar
Copy link
Collaborator

yaustar commented Mar 10, 2023

See https://forum.playcanvas.com/t/basis-compression-of-font-png-created-from-font-asset/23496/10?u=yaustar

I was wondering if a font texture resized to 2048 pixels could be used in some cases. If possible, it would be nice to have an option to select the texture size in the editor, since the file size becomes very large when trying to handle Japanese textures, making it difficult to use on the Web.

Some developers are willing to take a hit in quality for a smaller font texture and save on download size/VRAM usage

@yaustar
Copy link
Collaborator Author

yaustar commented Mar 10, 2023

Tangentially, when we have #991 support, could that be an option to further reduce the file size without loss of quality? This line will need fixing though in the engine: https://github.com/playcanvas/engine/blob/5a22ee6e885d5f9f880214e7fb96711abd542b95/src/framework/handlers/font.js#L126

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

No branches or pull requests

1 participant