Set Font Format

Hello @Vladimir_PV

I have a somewhat simple question I’m having issues with; maybe I’m missing something.

How do I set the format (e.g to bold) of a selected text in a “text area” widget, at the click of a button?

NB:

  1. Using “Action > Property > Font > weight” only sets the bold format for the entire text body; not for the selection.

2.The entire text body has two paragraphs. I’ve attempted using HTML tags on the text but the space (line break) between the two paragraphs seem to be interfering with the rendering.

The tags work on the first paragraph, but not on the second paragraph; so the bold tag renders bold text on the first paragraph but not on the second.

Any help would be much appreciated.

Here is a project using button action for navigation and text widget to use some of html tags to format the text.I hope it would help you . some tags,

  1. -> start of html document.
  2. Purpose : → it sets text bold with color.


  3. This is next line. → It sets line in the next para.
  4. Purpose → It keeps the text bold.
  5. Project Purpose</ h> → It prints bigger text.
  6. Project Purpose -> It also print still bigger font.

  7. -> End of html document.

html-tags1
html-tags 2
Button Action Navigation Html tags.flp (14.6 KB)

Thanks a lot. Your input is much appreciated.

I’ve been quite busy and haven’t had ample time to respond to this.

Sadly however, this is not the solution to my issue. The explanation you provided in text and flp merely describes how HTML tags are applied, of which I’m quite aware.

But as I highlighted earlier, the HTML tags fail to render in a “Text Area” widget when the body of text is split into multiple paragraphs by line breaks. The tags only render on the first paragraph, but not on later paragraphs (e.g. bold tag doesn’t produce bold text on lower paragraphs).

However, when the line breaks are removed and the paragraphs are joined into one body of text, the HTML tags render normally across all sections.

Until a workable solution is provided I’ll be considering this as a bug requiring fixing, as I also focus on a work-around for the issue.

On a more particular side note, I’m of the suggestion that if you have tutorials you wish to share on the forum, you’d be better off posting them on a personal YouTube channel and then sharing the videos on the forum as a solution to questions or issues. Beyond just tutorials, this is the core aim of the forum.

Alternatively, if need be, you can make a single tutorial post and share your videos to that post regularly by updating it.

In this way, we can avoid re-populating the forum with only tutorials while several questions become lost down the line and ultimately unattended to.

Again, your input is much appreciated. Thanks.


Back to Flipabit >
Copyright © 2018. Flipabit Team. All rights reserved.