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

Default font does not support label special characters #26

Closed
gaiterjones opened this issue Nov 28, 2020 · 1 comment
Closed

Default font does not support label special characters #26

gaiterjones opened this issue Nov 28, 2020 · 1 comment

Comments

@gaiterjones
Copy link

Special characters in labels are showing as question marks i.e.

N?man instead of Nüman

I think this is because the default font helvetiker regular doesn't support special characters. How do I use labelTypeFace([typeface ]) to specify a different/custom label font created with facetype.js or is there another built in font I can use, or am I doing something wrong with special characters?

@gaiterjones
Copy link
Author

So I did get it working with something like this using optimer_regular which supports special characters.

var labelfont:
	$.getJSON('https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/fonts/optimer_regular.typeface.json', function(data) {
		labelfont = data;
	});
...
.labelTypeFace(labelfont)
...

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

1 participant