1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 /* 23 * Copyright 1989 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 28 /* All Rights Reserved */ 29 30 /* 31 * University Copyright- Copyright (c) 1982, 1986, 1988 32 * The Regents of the University of California 33 * All Rights Reserved 34 * 35 * University Acknowledgment- Portions of this document are derived from 36 * software developed by the University of California, Berkeley, and its 37 * contributors. 38 */ 39 40 /* 41 dev.h: characteristics of a typesetter 42 */ 43 44 struct dev { 45 unsigned short filesize; /* number of bytes in file, */ 46 /* excluding dev part */ 47 short res; /* basic resolution in goobies/inch */ 48 short hor; /* goobies horizontally */ 49 short vert; 50 short unitwidth; /* size at which widths are given, in effect */ 51 short nfonts; /* number of fonts physically available */ 52 short nsizes; /* number of sizes it has */ 53 short sizescale; /* scaling for fractional point sizes */ 54 short paperwidth; /* max line length in units */ 55 short paperlength; /* max paper length in units */ 56 short nchtab; /* number of funny names in chtab */ 57 short lchname; /* length of chname table */ 58 short biggestfont; /* #chars in largest ever font */ 59 short spare2; /* in case of expansion */ 60 }; 61 62 struct Font { /* characteristics of a font */ 63 char nwfont; /* number of width entries for this font */ 64 char specfont; /* 1 == special font */ 65 char ligfont; /* 1 == ligatures exist on this font */ 66 char spare1; /* unused for now */ 67 char namefont[10]; /* name of this font (e.g., "R" */ 68 char intname[10]; /* internal name (=number) on device, in ascii */ 69 }; 70 71 /* ligatures, ORed into ligfont */ 72 73 #define LFF 01 74 #define LFI 02 75 #define LFL 04 76 #define LFFI 010 77 #define LFFL 020 78