• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pango support multiline
#5
I don't think I currently support textcolor - it throws a few wrenches in my design. What I'll probably do is, before I process all of the lines normally for the file, I'll go through and take advantage of the pango syntax to transform the file as needed. So 

Code:
{textcolor red}
[D]When I wake up, yeah, I know I'm gonna be,
I'm gonna [G]be the man who [A]wakes up next to [D]you.
[D]When I go out, yeah, I know I'm gonna be
{textcolor}

would internally become

Code:
<span color="red">[D]When I wake up, yeah, I know I'm gonna be,</span>
<span color="red"> I'm gonna [G]be the man who [A]wakes up next to [D]you.</span>
<span color="red"> [D]When I go out, yeah, I know I'm gonna be</span>

handling it this way is more likely to work without introducing large bugs. I can look at the other directives that are similar to textcolor and handle them in a similar way.  Can you think of any reason this would not work?

Thanks,
Mike
Reply


Messages In This Thread
Pango support multiline - by spflmf - 06-05-2023, 10:39 PM
RE: Pango support multiline - by sciurius - 06-06-2023, 01:14 AM
RE: Pango support multiline - by spflmf - 06-06-2023, 02:53 AM
RE: Pango support multiline - by sciurius - 06-06-2023, 07:18 AM
RE: Pango support multiline - by Zubersoft - 06-06-2023, 08:34 AM



Users browsing this thread:
2 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2024 MyBB Group.