Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I determine widths for each field?
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00150438
Message ID:
00150528
Views:
25
Colin,

>So it's basically development by trial and error

Mostly that's true. No one has mentioned the fontmetric() functions they can be used to help figure out how wide to make things. But even that's not perfect, it really is a function of the data. Especially when using proportional width fonts. The kerning greatly affects the size of the fields. It also depends if the field is mixed case or all uppercase. A happy medium that seems to work well is to use FieldWidth * 1.5 * ( AverageCharWidth + MaxCharWidth ) / 2 for a mixed case field. If you are using an uppercase field you should FieldWidth * MaxCharWidth.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform