Post Reply 
Custom Text Formatting (Previously: Getting long results in a program)
03-24-2024, 10:26 AM
Post: #9
RE: Getting long results in Program
(03-24-2024 09:11 AM)Tyann Wrote:  According to a small text file called Betanotes written by Cyrille, it is possible in TEXTOUT and TEXTOUT_P to use flags to give attributes to text ('Bold', 'Underlined', 'Italic' etc...).
I wonder if anyone has achieved a convincing result with this?

Unfortunately, this is one of those cases that were implemented but did not work correctly from the beginning. In this extended form of TEXTOUT_P, the flags parameter (the last parameter) is ignored, and even the basic functionality of displaying text does not work correctly because quotation marks are added, and there is no way to bypass this. Therefore, it can only be used for expressions or numerical values (but without this advanced formatting).
The programmer even admits [here] that they did not test this...

However, this formatting works correctly in PRINT2D (albeit in a slightly truncated form, for example, there is no italics), so if you have static texts that you can display on the terminal during program startup and then buffer them as graphic slices (retrieved from G0) for later use, it may be useful in some situations.

For example, bold undercored text:
PRINT2D("ABC",7,255,3)

Piotr Kowalewski
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Getting long results in Program - komame - 03-24-2024 10:26 AM
RE: Custom Text Formatting - Tyann - 04-15-2024, 06:55 PM
RE: Custom Text Formatting - komame - 04-15-2024, 07:42 PM
RE: Custom Text Formatting - Tyann - 04-16-2024, 04:38 AM
RE: Custom Text Formatting - komame - 04-16-2024, 06:02 AM



User(s) browsing this thread: 71 Guest(s)