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

Adding a default font #20

Open
felixmariotto opened this issue Jun 6, 2020 · 0 comments
Open

Adding a default font #20

felixmariotto opened this issue Jun 6, 2020 · 0 comments
Labels
roadmap Feature planned, must be addressed

Comments

@felixmariotto
Copy link
Owner

felixmariotto commented Jun 6, 2020

So far manually adding a font for three-mesh-ui to create text is mandatory.

It must be defined this way :

ThreeMeshUI.Block({
 fontFamily: './assets/Roboto-msdf.json',
 fontTexture: './assets/Roboto-msdf.png'
});

It is not very user-friendly, as the user must download the fonts from the repo or take the time to create their own, find a place to store it in their app file system, etc...

I think it would be best to have at least the Roboto font (open source) as the default font, so these two parameters can be skipped, and Text will fallback to Roboto if the user defined no font.

The font files should be placed in ./src/assets

@felixmariotto felixmariotto added the roadmap Feature planned, must be addressed label Jun 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
roadmap Feature planned, must be addressed
Projects
None yet
Development

No branches or pull requests

1 participant