Google pixels versus characters

Google pixels versus characters

Postby Marc Venken » Thu Oct 06, 2022 1:22 pm

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.04 with Harbour
User avatar
Marc Venken
 
Posts: 1426
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: Google pixels versus characters

Postby Antonio Linares » Thu Oct 06, 2022 2:11 pm

Dear Marc,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 81 guests