Thread Tools Display Modes
12-19-15, 06:16 PM   #1
badness
A Cliff Giant
 
badness's Avatar
Join Date: May 2010
Posts: 74
Yea i already tired all the basic stuff like changing the files and the names and it doesn't fit like you mentioned. I'm just not sure where in the lua to make the borders fit properly. I'm also trying to get the textures fit rBuffFrameStyler.

Last edited by badness : 12-19-15 at 07:02 PM.
  Reply With Quote
12-20-15, 12:54 PM   #2
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Whatever font you're using doesn't have a symbol for the character it's trying to represent, you'll have to try a different one.
  Reply With Quote
12-20-15, 02:17 PM   #3
badness
A Cliff Giant
 
badness's Avatar
Join Date: May 2010
Posts: 74
Interesting take but I use that font throughout my entire UI and those names or characters show up in their entirety on any other addon...its just StufRaid which gives me this problem.
  Reply With Quote
12-20-15, 03:38 PM   #4
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Originally Posted by badness View Post
Interesting take but I use that font throughout my entire UI and those names or characters show up in their entirety on any other addon...its just StufRaid which gives me this problem.
If that's the case, and judging by the fact that the question marks are at the end of the string, it's probably trying to truncate the text in a way that isn't UTF-8 safe.

Those "special" characters use 2 bytes to display, and string.sub counts individual bytes, so when it tries to cut the string off in the middle of a multi-byte character it ends up attempting to display the first byte as a character on its own, which is why it's showing a question mark.

In the picture, names are being truncated to 6 characters. Triñ takes 5 bytes to display 4 characters because of the ñ, this only leaves 1 more byte for the string, so presumably the next character also requires 2 bytes to display and it's being cut off after the first one.

Last edited by semlar : 12-20-15 at 03:45 PM.
  Reply With Quote
12-21-15, 09:43 AM   #5
badness
A Cliff Giant
 
badness's Avatar
Join Date: May 2010
Posts: 74
Yea this makes a lot more sense so if I understand you correctly there is not any definite way to fix this judging by where i truncate the text and where the alt character falls.

Also I still cant get the Lily Borders to fit rBuffFrameSytler any help?
  Reply With Quote
12-21-15, 11:49 AM   #6
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Originally Posted by badness View Post
Yea this makes a lot more sense so if I understand you correctly there is not any definite way to fix this judging by where i truncate the text and where the alt character falls.
Oddly enough Stuf attempts to use a "string.utf8sub" function if it's already been defined somewhere, but as far as I can tell doesn't create one itself. They list UTF8 as an optional dependency in StufRaid's toc file, so presumably you could just download this library and install it like an addon and have it behave the way you expect it to.

Personally I would have just set a max width on the font string itself and let it wrap any letters that don't fit to an invisible line; since individual characters have varying widths and different fonts have different sizes you'd have to adjust the character limit every time you change how it looks to make sure it fits, and "Iiiiii" takes up substantially less space than "Mmmmmm" even though they use the same number of letters.
  Reply With Quote
12-21-15, 04:18 PM   #7
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Yes, I agree with the fontstring width suggestion.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Stuf Raid/Lily Icons Help


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off