121c2f794Smrg/* 221c2f794Smrg * Copyright (C) 1998 The XFree86 Project, Inc. All Rights Reserved. 321c2f794Smrg * 421c2f794Smrg * Permission is hereby granted, free of charge, to any person obtaining a copy 521c2f794Smrg * of this software and associated documentation files (the "Software"), to 621c2f794Smrg * deal in the Software without restriction, including without limitation the 721c2f794Smrg * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 821c2f794Smrg * sell copies of the Software, and to permit persons to whom the Software is 921c2f794Smrg * furnished to do so, subject to the following conditions: 1021c2f794Smrg * 1121c2f794Smrg * The above copyright notice and this permission notice shall be included in 1221c2f794Smrg * all copies or substantial portions of the Software. 1321c2f794Smrg * 1421c2f794Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1521c2f794Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1621c2f794Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1721c2f794Smrg * XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 1821c2f794Smrg * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 1921c2f794Smrg * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 2021c2f794Smrg * 2121c2f794Smrg * Except as contained in this notice, the name of the XFree86 Project shall 2221c2f794Smrg * not be used in advertising or otherwise to promote the sale, use or other 2321c2f794Smrg * dealings in this Software without prior written authorization from the 2421c2f794Smrg * XFree86 Project. 2521c2f794Smrg */ 2621c2f794Smrg 2721c2f794Smrg#include <X11/fonts/FSlib.h> 2821c2f794Smrg 29889a2364Smrgextern Bool EmitHeader(FILE *outFile, FSXFontInfoHeader *fontHeader, 30889a2364Smrg FSPropInfo *propInfo, FSPropOffset *propOffsets, 31889a2364Smrg unsigned char *propData); 32889a2364Smrgextern Bool EmitProperties(FILE *outFile, FSXFontInfoHeader *fontHeader, 33889a2364Smrg FSPropInfo *propInfo, FSPropOffset *propOffsets, 34889a2364Smrg unsigned char *propData); 35889a2364Smrgextern Bool EmitCharacters(FILE *outFile, FSServer *fontServer, 36889a2364Smrg FSXFontInfoHeader *fontHeader, Font fontID); 3721c2f794Smrg 38889a2364Smrgextern unsigned long yResolution; /* intended vertical resolution for font */ 3921c2f794Smrgextern unsigned long pointSize; /* font height in points */ 40