-Tall characters clipped by cursor border

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Ralph
Member
Member
Posts: 100
Joined: 2004-08-21, 14:58 UTC
Location: USA

-Tall characters clipped by cursor border

Post by *Ralph »

Moving the cursor over a file name in the main TC file lists can cause the top or bottom pixels of the file name to disappear for tall characters, which occur with certain font / font size / character/ computer combinations. The missing pixels occur where high or low pixels are covered by the cursor border. The SelectionFocus setting does not appear to make a difference. If I go to another folder tab in the same panel and then return to the original folder tab, the missing pixels are restored.

Checked:
-- TC 8.51 B3.
-- Arial, Regular, 7-point and 8-point. Underscores disappear on a new Windows 7 desktop computer but not on a 4-year-old Windows XP desktop computer or a 4-year-old Windows 7 laptop. The underscores sometimes reappear if the cursor is moved back over the file names. The actual file names are not affected.
-- MS Gothic, Regular, 8-point. The tops of tall characters are clipped; the tops don't reappear if the cursor is moved back over the file names. This font is on the 4-year-old XP computer only.
User avatar
Aezay
Senior Member
Senior Member
Posts: 269
Joined: 2003-02-12, 07:27 UTC
Location: Denmark
Contact:

Post by *Aezay »

Could you supply a screenshot of the issue?

Also, you could increase the icon size to make the item height taller.
Of all the planets I've been to, this one is my favorite.
Ralph
Member
Member
Posts: 100
Joined: 2004-08-21, 14:58 UTC
Location: USA

Post by *Ralph »

Here is a screenshot:
http://www.pbase.com/ralph_s/image/154849709/original.jpg
Despite the .jpg in the generic address above, the actual extension is .png. The file size is 32388 bytes.

Font: Arial, Regular, 8-point
The cursor was moved from the top of the upper panel, down to the 4th file.
The following characters were clipped: [ ] @ ( ) _
The underscore disappeared entirely.
The lower panel shows that the actual file names did not change.

I could make a screenshot later for the MS Gothic font, if the Arial example above is not sufficient.
Although I was confused at first by invisible underscores, I do not notice this problem often. If modifying TC to prevent clipped pixels would be difficult or would slow TC significantly, then I could live with the current situation and perhaps find another font for the file lists.
@Aezay: I don't use file icons, but as you say, they would provide a work-around. Thanks
Last edited by Ralph on 2014-03-16, 00:58 UTC, edited 1 time in total.
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

To increase line spacing you could use MinLineHeight in [Configuration] section in your main INI file.
There's no need to increase icon's size.

From Help
MinLineHeight=0 Sets minimum line height (in pixels) in file lists if the given value is >0. If it is negative, the absolute value is added to the normal line height, e.g. MinLineHeight=-2, height=16 -> 18
Ralph
Member
Member
Posts: 100
Joined: 2004-08-21, 14:58 UTC
Location: USA

Post by *Ralph »

@Gral: MinLineHeight=-3 is sufficient to take care of the problem with the Arial font. Thanks.

I noticed the problem because I sometimes disable .exe files by adding underscores to their extensions. I could use a different character for disabling .exe files.
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

I don't use underscore and dollar sign ($) for such a purposes because they are used by archivers for compressed files.
Even in my color scheme i set similar color for ??_ and ??$ as for other compressed files.
For disabling exe in most cases i use digits, sometimes ! or ~.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This happens when using the solid color frame cursor. There are currently no plans to change it, sorry.
Author of Total Commander
https://www.ghisler.com
User avatar
Dalai
Power Member
Power Member
Posts: 9966
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

That's why I use the inverted cursor.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ralph
Member
Member
Posts: 100
Joined: 2004-08-21, 14:58 UTC
Location: USA

Post by *Ralph »

The 32-bit version of TC allows disappearing underscores, but the 64-bit version does not. I am using TC 8.51 B3 and the Arial 8-point font.

If I set SelectionFocus, the cursor border consists of a 1-pixel-thick outer border having the color I chose, and a 1-pixel-thick inner border having the default color. I wonder if the extra inner border is involved with the disappearing underscores.

Both the 32-bit and 64-bit versions of TC 8.51 B3 give cursor borders 2 pixels thick on a new Windows 7 desktop computer, but only 1 pixel thick on a 4-year-old Windows 7 laptop. I would prefer a 1-pixel-thick border in all cases.

(Incidentally, the SelectionFocus entry in Help \ "Settings in the file wincmd.ini (Part 1)" would be easier to find if it included the word "color." I could place this minor comment in a separate topic if that would be appropriate.)

@Ghisler: I am not sure what is meant by "This happens when using the solid color frame cursor."
Are you referring to the adding of $3000000 to the SelectionFocus hex color? I tried adding $1000000 or commenting out SelectionFocus in WinCmd.ini, but the disappearing underscores were not affected.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The 64-bit vesion always redraws the complete line. The 32-bit doesn't so it works better on older, slower computers.
Author of Total Commander
https://www.ghisler.com
Post Reply