fvwm3 icon indicating copy to clipboard operation
fvwm3 copied to clipboard

FvwmPager & FvwmIconMan Balloons show garbled text.

Open llc0930 opened this issue 2 years ago • 5 comments

Upfront Information

  • Fvwm3 version : fvwm3 1.0.4 (released) with support for: XPM, PNG, SVG, Shape, XShm, SM, Bidi text, XRandR, XRender, XCursor, XFT, NLS
  • Linux distribution : Void Linux musl-libc
  • Platform : x86_64

Expected Behaviour

Window Title Bar & FvwmIconMan should always show CJK fonts correctly. FvwmPager & FvwmIconMan Balloons should show CJK fonts correctly.

Actual Behaviour

If restart fvwm, Window Title Bar & FvwmIconMan show garbled text, but it can repare by switch tab etc. FvwmPager & FvwmIconMan Balloons show garbled text.

Steps to Reproduce

  1. Start with config file.
  • FvwmPager *FvwmPager: BalloonFont "xft:Noto Sans Mono CJK TC:size=8:antialias=True"
  • FvwmIconMan no way to set BalloonFont?
  1. Open any program output CJK title.

Extra Information

  • Does the problem also happen with Fvwm2? From my memory maybe yes.

  • Does Fvwm3 crash? No.

  • Screen capture:

    1. FvwmPager Balloons 01
    2. FvwmIconMan Balloons 02
    3. If restart fvwm 03

llc0930 avatar Mar 07 '22 17:03 llc0930

Have you tried setting a TTF font for the icon manager (TipsFont) and the pager (BaloonFont)?

topcat001 avatar Aug 04 '22 17:08 topcat001

@topcat001, I don't have the * symbol in title or balloons in debian sid, only garbled text in FvwmIconMan Balloons.

fvwm3 1.0.4 (released) with support for: ReadLine, XPM, PNG, SVG, Shape, XShm, SM, Bidi text, XRandR, XRender, XCursor, XFT, NLS

I'm not sure if musl or ReadLine is causing the * symbol problem?

  1. FvwmPager Balloons -> normal 2022-08-05-03:36:48-r
  2. FvwmIconMan Balloons -> title disappearing problem here too? 2022-08-05-03:37:06-r
  3. After restart fvwm 2022-08-05-03:37:28-r

llc0930 avatar Aug 04 '22 19:08 llc0930

I notice that you are using a TTF font in the pager balloons but the default fixed raster font in the icon manager balloons. Do the icon manager balloons behave similarly to the pager ones if you set them to use the same font (using TipsFont)?

topcat001 avatar Aug 04 '22 19:08 topcat001

So its name is TipsFont in FvwmIconMan. 2022-08-05-04:24:03-r 2022-08-05-04:24:17-r Beside * symbol problem, only title disappearing problem left now. It's enough for me to use it normally, thank you.

llc0930 avatar Aug 04 '22 20:08 llc0930

Didn't notice the name was different before, maybe you can consider adding TipsFont line in the default config? Below *FvwmIconMan: Tips needed line.

llc0930 avatar Aug 04 '22 20:08 llc0930

@lolicon0930 it appears the issue is just with the font being used. FvwmIconMan needed to have its TipsFont configured to control what font is used in the balloons. If this wasn't configured it would fallback to a font which may not have support for the characters you want to see. The PR I just made will ensure that FvwmIconMan tips font will use the FvwmIconMan font if it isn't explicitly set to help avoid the this issue.

somiaj avatar Nov 07 '22 00:11 somiaj

@somiaj I believe your PR fixed the garbled text caused by TipsFont not being set, but that may not be the whole problem unless you are sure that * symbol problem is also caused by TipsFont. Since I'm no longer using the Void Linux musl-libc version, I can no longer test this issue.

llc0930 avatar Jan 17 '23 15:01 llc0930