00001 /* V E C T F O N T . H 00002 * BRL-CAD 00003 * 00004 * Copyright (c) 2004-2006 United States Government as represented by 00005 * the U.S. Army Research Laboratory. 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public License 00009 * as published by the Free Software Foundation; either version 2.1 of 00010 * the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, but 00013 * WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Library General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this file; see the file named COPYING for more 00019 * information. 00020 */ 00021 /** @addtogroup plot */ 00022 /*@{*/ 00023 /** @file vectfont.h 00024 * 00025 * Vector font definitions, for TIG-PACK fonts. 00026 * Used by LIBPLOT3 and LIBRT for simple vector fonts. 00027 * 00028 * @author 00029 * Michael John Muuss 00030 * Douglas A. Gwyn 00031 * 00032 * @par Source 00033 * The U. S. Army Research Laboratory 00034 * Aberdeen Proving Ground, Maryland 21005-5068 USA 00035 * 00036 * $Header: /cvsroot/brlcad/brlcad/include/vectfont.h,v 14.7 2006/09/18 05:24:07 lbutler Exp $ 00037 */ 00038 00039 /* 00040 * Motion encoding macros 00041 * 00042 * All characters reference absolute points within a 10 x 10 square 00043 */ 00044 #define brt(x,y) (11*x+y) 00045 #define drk(x,y) -(11*x+y) 00046 #define LAST -128 /**< @brief 0200 Marks end of stroke list */ 00047 #define NEGY -127 /**< @brief 0201 Denotes negative y stroke */ 00048 #define bneg(x,y) NEGY, brt(x,y) 00049 #define dneg(x,y) NEGY, drk(x,y) 00050 00051 #if defined(CRAY1) || defined(CRAY2) || defined(mips) 00052 #define TINY int 00053 #else 00054 #define TINY char /**< @brief must be signed */ 00055 #endif 00056 00057 extern TINY *tp_cindex[256]; /**< @brief index to stroke tokens */ 00058 extern TINY tp_ctable[]; /**< @brief table of strokes */ 00059 /*@}*/ 00060 /* 00061 * Local Variables: 00062 * mode: C 00063 * tab-width: 8 00064 * c-basic-offset: 4 00065 * indent-tabs-mode: t 00066 * End: 00067 * ex: shiftwidth=4 tabstop=8 00068 */ 00069