Lines Matching refs:fs

86     XFontStruct*	/* fs */
156 XFontStruct *fs)
164 if (ext->free_Font) (*ext->free_Font)(dpy, fs, &ext->codes);
165 GetResReq (CloseFont, fs->fid, req);
168 if (fs->per_char) {
170 _XF86BigfontFreeFontMetrics(fs);
172 Xfree (fs->per_char);
175 _XFreeExtData(fs->ext_data);
177 Xfree (fs->properties);
178 Xfree (fs);
189 register XFontStruct *fs;
221 if (! (fs = Xmalloc (sizeof (XFontStruct)))) {
225 fs->ext_data = NULL;
226 fs->fid = fid;
227 fs->direction = reply.drawDirection;
228 fs->min_char_or_byte2 = reply.minCharOrByte2;
229 fs->max_char_or_byte2 = reply.maxCharOrByte2;
230 fs->min_byte1 = reply.minByte1;
231 fs->max_byte1 = reply.maxByte1;
232 fs->default_char = reply.defaultChar;
233 fs->all_chars_exist = reply.allCharsExist;
234 fs->ascent = cvtINT16toInt (reply.fontAscent);
235 fs->descent = cvtINT16toInt (reply.fontDescent);
238 fs->min_bounds = * (XCharStruct *) &reply.minBounds;
239 fs->max_bounds = * (XCharStruct *) &reply.maxBounds;
241 fs->n_properties = reply.nFontProps;
246 fs->properties = NULL;
247 if (fs->n_properties > 0) {
251 fs->properties = Xmallocarray (reply.nFontProps,
254 if (! fs->properties) {
255 Xfree(fs);
259 _XRead32 (dpy, (long *)fs->properties, nbytes);
266 fs->per_char = NULL;
272 fs->per_char = Xmallocarray (reply.nCharInfos,
276 if (! fs->per_char) {
277 Xfree(fs->properties);
278 Xfree(fs);
283 _XRead16 (dpy, (char *)fs->per_char, nbytes);
288 if (ext->create_Font) (*ext->create_Font)(dpy, fs, &ext->codes);
289 return fs;
408 register XFontStruct *fs;
465 if (! (fs = Xmalloc (sizeof (XFontStruct)))) {
469 fs->ext_data = NULL;
470 fs->fid = fid;
471 fs->direction = reply.drawDirection;
472 fs->min_char_or_byte2 = reply.minCharOrByte2;
473 fs->max_char_or_byte2 = reply.maxCharOrByte2;
474 fs->min_byte1 = reply.minByte1;
475 fs->max_byte1 = reply.maxByte1;
476 fs->default_char = reply.defaultChar;
477 fs->all_chars_exist = reply.allCharsExist;
478 fs->ascent = cvtINT16toInt (reply.fontAscent);
479 fs->descent = cvtINT16toInt (reply.fontDescent);
482 fs->min_bounds = * (XCharStruct *) &reply.minBounds;
483 fs->max_bounds = * (XCharStruct *) &reply.maxBounds;
485 fs->n_properties = reply.nFontProps;
490 fs->properties = NULL;
491 if (fs->n_properties > 0) {
495 fs->properties = Xmallocarray (reply.nFontProps,
498 if (! fs->properties) {
499 Xfree(fs);
503 _XRead32 (dpy, (long *)fs->properties, nbytes);
507 fs->per_char = NULL;
513 Xfree(fs->properties);
514 Xfree(fs);
530 Xfree(fs->properties);
531 Xfree(fs);
535 if (! (fs->per_char = Xmallocarray (reply.nCharInfos,
538 Xfree(fs->properties);
539 Xfree(fs);
549 Xfree(fs->properties);
550 Xfree(fs);
554 fs->per_char[i] = * (XCharStruct *) &pUniqCI[pIndex2UniqIndex[i]];
565 Xfree(fs->properties);
566 Xfree(fs);
585 Xfree(fs->properties);
586 Xfree(fs);
600 Xfree(fs->properties);
601 Xfree(fs);
612 fs_union.font = fs;
615 fs->per_char = (XCharStruct *) (addr + reply.shmsegoffset);
618 if (fs->properties) Xfree(fs->properties);
619 Xfree(fs);
629 if (ext->create_Font) (*ext->create_Font)(dpy, fs, &ext->codes);
630 return fs;
634 _XF86BigfontFreeFontMetrics (XFontStruct *fs)
640 fs_union.font = fs;
645 Xfree (fs->per_char);
647 Xfree (fs->per_char);
662 XFontStruct *fs;
688 fs = XLoadQueryFont(dpy, buf);
689 if (!fs)
692 *xfp = fs;
694 *fidp = fs->fid;
696 if (fs->per_char) {
698 _XF86BigfontFreeFontMetrics(fs);
700 Xfree (fs->per_char);
703 _XFreeExtData(fs->ext_data);
705 Xfree (fs->properties);
706 *fidp = fs->fid;
707 Xfree (fs);
709 XFreeFont(dpy, fs);