14.12.10

SAP Note 13350 - Font control using SAPLPD

Symptom:

How is the Windows font selected, when you print witha SAPWIN device type (or related device types, SWIN, SAPWIN5, I2SWIN and so on)?

Other terms

SAPlpd, SAPWIN, SWIN

Reason and Prerequisites

You require information.

Solution
SAPlpd has a menu option "Font replacement". You can use this optionto replace one Windows font with another. This replacement is activated each time that ABAP lists or SAPscript forms with the SAPWIN (or related) device type are output using this SAPlpd. Instead of the font (for example, Courier New) selected by the R/3device type (such as SAPWIN), the system prints using a different font.
Provided that you do not choose proportional fonts, you can apply the font replacement to ABAP lists with no problems at all. Wrongly formatted printoutscan occur for SAPScript forms; these may be the consequence of the difference between the original and the replacement font, refer to note 95544. For this reason we don't recommend the application of this option in general.

When printing SAPscript forms via SAPWIN/SWIN and localised device types (e.g. I2SWIN, SAPWIN5, I9SWIN) the Windows font to be used is controlled by the print control SFxxx specified in the SAPscript printer font used. Printer fonts for device types are maintained in transaction SE73. Important Remark: The contents of the print control depend on the Release used and the attribute "Font scaleable", which exists as of Release 4.0A.
Important Remark: The excerpts from the list of printer fonts in SE73 specified below are only examples. The device types SAPWIN/SWIN (and so on) contain more printer fonts in addition to the fonts COURIER and OCRA!

Releases 3.0E to 3.1I the following applies:
Family: Size: Bold: Italic: CPI: PrtCtl P. PrtCtl L.
COURIER 000 _ _ AFM SF001 SF001

Print control SF001 only contains Windows TrueType FontNames, in this case "Courier New"

For Releases as of 4.0A the following applies:
*** if the flag "scaleable" is set:
Family: Size: Bold: Italic: CPI: PrtCtl1 PrtCtl2
COURIER Scaleable _ _ AFM SF001 SF011

SF001 contains the Windows TrueType font names, here "Courier New"
SF011 contains the WinCharset Number (Windows character set number), here "0"

*** if the flag "scaleable" is NOT set:
Family: Size: Bold: Italic: CPI: PrtCtl1 PrtCtl2
OCRA 120 _ _ 10,00 SF301 SF301

SF301 contains the Windows TrueType FontNames, here "Ocra"

Detailled information, including information about other printer drivers, is provided by the online field documentation for the fields "Print control 1" or "Printcontrol 2" in SE73.

Fontmetrics information for Windows fonts:
To correctly format the print output, SAPscript requires so-called fontmetrics information for printer fonts. They include width values for all printable characters of a font. Fontmetrics data is administrated and maintained using Transaction SE73 just like printer fonts. Any printer font, which is scaleable or proportional, needs a fontmetrics file (AFM file).
As of Release 4.0A you have the option in the R/3 System to generate this fontmetrics data for Windows fonts automatically and to load it up into the R/3 System. This procedure requires a current version of program SAPlpd and report RSTXLMET. You can find a detailled description of this procedure in the so-called "Printing Guide" in the R/3 online documentation (on basis system administration).

No comments:

Post a Comment