|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T g
Length: 3015 (0xbc7) Types: TextFile Names: »gxfont.h«
└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89 └─⟦ff23ba0e6⟧ »./ghostscript-1.3.tar.Z« └─⟦a24a58cd3⟧ └─⟦this⟧ »gxfont.h«
/* Copyright (C) 1989 Aladdin Enterprises. All rights reserved. Distributed by Free Software Foundation, Inc. This file is part of Ghostscript. Ghostscript is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. No author or distributor accepts responsibility to anyone for the consequences of using it or for whether it serves any particular purpose or works at all, unless he says so in writing. Refer to the Ghostscript General Public License for full details. Everyone is granted permission to copy, modify and redistribute Ghostscript, but only under the conditions described in the Ghostscript General Public License. A copy of this license is supposed to have been given to you along with Ghostscript so you can know your rights and responsibilities. It should be in a file named COPYING. Among other things, the copyright notice and this notice must be preserved on all copies. */ /* gxfont.h */ /* Internal font definition for GhostScript library */ /* Requires gsmatrix.h, gxdevice.h */ #include "gsfont.h" /* A font object as seen by the user. */ /* See pp. 91-93 of the PostScript manual for details. */ typedef int (*gs_proc_build_char) (P5(struct gs_show_enum_s *, struct gs_state_s *, struct gs_font_s *, int /* char code */, char * /* build_char_data */)); int gs_no_build_char_proc (P5(struct gs_show_enum_s *, struct gs_state_s *, struct gs_font_s *, int, char *)); struct gs_font_s { gs_font *next, *prev; /* chain for scaled font cache */ gs_font *base; /* original (unscaled) base font */ gs_font_dir *dir; /* directory where registered */ char *client_data; /* additional client data */ gs_matrix matrix; /* FontMatrix */ int font_type; /* FontType */ float xmin, ymin, xmax, ymax; /* FontBBox */ long unique_id; /* UniqueID */ gs_proc_build_char build_char_proc; /* BuildChar */ char *build_char_data; /* private data for BuildChar */ }; /* A font directory (font/character cache manager). */ struct gs_font_dir_s { gs_proc_alloc alloc; gs_proc_free free; /* Font directory */ long next_id; /* next unique ID */ /* Scaled font cache */ gs_font *scaled_fonts; /* list of recently scaled fonts */ uint ssize, smax; /* Character cache parameters and statistics */ uint bsize, bmax; /* # of bytes for cached chars */ uint msize, mmax; /* # of cached font/matrix pairs */ /* (not relevant at present) */ uint csize, cmax; /* # of cached chars */ uint lower; /* min size at which cached chars */ /* should be stored compressed */ uint upper; /* max size of a single cached char */ /* Character cache */ #define gx_char_cache_modulus 128 /* must be power of 2 */ struct cached_char_s *chars[gx_char_cache_modulus]; /* chain heads */ byte *bdata; uint bnext; /* rover for allocating cached character data */ struct cached_fm_pair_s *mdata; uint mnext; /* rover for allocating font/matrix pairs */ struct cached_char_s *cdata; uint cnext; /* rover for allocating cached_chars */ };