Page 1 of 1

Font Quality on a DPI above 100%

Posted: Thu Apr 25, 2024 5:31 pm
by charvista
Hi all,
First, look at the two images.
Image
The above image has a sharp font, Window's DPI set at 100%.

Image
and this image is less sharp, Window's DPI set at 200%.

The flag #PB_Font_HighQuality in LoadFont() has no effect. (I wonder when we see any difference, since the quality is always the same, with or without this flag).

Perhaps it is something that PureBasic still need to correct for DPI awareness?

Re: Font Quality on a DPI above 100%

Posted: Thu Apr 25, 2024 5:55 pm
by AZJIO
Perhaps this is one of the flags for CreateFont_() and you will have to contact Microsoft.
fdwQuality
ANTIALIASED_QUALITY = 4
The font is always antialiased if possible.

Re: Font Quality on a DPI above 100%

Posted: Thu Apr 25, 2024 6:27 pm
by charvista
I'm using the same font both in the editor as in my programs.
Using this font works perfectly in the PB editor, DPI set at 100% or 200%.
The font is called "iosevka" - https://github.com/be5invis/Iosevka

In the editor it is perfectly sharp...