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...). 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 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 71 Guest(s)