Custom Text Formatting (Previously: Getting long results in a program)
|
04-07-2024, 11:32 AM
Post: #49
|
|||
|
|||
RE: Getting long results in Program
(04-07-2024 09:31 AM)Tyann Wrote: I'd prefer to have 2 atextout_p functions, one with 8 parameters and the other with 9, because we'll have the s,g,x,y....etc variables directly. I understand your argument regarding the issue with the list as a parameter. However, for me, the best solution would be to create only one function "atextout_p", which always takes 9 parameters and contains all the drawing logic once, without breaking it down into different cases. Since it's an internal function anyway, the last parameter can be handled in many ways internally. However, if you prefer two functions, I won't insist on anything. Regarding ATEXTSIZE, after all, the height of the selected font can be measured using TEXTSIZE, so it doesn't matter that it doesn't change linearly. By applying formatting, we only change the width, which can be calculated for italics considering the previously measured height. And for bold, we add an additional 1 pixel. This way, it can be done very precisely. Piotr Kowalewski |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 67 Guest(s)