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

Close

How To Fix TD308 - According to AFM file, the font family must be proportional


SAP Error Message - Details

  • Message type: E = Error

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

  • Message number: 308

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

  • 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 nonproportional. However, the key
    word "IsFixedPitch" is set to the value "false" in the fontmetrics
    file; the fontmetrics are therefore marked as proportional.

    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 proportional 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 TD308 - According to AFM file, the font family must be proportional ?

    The SAP error message TD308, which states "According to AFM file, the font family must be proportional," 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 proportional font, which is required for certain types of documents.

    Cause:

    1. Font Type: The error arises when a non-proportional font (like a monospace font) is specified in the form or script. Proportional fonts have varying widths for different characters, while non-proportional fonts have fixed widths.
    2. AFM File: The AFM (Adobe Font Metrics) file associated with the font indicates that the font must be proportional, but the font being used does not meet this requirement.
    3. Configuration Issues: There may be a misconfiguration in the font settings within the SAP system or the specific form being used.

    Solution:

    1. Change the Font:

      • Open the SAPscript or Smart Form where the error occurs.
      • Check the font settings and ensure that a proportional font is selected. Common proportional fonts include Arial, Times New Roman, and Helvetica.
      • If a non-proportional font is being used, replace it with a proportional font.
    2. Check Font Configuration:

      • Go to the transaction code SE73 (SAPscript Font Maintenance) to check the font settings.
      • Ensure that the fonts defined in the system are correctly configured and that the AFM files are available for the fonts you intend to use.
    3. Test the Changes:

      • After making the changes, test the form or script to ensure that the error no longer appears and that the output is as expected.
    4. Consult Documentation: If the issue persists, refer to SAP documentation or support for further troubleshooting steps specific to your version of SAP.

    Related Information:

    • Proportional vs. Non-Proportional Fonts: Understanding the difference between these font types is crucial. Proportional fonts are generally preferred for most documents as they provide better readability and aesthetics.
    • SAPscript and Smart Forms: Familiarize yourself with the differences between SAPscript and Smart Forms, as the approach to handling fonts may vary slightly between the two.
    • AFM Files: These files contain metrics for fonts and are essential for proper font rendering in SAP. Ensure that the AFM files for the fonts you are using are correctly installed and accessible.

    By following these steps, you should be able to resolve the TD308 error and ensure that your SAP forms are using the correct font types.

    • 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
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker