WindowsFont
Font changes in the Windows interface.
Download: yadi.sk, upload.ee
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.
WindowsFont
WindowsFont
Last edited by AZJIO on Sat Mar 05, 2022 12:08 pm, edited 4 times in total.
- Kwai chang caine
- Always Here
- Posts: 5357
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
Re: WindowsFont
Update
Added DPI calculation and font size calculation.
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
Apropo fonts ...
google allows to use there 1364 fonts for free ..
https://fonts.google.com/knowledge
(nearly at the bottom)
google allows to use there 1364 fonts for free ..
https://fonts.google.com/knowledge
(nearly at the bottom)