Forum > Cocoa

[SOLVED] macOS/Cocoa - Blurry text in TVirtualStringTree (again?)

(1/2) > >>

Hansaplast:
Maybe I am missing something here, but with the latest trunk (didn't test earlier trunk version) I noticed that TVirtualStringTree show very blurry text no matter what I try. This seems to have been a Cocoa specific issue in the past, so maybe we're just looking at regression in trunk?

Trunk versions build with FPCUpDeluxe:
   Lazarus 4.99 (rev main_4_99-1960-gb2a22bea0d)
   FPC 3.3.1 x86_64-darwin-cocoa

VirtualTreeview version:
   latest 5.5.3 (tested the one that came with Lazarus trunk and the one found on github)

macOS Sequoia 15.5, Apple Silicon, tested with x86_64 and AARCH64 builds.
Xcode/Commandline tools: 16.4.
Tested with and without extra compiler directive (-WM10.15).

Related (old) posts in the forum:
   TVirtualStringTree - poor fonts rendering quality on macOS
   Alternative to VirtualTreeView in Cocoa which does not mess up other controls?
   VirtualTreeView Font in Cocoa
   VirtualtreeView and DPI related issues

I did see this very old bug report, but it is locked - probably for a good reason hence my question here.

Does anyone know how to fix this? Or should I open a new bug report?

Example project attached.

Thaddy:
Change the font to the OS default and correct size.
Tested on M4 mini. You are probably using a font that is too small.
Trunk from today.
But feel free to open a bug report, because it is indeed not as intended: I had to adapt the font size!

Hansaplast:
Thanks Thaddy for chiming in - always good to know it's not just me ...

I still get the same blurry text with the default font.
Tried sizes 8, 10, 12 and 14, and they all remain blurry (had to changed deafultNodeHeight).
What size are you using?

Thaddy:
Either 16 or -12. Fonts can have negative values to translate to pixels or points.
I used -12.
I do not have a fancy screen, just full HD, not a 4K.

Hansaplast:
Thanks Thaddy.
Unfortunately; the text remains blurry.
Thank you for the tip though. Running on a Macbook Pro M1 - maybe it looks different, as you're using a different screen?
Posted a bug report (41708) - maybe others can give it a thumb up so the devs know this is not just a random incident  ;)

Navigation

[0] Message Index

[#] Next page

Go to full version