Bold, Italic and Plain for text from Blocks area. Fonts like Arial, Courier, Verdana, etc for text.

44 views
Skip to first unread message

Oscar García

unread,
Aug 3, 2019, 5:34:17 PM8/3/19
to MIT App Inventor Forum

How can I achieve "Bold, Italic and Normal Letter" styles to a text in a TextBox. I want to achieve all this from the block area. Also how can I use different sources such as: Arial, Courier, Verdana, etc. in a TextBox?



Cómo puedo lograr dar estilos "Negrita, Cursiva y Letra normal" a un texto en un TextBox. Quiero lograr todo esto desde el área de los bloques. También cómo puedo usar fuentes distintas como: Arial, Courier, Verdana, etc en un TextBox?

TimAI2

unread,
Aug 3, 2019, 6:32:24 PM8/3/19
to MIT App Inventor Forum
This is about the 4th time you have asked this same question!

There are no blocks for any of these textbox attributes

The only fonts available for use are those you can find in the Designer

A feature request has been made to MIT for these to be added, if possible


There is no requirement to ask again

Chris Ward

unread,
Aug 3, 2019, 6:32:42 PM8/3/19
to MIT App Inventor Forum
Hi Oscar

App Inventor does not have the Blocks for Font Type and Style unfortunately. It has been requested as an enhancement, probably won't happen soon.

Concerning the use of True Type Fonts, the only way to use them in App Inventor is to create Text Images in a Desktop program and then include those in App Inventor as Media, placed as an image, canvas background, button image etc. I think one of the off-springs of App Inventor (Thunkable) may have found a way to use TTF, but it might not be a method that your App Users would like if it involves changing the phone's own fonts (which would affect all Apps, not just yours). Worth investigating perhaps but there are over a million App Inventor Apps out there that didn't need TTF to look good......

Oscar García

unread,
Aug 3, 2019, 6:41:45 PM8/3/19
to MIT App Inventor Forum

Wow! This was what I wanted to know. It is rare that App Inventor in its blocks did not add those components such as: Bold, Italic and Plain. I understand that they are quite useful and that sometimes we all need them. Don't get mad at me with the many questions. I am a programmer at JAVA, but I am beginning to meet App Inventor and I think that programmers save us a lot of work. I only have 2 months that I started and I really like App Inventor.

Oscar García

unread,
Aug 3, 2019, 6:42:14 PM8/3/19
to MIT App Inventor Forum

Wow! This was what I wanted to know. It is rare that App Inventor in its blocks did not add those components such as: Bold, Italic and Plain. I understand that they are quite useful and that sometimes we all need them. Don't get mad at me with the many questions. I am a programmer at JAVA, but I am beginning to meet App Inventor and I think that programmers save us a lot of work. I only have 2 months that I started and I really like App Inventor.

Thanks, brother.

ABG

unread,
Aug 3, 2019, 11:06:40 PM8/3/19
to MIT App Inventor Forum
You can use those fonts in a WebViewer,
and change your text at run time.
See attached, and the Javascript Stunts section of FAQ

ABG

Courier.html
html_font_test.html
text.aia
Times.html
WebView fonts sampler.PNG
WebView fonts.PNG

BodyMindPower

unread,
Aug 4, 2019, 2:59:39 AM8/4/19
to MIT App Inventor Forum
@ Oscar García  "Also how can I use different sources such as: Arial, Courier, Verdana, etc. in a TextBox?"

add your preferred font types from Google Fonts to the assets ...

Reply all
Reply to author
Forward
0 new messages