Google pixels versus characters

Post Reply
User avatar
Marc Venken
Posts: 1485
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Google pixels versus characters

Post 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
Marc Venken
Using: FWH 23.08 with Harbour
User avatar
Antonio Linares
Site Admin
Posts: 42595
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 38 times
Been thanked: 86 times
Contact:

Re: Google pixels versus characters

Post by Antonio Linares »

Dear Marc,

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

Antonio Linares
www.fivetechsoft.com
Post Reply