Home | History | Annotate | Download | only in dev

Lines Matching refs:font

302 	int                      wsfontcookie; /* if -1, builtin font */
584 u_char * font;
637 /* Find the location where the wanted char is in the font data */
658 font = fontreal;
660 f = *(font++);
673 font = fontreal;
675 f = *(font++);
1238 * A font with suitable size is searched and if not found
1239 * the builtin 8x8 font is used.
1281 * Calculate the pixel size using the font size.
1322 * Try to find a suitable font.
1323 * Avoid everything but the builtin font for console screen.
1324 * Builtin font is used if no other is found, even if it
1401 dprintf("amidisplaycc: allocated screen; %dx%dx%d; font=%s\n",
1428 /* Free the used font */
1485 * Load/set a font.
1491 amidisplaycc_load_font(void *dp, void *cookie, struct wsdisplay_font *font)
1501 KASSERT(font);
1502 KASSERT(font->name);
1504 if (font->data)
1506 /* request to load the font, not supported */
1511 /* request to use the given font on this screen */
1512 return amidisplaycc_setfont(scr, font->name);
1857 * Find and set a font for the given screen.
1859 * If fontname is given, a font with that name and suitable
1861 * If fontname is NULL, a font with suitable size is searched.
1863 * On success, the found font is assigned to the screen and possible
1864 * old font is freed.
1885 /* Suitable font found. Now lock it. */
1901 * Return a font that is guaranteed to exist.
1906 static struct wsdisplay_font font;
1914 font.name = "kf8x8";
1915 font.firstchar = kernel_font_lo_8x8;
1916 font.numchars = kernel_font_hi_8x8 - kernel_font_lo_8x8 + 1;
1917 font.fontwidth = kernel_font_width_8x8;
1918 font.stride = 1;
1919 font.fontheight = kernel_font_height_8x8;
1920 font.data = kernel_font_8x8;
1923 font.encoding = WSDISPLAY_FONTENC_ISO;
1924 font.bitorder = WSDISPLAY_FONTORDER_KNOWN;
1925 font.byteorder = WSDISPLAY_FONTORDER_KNOWN;
1927 return &font;