131
131
char _fs_glyph_undefined;
132
132
char _fs_glyph_requested;
133
char _fs_glyph_zero_length;
133
static char _fs_glyph_zero_length;
135
135
static int generationCount;
137
int FontServerRequestTimeout = 30 * 1000;
137
static int FontServerRequestTimeout = 30 * 1000;
140
140
_fs_close_server (FSFpePtr conn);
2046
2046
doesn't conflict with existing
2047
2047
client values. */
2050
fs_load_all_glyphs(FontPtr pfont)
2053
FSFpePtr conn = (FSFpePtr) pfont->fpe->private;
2056
* The purpose of this procedure is to load all glyphs in the event
2057
* that we're dealing with someone who doesn't understand the finer
2058
* points of glyph caching... it is called from _fs_get_glyphs() if
2059
* the latter is called to get glyphs that have not yet been loaded.
2060
* We assume that the caller will not know how to handle a return
2061
* value of Suspended (usually the case for a GetGlyphs() caller),
2062
* so this procedure hangs around, freezing the server, for the
2063
* request to complete. This is an unpleasant kluge called to
2064
* perform an unpleasant job that, we hope, will never be required.
2067
while ((err = _fs_load_glyphs(serverClient, pfont, TRUE, 0, 0, NULL)) ==
2070
if (fs_await_reply (conn) != FSIO_READY)
2072
/* Get rid of blockrec */
2073
fs_client_died(serverClient, pfont->fpe);
2077
fs_read_reply (pfont->fpe, serverClient);
2084
2050
_fs_load_glyphs(pointer client, FontPtr pfont, Bool range_flag,
2085
2051
unsigned int nchars, int item_size, unsigned char *data)
2230
2196
return fs_send_load_glyphs(client, pfont, nranges, ranges);
2200
fs_load_all_glyphs(FontPtr pfont)
2203
FSFpePtr conn = (FSFpePtr) pfont->fpe->private;
2206
* The purpose of this procedure is to load all glyphs in the event
2207
* that we're dealing with someone who doesn't understand the finer
2208
* points of glyph caching... it is called from _fs_get_glyphs() if
2209
* the latter is called to get glyphs that have not yet been loaded.
2210
* We assume that the caller will not know how to handle a return
2211
* value of Suspended (usually the case for a GetGlyphs() caller),
2212
* so this procedure hangs around, freezing the server, for the
2213
* request to complete. This is an unpleasant kluge called to
2214
* perform an unpleasant job that, we hope, will never be required.
2217
while ((err = _fs_load_glyphs(serverClient, pfont, TRUE, 0, 0, NULL)) ==
2220
if (fs_await_reply (conn) != FSIO_READY)
2222
/* Get rid of blockrec */
2223
fs_client_died(serverClient, pfont->fpe);
2227
fs_read_reply (pfont->fpe, serverClient);
2234
2233
fs_read_list(FontPathElementPtr fpe, FSBlockDataPtr blockrec)