[confirm] GUIListControl text scroll problem for international characters (1 Viewer)

ddv2005

Portal Member
February 1, 2008
4
0
Home Country
United States of America United States of America
If GUIListItem has long text with non-English characters then GUIListControl scrolling it jumps on several pixels after each non-English char.
To reproduce the problem just create empty file with long international name (like "Это русское длинное название файла.avi" ) in your Video folder. Then start MP, going to the Video, navigate to this file name and look how GUIListControl scrolling this text.

I think that problem in RenderText method. It get width of each char by calling font.GetTextExtent(wTmp.ToString(), ref fWidth, ref fHeight). And
if (_scrollPosititionX - _scrollOffsetX >= fWidth) then it going to the next char. I think that fWidth for non-English char is larger than actual char width in the string.

Dmitry
 

Users who are viewing this thread

Top Bottom