Page 1 of 1

WindowsFont

Posted: Sun Nov 28, 2021 5:56 pm
by AZJIO
WindowsFont

Font changes in the Windows interface.

Download: yadi.sk, upload.ee

Image

Update
Added DPI calculation and font size calculation.
Changing the font size in the names of files and folders in the explorer is applied instantly, the rest requires the user to log out / log in.
Window resizing is supported.

Re: WindowsFont

Posted: Sat Dec 04, 2021 8:39 pm
by Kwai chang caine
Thanks for sharing 8)

Re: WindowsFont

Posted: Sat Mar 05, 2022 12:13 pm
by AZJIO
Update
Added DPI calculation and font size calculation.

Code: Select all

Define hDC, DPI, PointSizeб lfHeight

hDC = GetWindowDC_(0)
DPI = GetDeviceCaps_(hDC, #LOGPIXELSY)
ReleaseDC_(0, hDC)

PointSize = 12
; MulDiv -> wilbert -> https://www.purebasic.fr/english/viewtopic.php?p=423001
lfHeight = -MulDiv(PointSize, DPI, 72)
Debug lfHeight
Debug -MulDiv(lfHeight, 72, DPI) ; reverse operation

Re: WindowsFont

Posted: Sat Mar 05, 2022 1:27 pm
by infratec
Apropo fonts ...

google allows to use there 1364 fonts for free ..

https://fonts.google.com/knowledge
(nearly at the bottom)