Page 1 of 1

Google pixels versus characters

Posted: Thu Oct 06, 2022 1:22 pm
by Marc Venken
For Google rankings optimize, it is nessesary to determen the pixel width in stead of chacaters width.
Somebody know a function that can do that ?

Getfield : "This is a test"

14 chars, but how many pixels

Re: Google pixels versus characters

Posted: Thu Oct 06, 2022 2:11 pm
by Antonio Linares
Dear Marc,

FWH provides function GetTextWidth( hDC, szText [,hFont], [@nHeight] ) --> nPixelsWidth