DataFlex allows your applications to properly use fonts in Windows. This includes using the default Windows system typeface and font size and it also includes ways to customize font sizes. These capabilities have the following advantages:
Your application will use the same fonts as the rest of Windows, creating consistency across applications.
Your application will use the same fonts throughout your application, creating consistency within your application (e.g., The DataFlex controls and Codejock COM controls will use the same font).
If your application is deployed on multiple Windows versions, it will use the font that is appropriate for each version.
If your users change the DPI setting on their computers, your application will scale to the new setting.
These simple guidelines should get you started:
Start by doing nothing. If you do not have any code that sets font properties, your application will now use fonts properly and look correct on any supported Windows platform.
Do not set font properties in containers. Do not use the FontSize or Physical_FontSize properties.
A secondary goal is to not just explain what to do, but to explain why it works. In the next section, we are providing detailed information about fonts and DataFlex. Some of this information may appear complicated, but once understood, you should be able to work with fonts in a much more predictable fashion. Once this is understood, we feel that you will be able to take advantage of the more detailed recommendations for using fonts section and the section about migrating your existing applications.
If you developed applications in revisions of DataFlex prior to 17.0, please be sure to read the following:
What's New in DataFlex 2012 - 17.0 - Font Changes
Migrating Workspaces - Font Changes
Understanding Windows Fonts
How DataFlex Handles Fonts
How to Use Fonts in DataFlex