Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Widgetset
»
Cocoa
»
[SOLVED] macOS/Cocoa - Blurry text in TVirtualStringTree (again?)
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
WIKI Timeout issues
Please read here if you have trouble connecting to the wiki
Recent
Lazarus 4, What's wrong w...
by
Khrys
[
Today
at 06:51:53 am]
lazbuild command line swi...
by
n7800
[
Today
at 04:21:35 am]
Build failure
by
user5
[
Today
at 04:11:04 am]
dBGRidController and Erro...
by
essence-ciel
[
Today
at 01:15:11 am]
CEF component - the first...
by
n7800
[
Today
at 12:37:13 am]
"LCLVersion" in *.lfm fil...
by
zeljko
[June 17, 2025, 11:05:36 pm]
Layout problem by nested ...
by
Martin_fr
[June 17, 2025, 10:42:13 pm]
FPC for high-performance ...
by
Thaddy
[June 17, 2025, 09:42:33 pm]
How to stop macro executi...
by
440bx
[June 17, 2025, 09:19:45 pm]
Lazarus 4.0 RC3
by
mattias
[June 17, 2025, 09:04:03 pm]
x86_64-win64 annoys me
by
Nicole
[June 17, 2025, 08:28:16 pm]
OpenDialog and mouse even...
by
Martin_fr
[June 17, 2025, 07:37:19 pm]
InstallAware 2025 Sources...
by
msintle
[June 17, 2025, 06:49:04 pm]
Sqlite & Zeos
by
CharlyTango
[June 17, 2025, 05:01:43 pm]
Strict Aliasing Rule
by
nixbody
[June 17, 2025, 04:19:41 pm]
Lazarus 4 - I give up and...
by
Nicole
[June 17, 2025, 04:01:40 pm]
LazUtils, FileUtil.CopyDi...
by
AlexTP
[June 17, 2025, 02:52:02 pm]
How to run an external pr...
by
Thaddy
[June 17, 2025, 12:42:30 pm]
Help needed setting up LA...
by
silvercoder70
[June 17, 2025, 12:12:06 pm]
Font character being clip...
by
Coxy
[June 17, 2025, 12:04:54 pm]
FPReport designer, am I u...
by
dseligo
[June 17, 2025, 10:28:13 am]
Which RTL Unit do I have ...
by
MarkMLl
[June 17, 2025, 09:41:10 am]
Has anyone loaded ReactOS...
by
MarkMLl
[June 17, 2025, 09:33:17 am]
IDE Lazarus 4.0 on Window...
by
Martin_fr
[June 17, 2025, 09:22:58 am]
[SOLVED] Erm ... TPageCon...
by
EganSolo
[June 17, 2025, 08:32:30 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] macOS/Cocoa - Blurry text in TVirtualStringTree (again?) (Read 539 times)
Hansaplast
Hero Member
Posts: 730
Tweaking4All.com
[SOLVED] macOS/Cocoa - Blurry text in TVirtualStringTree (again?)
«
on:
June 10, 2025, 09:46:47 am »
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.
«
Last Edit: June 12, 2025, 02:25:13 pm by Hansaplast
»
Logged
https://www.tweaking4all.com
https://www.tweaking4all.nl
Thaddy
Hero Member
Posts: 17148
Ceterum censeo Trump esse delendam
Re: macOS/Cocoa - Blurry text in TVirtualStringTree (again?)
«
Reply #1 on:
June 10, 2025, 10:01:09 am »
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!
«
Last Edit: June 10, 2025, 10:09:19 am by Thaddy
»
Logged
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.
Hansaplast
Hero Member
Posts: 730
Tweaking4All.com
Re: macOS/Cocoa - Blurry text in TVirtualStringTree (again?)
«
Reply #2 on:
June 10, 2025, 10:13:12 am »
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?
Logged
https://www.tweaking4all.com
https://www.tweaking4all.nl
Thaddy
Hero Member
Posts: 17148
Ceterum censeo Trump esse delendam
Re: macOS/Cocoa - Blurry text in TVirtualStringTree (again?)
«
Reply #3 on:
June 10, 2025, 10:17:54 am »
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.
«
Last Edit: June 10, 2025, 10:21:25 am by Thaddy
»
Logged
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.
Hansaplast
Hero Member
Posts: 730
Tweaking4All.com
Re: macOS/Cocoa - Blurry text in TVirtualStringTree (again?)
«
Reply #4 on:
June 10, 2025, 10:26:24 am »
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
«
Last Edit: June 10, 2025, 10:29:08 am by Hansaplast
»
Logged
https://www.tweaking4all.com
https://www.tweaking4all.nl
Hansaplast
Hero Member
Posts: 730
Tweaking4All.com
Re: macOS/Cocoa - Blurry text in TVirtualStringTree (again?)
«
Reply #5 on:
June 12, 2025, 02:24:43 pm »
Thanks Rich2014 for pointing me in the right direction! (BugTracker)
It was far from obvious to me that
TVirtualStringTree
is supposed to be replaced with
TLazVirtualStringTree
(laz.VirtualTrees), not to mention the migration didn't go quite as smooth as I'd hoped. Either way though it fixed the issue.
Since others have seen this issue, I figured it would be good to post "the fix" here.
Replace
TVirtualStringTree
with
TLazVirtualStringTree
(unit: laz.VirtualTrees).
Logged
https://www.tweaking4all.com
https://www.tweaking4all.nl
zeljko
Hero Member
Posts: 1764
Re: [SOLVED] macOS/Cocoa - Blurry text in TVirtualStringTree (again?)
«
Reply #6 on:
June 12, 2025, 08:47:22 pm »
Because TLazVirtualStringTree implements GetCanvasScaleFactor and SetCanvasScaleFactor when drawing bitmaps ...
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Widgetset
»
Cocoa
»
[SOLVED] macOS/Cocoa - Blurry text in TVirtualStringTree (again?)
TinyPortal
© 2005-2018