Font Quality on a DPI above 100%

Just starting out? Need help? Post your questions and find answers here.
User avatar
charvista
Addict
Addict
Posts: 949
Joined: Tue Sep 23, 2008 11:38 pm
Location: Belgium

Font Quality on a DPI above 100%

Post 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?
- Windows 11 Home 64-bit
- PureBasic 6.10 LTS (x64)
- 64 Gb RAM
- 13th Gen Intel(R) Core(TM) i9-13900K 3.00 GHz
- 5K monitor with DPI @ 200%
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: Font Quality on a DPI above 100%

Post 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.
User avatar
charvista
Addict
Addict
Posts: 949
Joined: Tue Sep 23, 2008 11:38 pm
Location: Belgium

Re: Font Quality on a DPI above 100%

Post 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...
- Windows 11 Home 64-bit
- PureBasic 6.10 LTS (x64)
- 64 Gb RAM
- 13th Gen Intel(R) Core(TM) i9-13900K 3.00 GHz
- 5K monitor with DPI @ 200%
Post Reply