Home | History | Annotate | Download | only in x11

Lines Matching refs:fs

171 isvalid(XFontStruct * fs, unsigned int which)
177 rows = fs->max_byte1 - fs->min_byte1 + 1;
178 pages = fs->max_char_or_byte2 - fs->min_char_or_byte2 + 1;
182 if ((fs->min_char_or_byte2 > which) || (fs->max_char_or_byte2 < which))
189 if ((fs->min_char_or_byte2 > byte2) ||
190 (fs->max_char_or_byte2 < byte2) ||
191 (fs->min_byte1 > byte1) || (fs->max_byte1 < byte1))
196 if (fs->per_char) {
199 return (fs->per_char + (which - fs->min_char_or_byte2));
203 i = ((byte1 - fs->min_byte1) * pages) +
204 (byte2 - fs->min_char_or_byte2);
205 return (fs->per_char + i);
209 return (&fs->min_bounds);
225 XFontStruct *fs;
237 fs = XQueryFont(dpy, font);
238 if (!fs) {
245 max_width = fs->max_bounds.rbearing - fs->min_bounds.lbearing;
246 max_height = fs->max_bounds.ascent + fs->max_bounds.descent;
252 XFreeFontInfo(NULL, fs, 1);
260 pages = fs->max_char_or_byte2 - fs->min_char_or_byte2 + 1;
261 firstchar = (fs->min_byte1 << 8) + fs->min_char_or_byte2;
262 lastchar = (fs->max_byte1 << 8) + fs->max_char_or_byte2;
263 rows = fs->max_byte1 - fs->min_byte1 + 1;
288 values.font = fs->fid;
295 dump_font_struct(fs);
308 ch = isvalid(fs, c);
310 ch = &fs->max_bounds;
367 XFreeFontInfo(NULL, fs, 1);