Truncation a name without the need for this

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
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: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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
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
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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
Maybe it's caused by using Windows XP in Classic Theme? I'll continue thinking about it...
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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
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.
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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
Thank you.
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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