You are on page 1of 3

The PDF Fonts section lists the available fonts for SQR when printing using the -PRINTER:PD

command-line flag. Fonts specified are case sensitive. Unlike the Fonts section, the PDF Fonts section takes a list of fonts mapped to a single font number. You can specify up to 10 fonts for a single font number. D epending on the character to print, SQR determines the font to use from the list . The following is the syntax of this font list: Font Number=Font1, Font2, Font3 ... The list is ordered by priority from the left. If Font1 has a glyph (an image of a character) for the character you want to print, it is used, but if Font1 does not have a glyph, Font2 is checked and used if it has a glyph for that characte r. Font Number is a decimal number that is used to specify fonts in the SQR program using statements like DEFINE-PRINTER or ALTER-PRINTER. Font numbers that are multiples of 100 (300, 3200, and so on) are recognized as a bold version of the base font. For example, font 300 is the bold version of Fo nt3. Font numbers 30 to 39 are recognized as italic fonts, and multiples of 30 to 39 (3000, 3100, and so on) are bold italic versions of the font. If you assign nonb old fonts for a font number recognized as bold, (such as 600), the text is print ed in bold. Font1, Font2, and Font3 represent the font name. You can use Adobe Reader core f onts, Adobe Reader Asian Font Pack fonts, or TrueType fonts. Adobe Reader core fonts are the fonts that Adobe Reader natively supports. The f ollowing is a list of the core fonts: Courier Courier-Bold Courier-Oblique Courier-BoldOblique Helvetica Helvetica-Bold Helvetica-Oblique Helvetica-BoldOblique Times-Roman Times-Bold Times-Italic Times-BoldItalic Symbol ZapfDingbats

Adobe Reader Asian Font Pack fonts are the font packages Adobe provides as add-o n to Adobe Reader for the purpose of viewing Asian text. You can download these fonts from the Adobe website, or if you use Adobe Reader 6, the Asian Font Pack automatically downloads when you open a PDF file that contains a font from the A sian Font Pack. Alternatively, you can use the Adobe Reader localized to any of the Japanese, Chinese, or Korean languages. These localized versions come with t he same fonts that are included in the Adobe Asian Font Pack. The following is a list of the Asian Font Pack fonts used with SQR: HeiseiKakuGo-W5 (Japanese) HeiseiMin-W3 (Japanese) MHei-Medium (Traditional Chinese) MSung-Light (Traditional Chinese) STSong-Light (Simplified Chinese) HYGoThic-Medium (Korean) HYSMyeongJo-Medium (Korean) In addition, you can use TrueType/OpenType fonts that exist on the machine where you run SQR. If you use TrueType fonts for PDF output, they will be always embe dded as subset of the original font. To use TrueType fonts for PDF output, you n eed to specify the mapping between the font name and the font file path in the [ TrueType Fonts] section, and then include the font name in the font list under t he [PDF Fonts] section. See below more information about the [TrueType Fonts] se ction. See TrueType Font Section. PDF Fonts: Exclusion Ranges SectionThe PDF Fonts: Exclusion Ranges section defin es character ranges you want to exclude from the range a font covers. Without an exclusion range, SQR uses all of the character ranges a font covers, and then c hecks the font listed in the next priority only when it does not cover a charact er. By specifying an exclusion range, you can use a font in a lower priority for a specific character or a range of characters. This mechanism allows users to c ontrol which font to use down to a single character level. The syntax in this section is as follows: Font Number=Font1 Exclusion Range, Font2 Exclusion Range, ... Exclusion ranges apply to the list of fonts defined in the PDF Fonts section. Fo r example, if you have a PDF Fonts section like the following: 3=Courier,Cumberland,HeiseiKakuGo-W5,... In addition, if you define the PDF Fonts: Exclusion Ranges section like this 3=0x20AC,0x3070-0x30FF,, then you are defining that Euro currency symbol (0x20AC in Unicode) is rendered using the Cumberland font, even though Courier has it. In addition, Greek charac ters (from 0x3070 to 0x30FF in Unicode) are rendered using HeiseiKakuGo-W5 font, even though Cumberland has them. Each Exclusion range is specified using Unicode (UCS-2) codepoint, in decimal or in hexadecimal, in the following ways: 0x20AC (single character)

160-255 (range) 0x20AC|0x00A0-0x00FF (multiple characters and ranges) Hexadecimal numbers need to be preceded by 0x; otherwise, they are recognized as decimal. TrueType Font SectionThe TrueType Font section defines the mapping of font name, which is an alias SQR uses internally to look up the font, and physical font fi le name. You need to specify the font in the full path, unless you have placed f onts in a directory specified in the Font Path parameter, or in a Windows font f older if you are running SQR on Windows. The syntax is: font name=fontfile path For example, if you have the font courier.ttf in the c:\user\fonts directory, yo u set the following in this section: CourierNew=c:\user\fonts\courier.ttf Font name can be any string that is convenient for you to identify the font, and does not need correspond to the internal name of the font. You should not use t he same font name that is used for Adobe core fonts or for Asian Font Pack fonts . If you set the same name for any of Adobe core fonts or Asian Font Pack fonts, the TrueType font is used. Note. TrueType font embedding is now supported by SQR running on z/OS. However, the Font Path parameter under the TrueType Font section is not supported for z/O S. If you're on z/OS, you need to specify the full path to each entry. If you have a TrueType Collection (TTC) file, you will also need to specify the font number to access the specific font included in the collection. For example, if MS P Mincho is included in the TrueType Collection file msmincho.ttc, then y ou will need to specify: MSPMincho=c:\winnt\fonts\msmincho.ttc,1 The font number within the TrueType collection starts at 0. msmincho.ttc contain s MS Mincho and MS P Mincho in this order; thus the number 0 represents MS Minch o and 1 represents MS P Mincho. If you do not specify font number, SQR uses font with font number 0 from the TrueType Collection file. Note. You can use only Microsoft type of Unicode based TrueType/OpenType fonts w ith SQR. SQR requires TrueType/OpenType font to have CMAP table with Platform ID 3 (Microsoft), Encoding ID 0 (Symbol), 4 (UCS-2), or 10 (UCS-4) and table forma t 4 or 12. SQR does not support OpenType fonts with CFF (Postscript) outline. Yo u can use OpenType fonts with TrueType outlines, but SQR does not make use of ad vanced layout features provided with OpenType font.

You might also like