cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Making single word bold

aoleary
4-Participant

Making single word bold

Is it possible to make one word bold in a paragraph when using the Text Area or Text Input in Vuforia Studio

2 REPLIES 2
sdidier
17-Peridot
(To:aoleary)

Hello,

 

I have tried with HTML tag <b> and </b> but without success.

After some search over the web, standard text area doesn't accept HTML styling.

https://stackoverflow.com/questions/50286692/changing-a-small-amount-of-text-in-a-textarea-to-bold

 

In HTML, the best way to use styling in a text widget, is to use an external third party WYSIWYG text widget.

For example, this widget in Javascript &colon;

https://codemirror.net/

 

  1. It is needed to add this third party library in Vuforia Studio, in the Project.
  2. In custom Javascript source code, load it. More detail here  : https://community.ptc.com/t5/Vuforia-Studio/Including-js-file-from-resources/td-p/556781
  3. In Canvas, in 3D, drag and drop a TML Text Widget
  4. In TML Text Widget, in TML Text - DETAILS panel, in Properties, in Text field, click the pencil button
  5. In Edit Text dialog bow, use the coding example provided to display it

I didn't check this approach for the moment.

 

Best regards,

Samuel

aoleary
4-Participant
(To:sdidier)

Hi Samuel,

 

Thank you very much for the information and for your help.  I haven't had a chance to try your recommendation but will try and see if it works.  Thank you again.

 

-Ada

Announcements

Top Tags