X Logical Font Description Conventions X Consortium Standard
Total Page:16
File Type:pdf, Size:1020Kb
X Logical Font Description Conventions X Consortium Standard Jim Flowers, Digital Equipment Corporation Edited by Stephen Gildea X Logical Font Description Conventions: X Consortium Standard by Jim Flowers and Stephen Gildea X Version 11, Release 7.7 Version 1.5 Copyright © 1988, 1994 X Consortium Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated docu- mentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the X Consortium. X Window System is a trademark of The Open Group. Copyright © 1988, 1989 Digital Equipment Corporation, Maynard MA. All rights reserved. Permission to use, copy, modify, and distribute this documentation for any purpose and without fee is hereby grant- ed, provided that the above copyright notice and this permission notice appear in all copies. Digital Equipment Cor- poration makes no representations about the suitability for any purpose of the information in this document. This documentation is provided as is without express or implied warranty. Helvetica and Times are registered trademarks of Linotype Company. ITC Avant Garde Gothic is a registered trademark of International Typeface Corporation. Times Roman is a registered trademark of Monotype Corporation. Bitstream Amerigo is a registered trademark of Bitstream Inc. Stone is a registered trademark of Adobe Systems Inc. Table of Contents 1. Introduction ....................................................................................................... 1 2. Requirements and Goals ................................................................................... 2 Provide Unique and Descriptive Font Names ................................................ 2 Support Multiple Font Vendors and Character Sets ...................................... 2 Support Scalable and Polymorphic Fonts ...................................................... 2 Support Transformations and Subsetting of Fonts ........................................ 3 Be Independent of X Server and Operating or File System Implementa- tions ................................................................................................................ 3 Support Arbitrarily Complex Font Matching and Substitution ...................... 3 Be Extensible ................................................................................................. 3 3. X Logical Font Description ............................................................................... 4 FontName ....................................................................................................... 4 FontName Syntax ................................................................................... 4 FontName Field Definitions ................................................................... 5 Examples ............................................................................................... 12 Font Properties ............................................................................................ 13 FOUNDRY ............................................................................................. 13 FAMILY_NAME ..................................................................................... 14 WEIGHT_NAME .................................................................................... 14 SLANT ................................................................................................... 14 SETWIDTH_NAME ................................................................................ 14 ADD_STYLE_NAME .............................................................................. 14 PIXEL_SIZE ........................................................................................... 14 POINT_SIZE .......................................................................................... 15 RESOLUTION_X .................................................................................... 15 RESOLUTION_Y .................................................................................... 15 SPACING ............................................................................................... 15 AVERAGE_WIDTH ................................................................................. 16 CHARSET_REGISTRY ........................................................................... 16 CHARSET_ENCODING ......................................................................... 16 MIN_SPACE .......................................................................................... 16 NORM_SPACE ....................................................................................... 16 MAX_SPACE .......................................................................................... 17 END_SPACE .......................................................................................... 17 AVG_CAPITAL_WIDTH .......................................................................... 17 AVG_LOWERCASE_WIDTH ................................................................... 18 QUAD_WIDTH ....................................................................................... 18 FIGURE_WIDTH ................................................................................... 18 SUPERSCRIPT_X .................................................................................. 18 SUPERSCRIPT_Y .................................................................................. 19 SUBSCRIPT_X ....................................................................................... 19 SUBSCRIPT_Y ....................................................................................... 19 SUPERSCRIPT_SIZE ............................................................................. 20 SUBSCRIPT_SIZE ................................................................................. 20 SMALL_CAP_SIZE ................................................................................ 20 UNDERLINE_POSITION ....................................................................... 20 UNDERLINE_THICKNESS ................................................................... 21 STRIKEOUT_ASCENT ........................................................................... 21 STRIKEOUT_DESCENT ........................................................................ 21 ITALIC_ANGLE ..................................................................................... 22 CAP_HEIGHT ........................................................................................ 22 iii X Logical Font De- scription Conventions X_HEIGHT ............................................................................................. 22 RELATIVE_SETWIDTH ......................................................................... 23 RELATIVE_WEIGHT .............................................................................. 23 WEIGHT ................................................................................................ 24 RESOLUTION ....................................................................................... 24 FONT .................................................................................................... 25 FACE_NAME ......................................................................................... 25 FULL_NAME ......................................................................................... 25 COPYRIGHT .......................................................................................... 25 NOTICE ................................................................................................. 25 DESTINATION ...................................................................................... 26 FONT_TYPE .......................................................................................... 26 FONT_VERSION ................................................................................... 27 RASTERIZER_NAME ............................................................................ 27 RASTERIZER_VERSION ....................................................................... 27 RAW_ASCENT ....................................................................................... 27 RAW_DESCENT .................................................................................... 27 RAW_* ................................................................................................... 28 AXIS_NAMES ........................................................................................ 28 AXIS_LIMITS .......................................................................................