The font mapping table is contained in the file FIWTFONT.FLT. See section "B.2.2 Selecting Fonts" for a list of fonts support by IS/2 and there definitions and see section "B.2.1.2 Font Identifier (FGID)" for the twips for a font point size. * The following line will convert Helvetica Bold 160 twips (point size 24) to * Helvetica Bold 93 twips (point size 14) FGID_FW 2305 160 = FGID_FW 2305 93 * The following line will convert Times New Roman 80 twips (point size 12) to * Times New Roman 73 twips (point size 11) FGID_FW 2309 80 = FGID_FW 2309 73 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ° Copyright IBM Corp. 1993, 1996 ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ IBM VisualInfo Application Programming Reference Volume 3 Version 2 Release 1 Document Number SC31-9062-00 ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ B.2 Fonts =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ° Copyright IBM Corp. 1993, 1996 Image Services MO:DCA-P support provides the capability to render documents and pages containing images, text, or a combination of images and text. A key requirement in processing text is the selection of fonts used to render the data. This section explains how fonts are specified within MO:DCA documents and how these specifications are processed. A method of mapping fonts that do not meet the MO:DCA specification via a font mapping table is also described. See "Font Mapping Table," for a description of how this mapping is performed. B.2.1 Specifying Fonts in MO:DCA Using Map-Coded Font Structure =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ° Copyright IBM Corp. 1993, 1996 Note: The appendix entitled IBM Font Interchange Information in the Mixed Object Document Content Architecture Architecture Reference, document number SC31-6802, provides additional information on SAA fonts. Also, the book About Type: IBM's Technical Reference for Core Interchange Digitized Type form number S544-3708, contains additional detailed information on fonts. Within MO:DCA, font information is specified in the Map Coded Font (MCF) structured field. The MCF carries font information through repeating groups of Fully Qualified Name (FQN) triplets in two different forms, either FQN type X'84', or pairs of FQN types X'85' and X'86'. This MO:DCA-P structure makes the correlation between the available fonts and the font local IDs (LIDs) specified in the PTOCA records. It is a mandatory structure for pages containing text. The format of the Map Coded Font (MCF) structured field is described in the MO:DCA documentation. In general, the MCF structured field specifies the code page, the character set, the typeface or font global identifier (FGID), and the character width that you want. Image Services matches the specified values to the "best fit" available using the fonts available in OS/2 Presentation Manager. The Map Coded Font contains the font information in triplets referred to as 'Fully Qualified Names' (FQN). There are three FQNs related to fonts. ° FQN type X'84' specifies an 8-byte global resource identifier (GRID) that specifies the Character Set, Code Page, Font Identifier, and Font Width in a coded form. ° FQN type X'85' specifies an 8-byte code page name, which contains the same information as the GCSGID and CPGID fields of the GRID. An example of a code page name would be T1V10037, which is the same as a GCSGID value of 697 and a CPGID value of 37. ° FQN type X'86' specifies an 8-byte font character set name that is unique for each font size. An example of this form is C0420000, which is the same as a FGID value of 416 and a font width 120 twips. B.2.1.1 Code Pages =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ° Copyright IBM Corp. 1993, 1996 Table 44 shows the code pages supported by Image Services. If a code page other than one of the following is specified, code page 500 is used as a substitute. ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Table 44. Code Pages Supported by ³ ³ Image Services ³ ÃÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ Code ³ Description ³ ³ Page ³ ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 037 ³ EBCDIC US-English ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 273 ³ EBCDIC-Austrian/German ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 274 ³ EBCDIC-Belgian ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 277 ³ EBCDIC-Danish/Norwegian ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 278 ³ EBCDIC-Finnish/Swedish ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 280 ³ EBCDIC-Italian ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 282 ³ EBCDIC-Portuguese ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 284 ³ EBCDIC-Spanish ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 285 ³ EBCDIC-UK-English ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 297 ³ EBCDIC-French ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 500 ³ EBCDIC-International ³ ÀÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ° Copyright IBM Corp. 1993, 1996 Table 45 contains the font values supported by Image Services. ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Table 45. Font Values Supported by Image ³ ³ Services ³ ÃÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ FGID ³ Typeface ³ Posture/Weight ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 416 ³ Courier ³ Normal ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 420 ³ Courier ³ Bold ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 424 ³ Courier ³ Italic ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 428 ³ Courier ³ Bold Italic ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 2304 ³ Helvetica ³ Normal ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 2305 ³ Helvetica ³ Bold ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 2306 ³ Helvetica ³ Italics ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 2307 ³ Helvetica ³ Bold Italic ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 2308 ³ Times New Roman ³ Normal ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 2309 ³ Times New Roman ³ Bold ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 2310 ³ Times New Roman ³ Italic ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 2311 ³ Times New Roman ³ Bold Italic ³ ÀÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ B.2.1.3 Font Width Field =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ° Copyright IBM Corp. 1993, 1996 Image Services uses the information in this field to select the size of the font. In instances where the specified value does not exactly match a value that the closest-size font that is smaller than the specified value is used. If the value specified is smaller than the smallest font available, the smallest font is substituted. B.2.2 Selecting Fonts =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ° Copyright IBM Corp. 1993, 1996 For additional information about specifying fonts, see the MO:DCA reference appendix in the Systems Application Architecture, Common Communications Support, Mixed Object:Document Content Architecture Reference, SC31-6802. Table 46 is reprinted from the MO:DCA reference and should be used to get the appropriate font width value when specifying a GRID. The hexadecimal font width value is used for bytes 6 and 7 of the 8-byte GRID. Note: The point sizes listed in the Typographic Fonts column apply to the Helvetica and Times New Roman fonts, while the point sizes listed in the Uniformly Spaced Fonts column apply only to the Courier fonts. ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Table 46. Font Width Values for Specifying Grids ³ ÃÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ ³ Typographic Fonts ³ Uniformly Spaced Fonts ³ ³ Point ÃÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄ´ ³ Size ³ Font ³ Bytes 6-7 ³ Font ³ Bytes 6-7 ³ Pitch ³ ³ ³ Width ³ of the GRID ³ Width ³ of the GRID ³ ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄ´ ³ 6 ³ 0040 ³ X'0028' ³ ³ ³ ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄ´ ³ 7 ³ 0047 ³ X'002F' ³ 0084 ³ X'0054' ³ 17.1 ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄ´ ³ 8 ³ 0053 ³ X'0035' ³ 0096 ³ X'0060' ³ 15 ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄ´ ³ 9 ³ 0060 ³ X'003C' ³ ³ ³ ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄ´ ³ 10 ³ 0067 ³ X'0043' ³ 0120 ³ X'0078' ³ 12 ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄ´ ³ 11 ³ 0073 ³ X'0049' ³ ³ ³ ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄ´ ³ 12 ³ 0080 ³ X'0050' ³ 0144 ³ X'0090' ³ 10 ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄ´ ³ 14 ³ 0093 ³ X'005D' ³ 0168 ³ X'00A8' ³ 8.57 ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄ´ ³ 16 ³ 0107 ³ X'006B' ³ ³ ³ ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄ´ ³ 18 ³ 0120 ³ X'0078' ³ ³ ³ ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄ´ ³ 20 ³ 0133 ³ X'0085' ³ 0240 ³ X'00F0' ³ 6 ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄ´ ³ 24 ³ 0160 ³ X'00A0' ³ ³ ³ ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄ´ ³ 30 ³ 0200 ³ X'00C8' ³ ³ ³ ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄ´ ³ 36 ³ 0240 ³ X'00F0' ³ ³ ³ ³ ÀÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÙ B.2.2.1 Compatibility with Font Mapping in Earlier Versions of ImagePlus =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ° Copyright IBM Corp. 1993, 1996 Table 47 was used in earlier versions of the IBM ImagePlus Workstation Program/2. The table is slightly different from the preceding table for proportional fonts only. Font widths that exactly match the values in the following table are mapped using this table. ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Table 47. Font Mapping in ImagePlus ³ ³ Workstation Program/2 ³ ÃÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ Pitch ³ Width in 1/1440 ³ FGIDs supported ³ ³ ³ inch ³ ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 15 ³ 96 (X'0060') ³ 416, 2304, 2308 ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 12.5 ³ 115 (X'0073') ³ 416, 2304, 2308 ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 10 ³ 144 (X'0090') ³ 416, 2304, 2308 ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 8.5 ³ 169 (X'00A9') ³ 2304, 2308 ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 6.5 ³ 221 (X'00DD') ³ 2304, 2308 ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 5.0 ³ 288 (X'0120') ³ 2304, 2308 ³ ÀÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ B.2.2.2 Font and Code Page Support in Double-Byte Configurations =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ° Copyright IBM Corp. 1993, 1996 The following information applies to double-byte configurations only. Note: The double-byte fonts supported by Image Services can be used only with the specific double-byte versions of OS/2, for example, OS/2-J refers to the Japanese version, OS/2-K the Korean version, and OS/2-T the Taiwanese version. PTOCA support does not provide for mixed strings of single-byte or double-byte data. Although a page can contain both single and double-byte character strings, the PTOCA data stream must be built to specify the proper single or double-byte font prior to the character data. Display and printing of double-byte PTOCA data are performed as follows: ° Outline font is used if it is available. ° The most applicable operating system with a double-byte raster font is used if no outline font is available. Table 48 shows the double-byte font widths that Image Services best supports. In instances where the specified width value does not exactly match a value, the closest-size font that is smaller than the specified value is used. If the value specified is smaller than the smallest font available, the smallest font is substituted. Image Services tries to select a font that has a character height equal to its width. ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Table 48. Double-Byte Font Widths Supported by ³ ³ Image Services ³ ÃÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ Pitch ³ Width in 1/1440 ³ FGIDs supported ³ ³ ³ inch ³ ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 6 ³ 240 (X'00F0') ³ 53559 (X'D137) ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 4 ³ 380 (X'017C') ³ 53559 (X'D137) ³ ÃÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 3 ³ 510 (X'01FE') ³ 53559 (X'D137) ³ ÀÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ The following double-byte code page and character sets are supported: ÚÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ GCSGID³ CPGID ³ Description ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 0370 ³ 0300 ³ Japanese DBCS ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 0934 ³ 0834 ³ Korean DBCS ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 0935 ³ 0835 ³ Chinese DBCS ³ ÀÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ The following additional single-byte code page and character set combinations are supported: ÚÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ GCSGID³ CPGID ³ Description ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 1172 ³ 1027 ³ EBCDIC Japanese ³ ³ ³ ³ Extended ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 1172 ³ 0290 ³ EBCDIC Japanese ³ ³ ³ ³ Extended ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 1171 ³ 0290 ³ EBCDIC Japanese ³ ³ ³ ³ Extended ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 370 ³ 0290 ³ EBCDIC Japanese ³ ³ ³ ³ Extended ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 1173 ³ 0833 ³ EBCDIC Korean ³ ³ ³ ³ Extended ³ ÃÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ 1175 ³ 0037 ³ EBCDIC Chinese ³ ³ ³ ³ Extended ³ ÀÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ B.2.2.3 Font Mapping Table =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ° Copyright IBM Corp. 1993, 1996 Using the font mapping table, you can map font specifications other than those supported by Image Services (that may appear in existing documents, for example) to the fonts that are supported. The font mapping table is contained in the file FIWTFONT.FLT. The file is found by looking in the current directory first, then in the path specified in the PATH environment variable. The PATH contains the directory in which Image Services is installed. The font mapping table maps from fonts specified using either the X'84' style of specification, or the X'85'/X'86' style of specification, to fonts that Image Services supports. In addition, you can specify a default font to use whenever a font is received that is not supported and is not mapped in the font mapping table. The table consists of one or more entries in plain text form and can be viewed and modified using a text editor, such as the OS/2 system editor. The characters in the table are assumed to be in the operating system's current code page. B.2.2.4 Syntax =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ° Copyright IBM Corp. 1993, 1996 Each entry has the same basic form: Source Value = Substitute Value. The type of information being substituted is identified by the following keywords: ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Keyword ³ Meaning ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ CP ³ The code page number in decimal form (at most 4 ³ ³ ³ digits). ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ CPN ³ 8-alphanumeric-character code page name as carried ³ ³ ³ by the Fully Qualified Name triplet type X'85'. ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ FGID ³ The font global identifier in decimal form (at most ³ ³ ³ 4 digits). ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ FGID_FW ³ The font global identifier in decimal form (at most ³ ³ ³ 4 digits), followed by its font width in decimal ³ ³ ³ twips (at most 4 digits). ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ FN ³ 8-alphanumeric-character font character set name as ³ ³ ³ carried by the Fully Qualified Name triplet type ³ ³ ³ X'86'. ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ FW ³ The font width in decimal twips (at most 4 digits). ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ DEFAULT ³ No associated value ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ GRID ³ 16-hexadecimal-character global resource identifier ³ ³ ³ as carried by the Fully Qualified Name triplet type ³ ³ ³ X'84'. ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ The following table illustrates the valid combinations of source and substitute keywords. ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Source ³ Substitute ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ CP ³ CP ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ CPN ³ CP ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ DEFAULT ³ GRID ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ FGID ³ FGID ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ FN ³ FGID ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ FGID_FW ³ FGID_FW ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ FN ³ FW ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³ FN ³ FW and FGID ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ Rules ° Each entry starts on a new line and cannot span more than one line. ° Blank lines are ignored. ° Keywords can be in any case. However name values such as FN and CPN are case sensitive when compared. ° One or more blanks are required to separate each token (keyword and value). ° The question mark (?) is interpreted as a "don't care" character and can only appear in the source value. Note: The don't care character cannot appear in any numeric value. ° An asterisk (*) indicates the rest of the line is a comment. ° If there are conflicting rules, the last one encountered is used. ° If the input contains a general entry that is a superset of a more specific entry, then the entry matching the most specific characters is used. For example, if the input consists of the following two entries: 1. FN ??????0? = fw 144 2. FN C0H40?0? = fw 240 then the second entry will apply when the name of the font character set matches any one of the following conditions, and the second-to-the-last character of the name is the digit 0: - The first character is the letter 'C'; - The second character is the digit '0'; - The third character is the letter 'H'; - The fourth character is the digit '4'; - The fifth character is the digit '0'. B.2.2.5 Examples =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ° Copyright IBM Corp. 1993, 1996 * Sample input file FN ??????0? = fw 144 * Use a font width of 10-pitch whenever 12-pitch * font is requested. FN C0H40??? = FGID 2304 * Use normal instead of bold weight for Helvetica * typefaces. FGID_FW 416 84 = FGID_FW 416 96 * Use 15-pitch normal Courier whenever * 17.1-pitch normal Courier is needed FGID 420 = fgid 416 * Use normal instead of bold weight for Courier * typefaces. cp 850 = cp 437 * Use code page 437 whenever code page 850 is requested. cpN T1D0BASE = cp 500 * Use code page 500 whenever code page * "T1D0BASE" is encountered. Default = GRID 02b901f401a00043 * default font 10-pitch normal Courier. * default character set is 697. * default code page is 500. The font mapping table is loaded when Image Services is initialized. If the table is modified, Image Services must be restarted to include the changes. Note that if a document is loaded containing fonts that are mapped using this facility, and the document is subsequently stored from the Image Services working set, the document will contain the substituted fonts. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-