[9.21a] Text comparison not displaying certain text

Please report only one bug per message!

Moderators: white, sheep, Hacker, Stefan2

Post Reply
User avatar
deus-ex
Power Member
Power Member
Posts: 723
Joined: 2003-02-10, 17:45 UTC

[9.21a] Text comparison not displaying certain text

Post by *deus-ex » 2018-09-13, 07:43 UTC

Text comparison does not display certain lines of text, depending on the configured font. Only when switching to binary comparison the string in question is correctly visualized. For example I have configured "Lucida Console" as the comparison font.

Test set with content taken from XnViewMP's xnview.ini showcasing the issue: download
Best regards
deus-ex

User avatar
petermad
Power Member
Power Member
Posts: 8060
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: [9.21a] Text comparison not displaying certain text

Post by *petermad » 2018-09-13, 10:34 UTC

License #524
Danish Total Commander Translator
TC 9.21a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit and TC 2.92b1 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
deus-ex
Power Member
Power Member
Posts: 723
Joined: 2003-02-10, 17:45 UTC

Re: [9.21a] Text comparison not displaying certain text

Post by *deus-ex » 2018-09-13, 15:01 UTC

Hi petermad,

thanks for your response and providing the screenshot, which help a lot to narrow down the issue further. From your screenshot I noticed that your font size is set to "7", whereas I'm using "17". When I change the size to "7" the string is displayed fine here too, but with a font size of "10" or higher the string isn't displayed anymore. It appears to be a lack of available space required by each character at a certain font size to be displayed properly. The binary comparison isn't limited by the font size due to the structured display with spacing between each character, even with the highest selectable font size of "78" for "Luciada Console" the string gets displayed here.

So either I have to go with a smaller font size setting, or try finding another font that suits me and doesn't have this limitation.
Best regards
deus-ex

User avatar
Usher
Member
Member
Posts: 129
Joined: 2011-03-11, 10:11 UTC

Re: [9.21a] Text comparison not displaying certain text

Post by *Usher » 2018-09-13, 17:21 UTC

deus-ex wrote:
2018-09-13, 15:01 UTC
your font size is set to "7", whereas I'm using "17".
How did you get size 17 (seventeen)? There is NO such a size.

Note also that if you need to use larger font (and icon) sizes, in most cases it is better to change globally desktop settings rather than dig in settings for every separate program.
Regards from Poland
Andrzej P. Wozniak

User avatar
deus-ex
Power Member
Power Member
Posts: 723
Joined: 2003-02-10, 17:45 UTC

Re: [9.21a] Text comparison not displaying certain text

Post by *deus-ex » 2018-09-13, 18:30 UTC

How did you get size 17 (seventeen)? There is NO such a size.
You can manually enter values into the drop-down list. For my setup I found that particular value actually fitting better than the available "16" or "18". Meanwhile I have found another font to replace Lucida Console, and once more I ended up using individual font sizes that I had to enter myself.
Note also that if you need to use larger font (and icon) sizes, in most cases it is better to change globally desktop settings rather than dig in settings for every separate program.
Yes, I do know that and I already visited and changed those settings beforehand. While sometimes you cannot achieve satisfying results for a certain case adjusting global settings, application individual settings to fine tune do come in handy, like in this particular case. Thank you for hinting, though.
Best regards
deus-ex

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36504
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [9.21a] Text comparison not displaying certain text

Post by *ghisler(Author) » 2018-09-18, 08:08 UTC

I can confirm the problem, but it looks like a Windows bug to me, so I will probably not be able to fix it. I will check it in the debugger. In general, the compare tool isn't well suited for very long names without line breaks.
Author of Total Commander
http://www.ghisler.com

User avatar
Usher
Member
Member
Posts: 129
Joined: 2011-03-11, 10:11 UTC

Re: [9.21a] Text comparison not displaying certain text

Post by *Usher » 2018-09-18, 13:14 UTC

deus-ex wrote:
2018-09-13, 18:30 UTC
You can manually enter values into the drop-down list. For my setup I found that particular value actually fitting better than the available "16" or "18".
If you can see text properly displayed for predefined font sizes (test Lucida Console with size 16) or for other monospaced fonts (test similar Dejavu Sans Mono and more narrow Ubuntu Mono font), it may be a problem with the way how MS programmers "fixed" some security holes in font rendering libraries. They (in MS) tend to provide quick updates that block buggy features (completely of partially) and only then start to work on real fix (or ignore fix if users don't complain too loudly about missing features).
Regards from Poland
Andrzej P. Wozniak

Post Reply