Lines Matching refs:font

50 class lbp_font : public font {
66 void set_char(int, font *, const environment *, int, const char *name);
70 font *make_font(const char *);
95 : font(nm)
130 // fprintf(stderr, "Loading font \"%s\" \n", arg);
132 // fprintf(stderr, "Loading font %s \"%s\" in %s at %d\n",
164 if (font::papersize) {
165 papersize = set_papersize(font::papersize);
166 paperlength = font::paperlength;
167 paperwidth = font::paperwidth;
171 paperlength = int(pl * font::res + 0.5);
172 paperwidth = int(pw * font::res + 0.5);
202 // (env->size * (font::res/72)) * (linewidth_factor/1000)
205 env->size * linewidth_factor * font::res / 72000;
238 static char bfont_name[255]; // The resulting font name
241 *nam; // The font name without other data.
242 int cpi; // The font size in characters per inch
244 /* Bitmap font selection is ugly in this printer, so don't expect
255 // fprintf(stderr, "Bitmap font '%s' %d %c %c \n", nam, siz, type, ori);
262 // Courier font
272 // Now that we have all the data, let's generate the font name.
273 if ((type != 'B') && (type != 'I')) // Roman font
280 void lbp_printer::set_char(int idx, font *f, const environment *env,
288 // fprintf(stderr, "Loading font %s \"%d\" \n", psf->lbpname, env->size);
290 // Scalable font selection is different from bitmaped
292 (int)((env->size * font::res) / 72));
295 // bitmapped font
307 // if current symbol set is Symbol we must restore the font
309 (int)((env->size * font::res) / 72));
322 (int)((env->size * font::res) / 72));
323 lbpputs("\033(\"!!0\033)\"!!1"); // Select symbol font
335 lbpprintf("\033[%d C", (int)((env->size * font::res) / 72));
552 font *lbp_printer::make_font(const char *nm)
644 font::set_unknown_desc_command_handler(handle_unknown_desc_command);
653 font::command_line_font_dir(optarg);
661 if (!font::scan_papersize(optarg, &s,