-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Docs: Creating-text: Suggest three-mesh-ui first. #20817
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
Docs: Creating-text: Suggest three-mesh-ui first. #20817
Conversation
|
This is updating a section on bitmap fonts — is three-mesh-ui using that method? Sections (4) and (5) are separated because there are situations where either method might be needed. A library more similar to three-bmfont-text, and probably also easier to use, is three-troika-text. |
|
Hello @donmccurdy, three-mesh-ui can use the font file generated from your site, and it's doc also say this. I think it using bitmap fonts, isn't it? But I found out that it doesn't support spaces unexpectedly. I didn't find this problem yesterday because all chinese characters had no spaces. I need to raise an issue first. |
|
@donmccurdy Confirmed with three-mesh-ui author that he using bitmap fonts https://discourse.threejs.org/t/how-to-use-bmfont/21206/10 . I'll try three-troika-text too, but you have confirmed. Could list them all like |
|
@gonnavis I've just fixed your spacing problem, check your issue on Github. I suppose the reason why @donmccurdy is reticent to add it to the list is because three-mesh-ui purpose is not restricted to the task of creating text, as it can also create "flex" boxes, icons, use padding and margin, etc... Could a sixth category be envisioned for layout tools like three-mesh-ui and troika ? It's likely some people don't know about those tools and land on the Creating text page, thinking that they have to figure out by themselves how to make layouts. |
|
@felixmariotto Thanks for fix! I confirmed that this "Hello world" demo works now. |
|
Ok, as long as it's also a BMFont-based solution I'm fine with listing them both. I don't feel strongly that three-troika-text needs to be added, as I haven't used it myself, but we can always consider that later. |
| <p> | ||
| تسمح BMFonts (الخطوط النقطية) بدمج الصور الرمزية في BufferGeometry واحد. يدعم عرض BMFont التفاف الكلمات ، وتباعد الأحرف ، وتقنين الأحرف ، وحقول المسافة الموقعة مع المشتقات القياسية ، وحقول المسافة الموقعة متعددة القنوات ، والخطوط متعددة الأنسجة ، والمزيد. | ||
| انظر [link:https://github.com/Jam3/three-bmfont-text three-bmfont-text]. | ||
| انظر [link:https://github.com/Jam3/three-bmfont-text three-bmfont-text] or [link:https://github.com/felixmariotto/three-mesh-ui three-mesh-ui]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to change the order on this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know that Arabic is read from right to left, but I'm very confused by the different Editing and Viewing order with it.
If look at the overall right-to-left viewing order, it is right now, so I deliberately used this editing order which different from en and zh.
But from the single piece of English three-bmfont-text or three-mesh-ui, the order is wrong.


I don't know which one is correct, maybe all wrong.
So I changed to using Arabic word of or.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a rabbit hole I prefer not to venture into 😅
|
Thanks! |



Related issue: -
Description
I tried to find that three-mesh-ui is much more convenient to use than three-bmfont-text, and it provides
ordinary .js filesandimportandrequiresimultaneously.In contrast, three-bmfont-text only provides
requirewhich I think is only used for nodejs and depends onglobal.THREE, in fact, I even failed to use three-bmfont-text successfully.So I think it would be better to recommend three-mesh-ui first to beginners.