Lines Matching refs:fs
170 isvalid(XFontStruct * fs, int which)
176 rows = fs->max_byte1 - fs->min_byte1 + 1;
177 pages = fs->max_char_or_byte2 - fs->min_char_or_byte2 + 1;
181 if ((fs->min_char_or_byte2 > which) || (fs->max_char_or_byte2 < which))
188 if ((fs->min_char_or_byte2 > byte2) ||
189 (fs->max_char_or_byte2 < byte2) ||
190 (fs->min_byte1 > byte1) || (fs->max_byte1 < byte1))
195 if (fs->per_char) {
198 return (fs->per_char + (which - fs->min_char_or_byte2));
202 i = ((byte1 - fs->min_byte1) * pages) +
203 (byte2 - fs->min_char_or_byte2);
204 return (fs->per_char + i);
208 return (&fs->min_bounds);
223 XFontStruct *fs;
246 fs = XQueryFont(dpy, font);
247 if (!fs) {
253 max_width = fs->max_bounds.rbearing - fs->min_bounds.lbearing;
254 max_height = fs->max_bounds.ascent + fs->max_bounds.descent;
260 XFreeFontInfo(NULL, fs, 1);
267 pages = fs->max_char_or_byte2 - fs->min_char_or_byte2 + 1;
268 firstchar = (fs->min_byte1 << 8) + fs->min_char_or_byte2;
269 lastchar = (fs->max_byte1 << 8) + fs->max_char_or_byte2;
270 rows = fs->max_byte1 - fs->min_byte1 + 1;
295 values.font = fs->fid;
302 dump_font_struct(fs);
315 ch = isvalid(fs, c);
317 ch = &fs->max_bounds;
373 XFreeFontInfo(NULL, fs, 1);