Skip to main content

I'm now trying to output a shape using the SDK. Therefore, I would like to make the characters in the figure bold. miro.board.widgets.create ({{ type:'shape', x: 0, y: 0, width: 100, height: 100, style: { textColor:'# 000000', backgroundColor:'#FFFFFF', bold: 1, borderWidth: 7, borderColor:'# 000000', fontFamily: 0, fontSize: 32, textColor:'# 000000', shapeType: 3, }, }) Even if you do, it will not be bold. Please let me know if there are any mistakes.

Hi @maeda,

 

This is an issue with the Web SDK v1. The workaround is to not use the `bold` parameter but to directly use HTML tag in the “text” like this:

 

await miro.board.widgets.create ({ type:'shape', text: "<b>hello</b>" }) 

 

 


Reply