Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix TD309 - According to AFM file, the font family must be nonproportional


SAP Error Message - Details

  • Message type: E = Error

  • Message class: TD - SAPscript: Text editor, composer, forms, styles and fonts

  • Message number: 309

  • Message text: According to AFM file, the font family must be nonproportional

  • Show details Hide details
  • What causes this issue?

    The font family assigned to the fontmetrics when the fontmetrics file
    is uploaded by the user is marked as proportional. However, the key
    word "IsFixedPitch" is set to the value "true" in the fontmetrics file;
    the fontmetrics are therefore marked as nonproportional.

    System Response

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    How to fix this error?

    Please specify a nonproportional font family so that consistency
    between the data in the fontmetrics file and the SAPscript font
    families is maintained.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message TD309 - According to AFM file, the font family must be nonproportional ?

    The SAP error message TD309, which states "According to AFM file, the font family must be nonproportional," typically occurs when there is an issue with the font settings in SAPscript or Smart Forms. This error indicates that the font being used is not a nonproportional (monospaced) font, which is required for certain types of output, especially when dealing with fixed-width formats like invoices or reports.

    Cause:

    1. Font Type: The font specified in the SAPscript or Smart Form is a proportional font (e.g., Arial, Times New Roman) instead of a nonproportional font (e.g., Courier, Courier New).
    2. AFM File: The AFM (Adobe Font Metrics) file associated with the font does not support proportional fonts for the intended output.
    3. Output Device Configuration: The output device settings may be configured to expect a nonproportional font.

    Solution:

    1. Change Font:

      • Open the SAPscript or Smart Form where the error occurs.
      • Change the font to a nonproportional font. Common nonproportional fonts include:
        • Courier
        • Courier New
        • Fixedsys
      • Ensure that the font you select is supported by the output device.
    2. Check Output Device Settings:

      • Go to the output device configuration in SAP (transaction code SPAD).
      • Verify the settings for the output device being used. Ensure that it is configured to use a nonproportional font if required.
    3. Review AFM Files:

      • If you have custom fonts or AFM files, ensure that they are correctly configured and that the AFM file corresponds to a nonproportional font.
    4. Test Output:

      • After making changes, test the output again to ensure that the error is resolved.

    Related Information:

    • SAPscript and Smart Forms: These are tools used in SAP for designing and printing forms. Understanding how to work with fonts in these tools is crucial for generating correct outputs.
    • Font Management in SAP: Familiarize yourself with how SAP handles fonts, including the use of AFM files and the distinction between proportional and nonproportional fonts.
    • Documentation: Refer to SAP documentation or help resources for more detailed guidance on font settings and troubleshooting related issues.

    If the problem persists after trying the above solutions, consider reaching out to your SAP Basis team or consulting SAP support for further assistance.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author