fonttab(5) — NEWS-OS Programmer’s Manual
NAME
fonttab − Font information table for outline font files
SYNOPSIS
/usr/sony/etc/fonttab
DESCRIPTION
/usr/sony/etc/fonttab is a font information table provided for applications running in a multifont environment. This table offers the following two primary features. 1. The table lists font names and corresponding CDFF font codes, which make document creating programs to look up font easily and flexibly.
2. The table lists font data corresponding to CDFF font codes (or roff font names). which make document printing/viewing programs to find what font file to use possible. In the past, font information was independently maintained by each application and printer filter and fixed such that fonts were equated with specified files such as Mincho.vfont and M∗∗.font in the case of Mincho. Allowing this information to be maintained independently of specific programs, the table fonttab is provided so that font data on a given machine may be used freely.
SPECIFICATIONS
The specification of the file fonttab are given below.
The absolute path for this file is /usr/sony/etc/fonttab The contents of the file are arranged in a format similar to that used by /etc/printcap and others where one line represents one record. Information concerning a given font is listed using one record. Entries within a record are delimited using :’s. Lines beginning with an # are comment lines. The character "\" at the end of the line indicates that the current line is continued on the next line (not broken by a newline). The character code set used for entries in this file is Shift JIS. Example of Entries in fonttab
MLP|PMT Mincho Light:\
:tc#0x00201006:cc=Japanese:dg#1:af=Mincho:\
:vp=/usr/sony/lib/font/devnwp533/pmt/ML_P.vfont:vs#3:\
:dp=/usr/sony/lib/font/devnwp533/pmt/MLP:ds#1:\
:nm=PMT Fine Ming Dynasty type:\
:rn=PH:\
:rn=R:
###
MEANING OF ENTRIES
First String− accounting name
This is the font name (represented using ASCII). More than one fontname can be registered by using |’s as delimiters. These delimiters: \ (0x5c), | (0x7c), and : (0x3a), cannot be used in the character string representing the font name. The following entries are made of pairs of codes followed by corresponding numeric values or codes followed by corresponding character strings. The delimiter # is used for entries using numeric values and = is used for those using strings.
tc− typeface code [numeric value]
This code uniquely represents a font used by CDFF or CDIF. The values are prefixed with 0x and written in hexadecimal.
cc− code category [character string]
Represents the code category as being for Japanese, English, Korean, etc. as a character string.
Japanese:Japanese
European:English (Characters of Western European languages)
Korean:Korean
etc.
dg− design group [numeric value]
Represents a design group for the code category specified with cc.
When cc=Japanese:
1: Mincho
2: Gothic
3: Rounded Gothic
4: Handwritten characters
5: Other handwritten characters
6: Other decorative characters
7: Other
The cc and dg specification together specify a font group.
af− alternative font [character string]
Specifies the font to use when that font specified cannot be found.
More than one font can be specified for af.
Details on how this specification is used depend on the application in question.
This specification is interpreted based on the
font name beginning each entry.
vp− vector font path [character string]
Represents the absolute path where vector font data can be found.
vs− vector font coding scheme [numeric value]
Represents the data coding scheme used for a vector font.
1: Sony Format Coding Scheme 1
2: Sony Format Coding Scheme 2
3: Sony Format Coding Scheme 3
4: Sony Format Coding Scheme 4
5 and after: reserved
The extended and multi font sets use coding system 3.
dp− dot font path [character string]
Represents the absolute path where dot font data can be found.
ds− dot font coding scheme [numeric value]
Represents the data coding scheme used for a vector font.
1: Sony Format Coding Scheme 1
Appends the string specified after dp with the string "∗∗.font" and searches for a file matching that absolute pathname. ∗∗ represents number of dots (character size).
Example:
The listing to use in this file to search for the file:
/usr/sony/lib/font/devnwp533/pmt/MLP∗∗.font
would be:
:dp=/usr/sony/lib/font/devnwp533/pmt/MLP:
2: Sony Format Coding Scheme 2
3: Sony Format Coding Scheme 3
4: Sony Format Coding Scheme 4
5 and after: reserved
Notes:
Files containing dot fonts corresponding to
fonts provided in multi font sets
are conventionally named as follows:
(Numerics and Capital Alphabetics) + No. of Dots + ".font"
The dot font corresponding to:
/usr/sony/lib/font/devnwp533/pmt/ML_P.vfont
is:
/usr/sony/lib/font/devnwp533/pmt/MLP∗∗.font
The dot font corresponding to:
/usr/sony/lib/font/devnwp533/Mincho.vfont
is:
/usr/sony/lib/font/devnwp533/M∗∗.font
nm− name string [character string]
This character string is used for the screen displayed by the application to reresent the font name. If this string begins with a "/", it represents the absolute pathname of the file including the fontname string. In this case, the code used is that specified by the environment variable LANG. This feature is useful for expressing names not using Shift JIS such as Korean. If this string does not begin with a "/", (if the string in fonttab is to be used directly), Shift JIS code is used.
rn− roff name [character string]
Ditroff use the font corresponding to the fontname specified here. If more than one font is specified with the same roff name, only the entry nearest the beginning of the file is valid. More than one roff fontname can be specified in a single font entry. This is looked at when ditroff supports multi font set fonts.
DEFAULTS
tcRequired
ccRequired
dgRequired
afOptional
Settings dependent on order of listing
or the application in question
vpOptional
vsOptional
dpOptional
dsOptional
Be sure to specify at least one of
af, vp or dp
nmRequired
rnOptional
If specified, corresponding roff characters
are output using this font
NOTES
Although the file fonttab is a text file and can be freely customized, the system administrator should not change too much so as not to lose the compatibility of the file with other systems. The system administrator should particularly pay attention to the following. 1: Compatibility between the font name (nm) and type face (tc) 2: Compatibility between the type face and the actual font file (vp) Fonts installed in one NEWS (acting as a server) may be used through remote mounting by other NEWS workstations (clients) connected on the network. In this case, fonttab should also be shared. Do this by placing fonttab in the same partition as the font data on the server NEWS and have clients make symbolic links here. The specifications of the file fonttab given here are not intended as any guarantee regarding the proper operation of applications. How the information in fonttab is used after it is read depends entirely on the application in question. The multi font sets (NWF-629 and NWF-631 to 636C) include a basic version of fonttab containing entries for all fonts provided by the given set.
SEE ALSO
NEWS-OSRelease 4.1C