Start of Content Area

Procedure documentation SAPscript Load AFM File Function  Locate the document in its SAP Library structure

...

       1.      Copy the *.afm file(s) (ASCII format) to a directory that is accessible from the frontend computer you are working on.

       2.      Create a SAPscript font family for the font, if one does not already exist. Choose Administration CCMS Print Font Maintenance and then Font Families and Change. Choose Create to add a new font family. You can use any name you want for the font family.

Leave Substitute family fields blank unless there is an alternative SAP font family to this one. The substitute family is used in the event that this font is not defined in the target device type of an output request.

For Character set, enter the number of the character set to use for printing this font. For example: enter 1705 for a printer that outputs Greek characters.

       3.      Then return to the initial font maintenance screen. Choose Printer fonts/AFM metrics and Change.

       4.      Position the cursor on the device type (printer) for which the font metrics are intended. (Fonts and font-metrics are device-specific.) Do not change the original SAP device types, but create your own by making a copy.

       5.      Choose Load AFM File, enter the path name of the .afm file in the upload dialog window, and choose Transfer to upload the file.

The system asks you to create a transport request. Use this request to transport the new font to other SAP systems

When the file upload is complete, the system displays a dialog window: SAPscript Font Maintenance: AFM file uploaded.

       6.      Acknowledge the message. Fill out the fields in the dialog box displayed. Select the attributes (bold and italic) appropriate for the file you uploaded. 

For the font size, enter 000 if the font is to be used with the POST, SWIN, or HPL2 OTF drivers. 000 means that this font is scaleable and these printers are all capable of using the AFM data to scale the font to any required size. For devices that use other OTF drivers (STN2 and so on), upload the AFM files separately for each font size that you need. For this, specify the actual font size.

Finally, enter a unique name(s) for the print controls to be used to switch to this font in portrait and landscape mode. The names must have the format SF<xxx> and must be unique among the print controls for the current device type. For information about defining and using these print controls, see the F1 field help.

If you entered font size 000, select the Scaleable font box.

       7.      Choose the device type (F2) to open the list of printer fonts. The new font that you have uploaded should appear in the list.

       8.      Generate the font by choosing Edit Generate font. 

If the system displays the message PostScript character xxxx is unknown, this means that the uploaded information included a character that SAP could not identify. Either delete this character from the uploaded font or substitute the character name that SAP uses for the character. 

Try to find the character among the characters supported by SAP. To display the SAP character definitions, create a new SAP session and choose Administration CCMS Spool Spool Administration. Then choose Full administration and SAP Characters. 

If you find an equivalent SAP character, then choose Edit metrics in the Change printer fonts screen. Replace the unknown original name of the character with the SAP name. The character can now be printed from the SAP system.

If you do not find an equivalent character, delete the unknown character from the uploaded font metrics. The character cannot be printed from the SAP system. Choose Edit metrics from the Change printer fonts screen, and then delete the line that defines the character. Also reduce the number of characters that appears at the beginning of the AFM file.

Repeat this step until all unknown characters have been substituted or deleted and the font has been successfully generated.

       9.      Repeat the upload procedure until you have added all of your *.afm files. You only need to create the font family once.

   10.      Specify the print controls for switching to this font in portrait and landscape mode.  

For more information about the printer commands the print controls should contain, see the F1 field help for the print controls. For general help in defining print controls, see Specifying Escape Sequences for Print Controls .

   11.      Your font is now ready for use.

This graphic is explained in the accompanying text SAP Printing Guide start page

 

 

End of Content Area