Page 1 of 1

Truncation a name without the need for this

Posted: 25 Jan 2018 21:25
by BNyzjrCWDf
Hello.

Perhaps I found an error in XYplorer (18.60).
Screenshot
Image

Would you please fix it?
Thanks.

Re: Truncation a name without the need for this

Posted: 25 Jan 2018 22:09
by admin
1) What's the font name and size?
2) Please post the filename here as letters (not as picture).
3) Please attach screenshots here in the forum, not as external link.

Re: Truncation a name without the need for this

Posted: 26 Jan 2018 09:35
by BNyzjrCWDf
admin wrote:1) What's the font name and size?
I only use the font "Code2000", because it is a font with full UNICODE support.
Fonts from Microsoft are not.
I need to support all UNICODE code points in the font, because I use a lot of different languages ​​(English, Russian, Japanese, Polish, German, Chinese, Korean).
XYP_fonts.JPG
admin wrote:2) Please post the filename here as letters (not as picture).
Folders.zip
admin wrote:3) Please attach screenshots here in the forum, not as external link.
2 xyplorer_truncate.JPG

Re: Truncation a name without the need for this

Posted: 26 Jan 2018 10:00
by admin
I installed the font and tested your files: no problem!
2018-01-26_095646.png
Maybe it's caused by using Windows XP in Classic Theme? I'll continue thinking about it...

Re: Truncation a name without the need for this

Posted: 26 Jan 2018 10:26
by admin
In the next beta version, you can do this:

Code: Select all

text get("textmetrics", "uPpEr_FAQ");
Result should be something like this:

Code: Select all

Text: uPpEr_FAQ

Width: 83/85/83 pixels
Height: 19 pixels
Fontname: Code2000
Fontsize: 11,25
Fontbold: No
Fontitalic: No
These three values should be identical, but they are not.
83/85/83
This means the font is not correctly constructed, in other words the font has a bug. :bug:

Now it seams that the Win 8.1 API works around that bug, but the XP API does not.
Over here (Win 8.1) that string has 83 pixels, and is not truncated.

Re: Truncation a name without the need for this

Posted: 26 Jan 2018 15:17
by BNyzjrCWDf
admin wrote: This means the font is not correctly constructed, in other words the font has a bug. :bug:
Thanks a lot. I will look for another full UNICODE font.

But why do Explorer and CubicExplorer display these names correctly?

Re: Truncation a name without the need for this

Posted: 26 Jan 2018 17:00
by admin
I can tell you more after you did the test:

Code: Select all

text get("textmetrics", "uPpEr_FAQ");
Next beta...

BTW, it might just be one buggy character, maybe the capital "Q"...

Re: Truncation a name without the need for this

Posted: 26 Jan 2018 19:51
by BNyzjrCWDf
admin wrote:I can tell you more after you did the test:

Code: Select all

text get("textmetrics", "uPpEr_FAQ");
Next beta...
I just downloaded version 18.70. The problem is present.
Ok. I will wait next beta version to run the test (text get("textmetrics", "uPpEr_FAQ");).

I also noticed that the Explorer also truncates names in "List" mode. Microsoft must die.
xyp_addition.JPG
admin wrote:BTW, it might just be one buggy character, maybe the capital "Q"...
Also I want to say that the problem is not in the symbol "Q". Folder "_Tor" was also truncated. Folder "TOR" was not truncated. I'm assuming the problem is with the upper/lower case of letters.
rtewrtwe.JPG
Good luck.

Re: Truncation a name without the need for this

Posted: 27 Jan 2018 11:06
by admin
Thanks for the info.

The new beta is available now.

Re: Truncation a name without the need for this

Posted: 27 Jan 2018 12:45
by BNyzjrCWDf
-------------------------------------
text get("textmetrics", "uPpEr_FAQ");

Text: uPpEr_FAQ
Width: 83 pixels (83/85/83)
Height: 19 pixels
Fontname: Code2000
Fontsize: 11,25
Fontbold: No
Fontitalic: No
-------------------------------------
text get("textmetrics", "lower_faq");

Text: lower_faq
Width: 74 pixels (74/74/74)
Height: 19 pixels
Fontname: Code2000
Fontsize: 11,25
Fontbold: No
Fontitalic: No
-------------------------------------
text get("textmetrics", "_Tor");

Text: _Tor
Width: 34 pixels (34/36/34)
Height: 19 pixels
Fontname: Code2000
Fontsize: 11,25
Fontbold: No
Fontitalic: No
-------------------------------------
text get("textmetrics", "TOR");

Text: TOR
Width: 30 pixels (30/30/30)
Height: 19 pixels
Fontname: Code2000
Fontsize: 11,25
Fontbold: No
Fontitalic: No
-------------------------------------

Re: Truncation a name without the need for this

Posted: 27 Jan 2018 13:26
by admin
Curious results. I cannot see any suspicious pattern or character.

Anyway, I think I can work around that truncation (next beta). Always a pleasure to surpass Explorer... :biggrin:

Re: Truncation a name without the need for this

Posted: 27 Jan 2018 13:51
by BNyzjrCWDf
admin wrote:Anyway, I think I can work around that truncation (next beta). Always a pleasure to surpass Explorer... :biggrin:
Thank you so much. I'll look forward to the new version.

Re: Truncation a name without the need for this

Posted: 03 Feb 2018 19:51
by admin
Did it work?

Re: Truncation a name without the need for this

Posted: 03 Feb 2018 21:38
by BNyzjrCWDf
admin wrote:Did it work?
Yes! Now everything is displayed perfectly. Thank you so much! XYplorer is the best file manager.
dfgwretrwtre.JPG
Thank you.

Re: Truncation a name without the need for this

Posted: 18 Mar 2018 12:59
by admin
Had to limit this workaround to XP. It lead to other problems in other Windows versions.
See viewtopic.php?p=157277#p157277