Question about Font Style
Posted: Sat Apr 22, 2017 8:01 pm
Hello guys,
is there a way to get the current font style?
I'm trying to refine a function I've written some time ago to calculate the text width taking into account the Hollywood formatting tags, actually they are stripped out because native TextWidth() calculate, for example, character as they were printable characters.
So my plan is to clean up the string from the tags except the bold one, on the cleaned string I want to parse the bold portions of text and calculate the real text width using SetFontStyle() instead of the .
But when I call this function I need to know what is the current Font Style so I can restore it back at the end of my function.
is there a way to get the current font style?
I'm trying to refine a function I've written some time ago to calculate the text width taking into account the Hollywood formatting tags, actually they are stripped out because native TextWidth() calculate, for example, character as they were printable characters.
So my plan is to clean up the string from the tags except the bold one, on the cleaned string I want to parse the bold portions of text and calculate the real text width using SetFontStyle() instead of the .
But when I call this function I need to know what is the current Font Style so I can restore it back at the end of my function.