Truncation a name without the need for this

Things you’d like to miss in the future...
Post Reply
BNyzjrCWDf
Posts: 15
Joined: 25 Jan 2018 20:42

Truncation a name without the need for this

Post by BNyzjrCWDf »

Hello.

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

Would you please fix it?
Thanks.

admin
Site Admin
Posts: 60526
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Truncation a name without the need for this

Post 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.

BNyzjrCWDf
Posts: 15
Joined: 25 Jan 2018 20:42

Re: Truncation a name without the need for this

Post 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
XYP_fonts.JPG (94.09 KiB) Viewed 1943 times
admin wrote:2) Please post the filename here as letters (not as picture).
Folders.zip
(1.15 KiB) Downloaded 60 times
admin wrote:3) Please attach screenshots here in the forum, not as external link.
2 xyplorer_truncate.JPG
2 xyplorer_truncate.JPG (321.79 KiB) Viewed 1943 times

admin
Site Admin
Posts: 60526
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Truncation a name without the need for this

Post by admin »

I installed the font and tested your files: no problem!
2018-01-26_095646.png
2018-01-26_095646.png (9.32 KiB) Viewed 1937 times
Maybe it's caused by using Windows XP in Classic Theme? I'll continue thinking about it...

admin
Site Admin
Posts: 60526
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Truncation a name without the need for this

Post 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.

BNyzjrCWDf
Posts: 15
Joined: 25 Jan 2018 20:42

Re: Truncation a name without the need for this

Post 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?

admin
Site Admin
Posts: 60526
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Truncation a name without the need for this

Post 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"...

BNyzjrCWDf
Posts: 15
Joined: 25 Jan 2018 20:42

Re: Truncation a name without the need for this

Post 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
xyp_addition.JPG (170.84 KiB) Viewed 1892 times
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
rtewrtwe.JPG (112.22 KiB) Viewed 1892 times
Good luck.

admin
Site Admin
Posts: 60526
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Truncation a name without the need for this

Post by admin »

Thanks for the info.

The new beta is available now.

BNyzjrCWDf
Posts: 15
Joined: 25 Jan 2018 20:42

Re: Truncation a name without the need for this

Post 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
-------------------------------------

admin
Site Admin
Posts: 60526
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Truncation a name without the need for this

Post 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:

BNyzjrCWDf
Posts: 15
Joined: 25 Jan 2018 20:42

Re: Truncation a name without the need for this

Post 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.

admin
Site Admin
Posts: 60526
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Truncation a name without the need for this

Post by admin »

Did it work?

BNyzjrCWDf
Posts: 15
Joined: 25 Jan 2018 20:42

Re: Truncation a name without the need for this

Post 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
dfgwretrwtre.JPG (92.14 KiB) Viewed 1790 times
Thank you.

admin
Site Admin
Posts: 60526
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Truncation a name without the need for this

Post by admin »

Had to limit this workaround to XP. It lead to other problems in other Windows versions.
See viewtopic.php?p=157277#p157277

Post Reply