Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Font size in inches
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00337469
Message ID:
00337655
Vues:
16
1 point = 1/72 Inches therefore 72 points = 1 Inch.

An simple way to get the approx. length of the text would be to use the VFP TxtWidth function and apply the maths above.

lnPixelsX = txtwidth(lcString, lcFontName, lnFontSize) * ;
fontmetric(6, lcFontName, lnFontSize)

lnInchesX = lnPixelsX / 72
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform