Drawtext vs Gadget text quality

Mac OSX specific forum
mrbungle
Enthusiast
Enthusiast
Posts: 112
Joined: Wed Dec 30, 2020 3:18 am

Drawtext vs Gadget text quality

Post by mrbungle »

I've noticed that on retina displays, drawtext in windows can look somewhat pixelated compared to Gadget text despite playing around with different draw modes.

1) is that a known issue due to the underlying way Drawtext is implemented due to PB's cross platform nature?
2) is there a way (hack using a cocoa call or other technique) to improve the quality?

Thank you
Mesa
Enthusiast
Enthusiast
Posts: 345
Joined: Fri Feb 24, 2012 10:19 am

Re: Drawtext vs Gadget text quality

Post by Mesa »

Try DrawVectorText() because it uses antialiasing, not DrawText().

M.
mrbungle
Enthusiast
Enthusiast
Posts: 112
Joined: Wed Dec 30, 2020 3:18 am

Re: Drawtext vs Gadget text quality

Post by mrbungle »

That makes sense but also requires the Canvas gadget. What if I don't want to use the Canvas gadget?
User avatar
STARGÅTE
Addict
Addict
Posts: 2067
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: Drawtext vs Gadget text quality

Post by STARGÅTE »

There is also a WindowVectorOutput() for vector drawing on a window.
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
mrbungle
Enthusiast
Enthusiast
Posts: 112
Joined: Wed Dec 30, 2020 3:18 am

Re: Drawtext vs Gadget text quality

Post by mrbungle »

I'll give that a try. Thanks
Post Reply