Entering content frame

Procedure documentationSAPLPD/RSTXLMET Methods Locate the document in its SAP Library structure

...

       1.      Start or log onto the PC where the font is installed. (The font is only printed correctly on the PC where it is installed.)

       2.      Start the print manager. Then open the Properties window of the printer where the font metrics are to be produced. (Font metrics are device-specific, even for TrueType fonts. Variations in standard fonts between device types are usually minimal.)

Set the printer to the highest supported resolution (for example, 600 DPI). Higher resolutions increase the accuracy of the font metrics that SAPLPD generates.

       3.      Open a DOS command prompt window. 

       4.      Generate the font metrics file. In the DOS window, enter the command:

saplpd -i<italics bold> -p<Printer name in Windows Print Manager> - m<Windows font name>

The options are as follows:

-i<italics bold>: Specify the attributes of the font using the value 0 for normal, and 1 for attribute on. For example: -i00 for normal characters, -i01 for bold characters, -i10 for italics, -i11 for bold italics. 

   -p<printer name>: Enter the name of the printer where the font is to be used. Find the name in the Windows Print Manager.

  -w<WinCharSet>: The value for the Windows character set you want to display (for example, 0 for ANSI characters). You can upload single-byte and double-byte fonts with set character widths. See also, Setting the Character Set for SWIN and SAPLPD.

   -m<font name>: The name of the font exactly as it appears in the Microsoft Windows font manager.

Search for SAPLPD if you cannot find it. It is located in the directory of the SAPgui frontend software. 

The command generates an ASCII-format font metrics file called SAPLPD.MET. It is stored in SAPLPD’s working directory.

Repeat this step until you have created four files, one for each of the -i variants. 

Note

For an example of a Windows *.bat file used to automate this step, see Sample *.bat File for Generating Windows Font Metrics Files.

       5.      Log on to the SAP system into which the font metrics are to be imported.

       6.      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 1704 for a printer that outputs Greek characters.

       7.      Create a SAPscript printer font for the font you are uploading. Then return to the initial font maintenance screen. Choose Printer fonts/AFM metrics and Change. Choose Administration ® CCMS ® Print ® Font Maintenance. Choose Printer fonts/AFM metrics and Change.

       8.      Position the cursor on the device type (printer) for which the font metrics are intended. (Fonts and font-metrics are device-specific.)

       9.      Choose the device type (F2) to open the list of printer fonts. Choose Create to define the new font you are uploading. 

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. 000 means that this font is scaleable. Leave the Characters per inch setting at the default 10.00.

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.

Save the font and return to the initial screen of the SAP system.

   10.      Choose Tools ® ABAP Workbench ® ABAP Editor. In Program, enter RSTXLMET. Then choose Execute.

In the selection screen, enter the SAP device type for which the font is intended in the Printer field. The device type you enter must use the SWIN OTF printer driver. 

Enter the name and character set of the font family you created in step 6. Only enter the codepage if you could not specify a corresponding WinCharSet value for your font in step 4.

Select LISTAFM to list the result of the upload. Also select UPDATE.

In the dialog box displayed, confirm you want to save the font.

Exit the report and return to the initial SAP screen.

   11.      Choose Administration ® CCMS ® Print ® Font Maintenance and then Printer fonts/ AFM metrics ®Change. Choose the device type (F2) to open the list of printer fonts. Select the new font with the cursor, and choose Edit ® Generate font.

If the system displays the message 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 on the Character Sets tab page. 

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.

   12.      Repeat steps 7 through 11 until all of the SAPLPD files have been uploaded. 

   13.      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 .

Result

The new font you have added to the SAP system is now available for printing SAPscript documents.

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

 

 

Leaving content frame