Color embedding bug? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Color embedding bug? (
/showthread.php?tid=581325)
Color embedding bug? -
DTV - 12.07.2015
I'm not sure if this was around before 0.3.7 became official, but I noticed that color embedding doesn't work properly 100% of the time. An example of what I'm talking about is:
This should be
green and this should be
red.
However, this is g
reen and this i
s red.
I'm positive that I'm putting the embedding in the right place and it still offsets by a character or two and it's annoying the hell out of me. Anyone else experience this or am I just insane?
Re: Color embedding bug? -
Emre__ - 12.07.2015
We need to see your code example to help you.
Re: Color embedding bug? -
Vince - 12.07.2015
Are you use any other characters than the standard Latin characters? Color embedding does not work well with "exotic" character sets, e.g. Thai, because these characters take up two bytes whereas standard Latin alphabet characters only take up one byte.
Re: Color embedding bug? -
DTV - 22.07.2015
Edit: Answered
Re: Color embedding bug? -
Michalec - 22.07.2015
It's your font problem. Just change font to another one and check again. Some fonts are "broken" in SA-MP.