HTML bold tag not working
in OpenSesame
Hello everyone,
I would like to bold certain words in a block of text that is presented in sketchpad. I used the html tag <b> but this didn't work. The other two html tags, <u> and <i>, however, worked as expected. I also tried using "font_bold=yes" to bold the entire block of text and this didn't work either. Below is an example using the sentence "trying to make this bold!". How would I do this in OpenSesame?
draw textline center=1 color=black font_bold=no font_family=arabic font_italic=no font_size=18 html=yes show_if=always text="trying to make this <b>bold</b>!" x=128 y=-192 z_index=0
Thank you in advance!
Comments
Hi @lin99 ,
If you're using OpenSesame 3.2 or later, then you're doing it correctly. If the text between
<b></b>tags doesn't become bold, then that's probably because the font doesn't support bold face. Strangely though, for me your code (with the arabic font) does appear in bold face. What happens if you select a different font?— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi @sebastiaan ,
I tried all available fonts and none of them worked. I'm running OpenSesame 3.3.5 on Mac OS Catalina in case that makes any difference.
Lin
@Daniel Do you experience the same on your Mac?
Check out SigmundAI.eu for our OpenSesame AI assistant!
I have the same problem. In no way I can make the text bold. I tried different backends, fonts, using strong instead of b as the tag, but to no effect.
I am also on Catalina and OpenSesame 3.3.5