[Plugin] tag text

Post your completed addons to share with the community

Post » Mon Dec 22, 2014 3:33 am

@Sestenes

Sorry, this sample capx is too large. You might provide a segment of text which had bugs.
B
108
S
26
G
272
Posts: 4,472
Reputation: 152,279

Post » Mon Dec 22, 2014 4:33 am

rexrainbow wrote:@Sestenes

Sorry, this sample capx is too large. You might provide a segment of text which had bugs.


Sorry about that. Here is a simple capx that illustrates the bug.

Both buttons "Plain" and "Styled" just append a simple string: "More text more text more text more text." The only difference is that the "Styled" button uses a tag text class to make the font color red.

You will notice that after you use the "Styled" button at least once, then when appending additional non-styled text to the tag text object there will occasionally be an odd line break that is clearly not a part of the event sheet logic. Just press "Styled" once, and then "Plain" a few times to see the problem.

Cheers, and thanks for looking into the problem.
You do not have the required permissions to view the files attached to this post.
B
9
S
1
Posts: 33
Reputation: 612

Post » Mon Dec 22, 2014 5:26 am

Update

Fix bug of wrapping text.


@Sestenes

Thanks for pointing this bug. Please download it and try again.
B
108
S
26
G
272
Posts: 4,472
Reputation: 152,279

Post » Mon Dec 22, 2014 1:18 pm

Thanks for the fix! This is a great addition to C2 :-)
B
9
S
1
Posts: 33
Reputation: 612

Post » Tue Feb 17, 2015 9:37 am

Update

Fix bug when the content has ">". Tested passed with my sample capx.
(But I am not good at regex, I am not sure this fixed will not bring more bugs. :oops: )


@norman74

Thanks, I had fixed it.
B
108
S
26
G
272
Posts: 4,472
Reputation: 152,279

Post » Wed Mar 04, 2015 1:55 pm

@rexrainbow

Yo rex!

There seems to be a bug in your plugin with the TagText.textWidth property. It always return 0. I've compared with the original text object and there seem to be some differences. The textHeight however works as intended.

Pretty gamebreaking for now since i need it for aligment of stuff.

I've attatched a capx demonstrating the problem.

Otherwise great plugin man! ^^

Cheers mate!
You do not have the required permissions to view the files attached to this post.
B
4
G
2
Posts: 8
Reputation: 716

Post » Wed Mar 04, 2015 3:01 pm

@Maisey

Thanks. I had fixed it, please download plugin and try again.
B
108
S
26
G
272
Posts: 4,472
Reputation: 152,279

Post » Fri Mar 06, 2015 6:45 pm

Hey @rexrainbow, the plugins you've made are awesome timesavers! And thank you for creating them. :)

I'm running into issues with dynamic text and multiple web fonts. I'm setting classes but am getting odd results. Only the last webfont is being respected.
You do not have the required permissions to view the files attached to this post.
B
3
Posts: 5
Reputation: 185

Post » Sat Mar 07, 2015 12:54 am

@jayrok

It only support one web font currently. Add it in my TODO list.
B
108
S
26
G
272
Posts: 4,472
Reputation: 152,279

Post » Sun Mar 08, 2015 4:11 pm

Update

Support webfonts in tags.


@jayrok
Here it is. I also put your test case in my sample capxs, thanks.
B
108
S
26
G
272
Posts: 4,472
Reputation: 152,279

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: luvleggs and 0 guests