Symbol: font
sbin/wsconsctl/display.c
111
if (field_by_value(&font.name)->flags & FLG_GET) {
sbin/wsconsctl/display.c
114
font.name = gfont.gf_name;
sbin/wsconsctl/display.c
116
field_disable_by_value(&font.name);
sbin/wsconsctl/display.c
195
if (field_by_value(&font.name)->flags & FLG_SET) {
sbin/wsconsctl/display.c
196
if (ioctl(fd, WSDISPLAYIO_SFONT, &font) < 0)
sbin/wsconsctl/display.c
198
pr_field(field_by_value(&font.name), " -> ");
sbin/wsconsctl/display.c
47
static struct wsdisplay_usefontdata font;
sbin/wsconsctl/display.c
62
{ "font", &font.name, FMT_STRING, 0 },
sys/arch/amiga/dev/amidisplaycc.c
1494
amidisplaycc_load_font(void *dp, void *cookie, struct wsdisplay_font *font)
sys/arch/amiga/dev/amidisplaycc.c
1504
KASSERT(font);
sys/arch/amiga/dev/amidisplaycc.c
1505
KASSERT(font->name);
sys/arch/amiga/dev/amidisplaycc.c
1507
if (font->data)
sys/arch/amiga/dev/amidisplaycc.c
1515
return amidisplaycc_setfont(scr, font->name);
sys/arch/amiga/dev/amidisplaycc.c
1909
static struct wsdisplay_font font;
sys/arch/amiga/dev/amidisplaycc.c
1917
font.name = "kf8x8";
sys/arch/amiga/dev/amidisplaycc.c
1918
font.firstchar = kernel_font_lo_8x8;
sys/arch/amiga/dev/amidisplaycc.c
1919
font.numchars = kernel_font_hi_8x8 - kernel_font_lo_8x8 + 1;
sys/arch/amiga/dev/amidisplaycc.c
1920
font.fontwidth = kernel_font_width_8x8;
sys/arch/amiga/dev/amidisplaycc.c
1921
font.stride = 1;
sys/arch/amiga/dev/amidisplaycc.c
1922
font.fontheight = kernel_font_height_8x8;
sys/arch/amiga/dev/amidisplaycc.c
1923
font.data = kernel_font_8x8;
sys/arch/amiga/dev/amidisplaycc.c
1926
font.encoding = WSDISPLAY_FONTENC_ISO;
sys/arch/amiga/dev/amidisplaycc.c
1927
font.bitorder = WSDISPLAY_FONTORDER_KNOWN;
sys/arch/amiga/dev/amidisplaycc.c
1928
font.byteorder = WSDISPLAY_FONTORDER_KNOWN;
sys/arch/amiga/dev/amidisplaycc.c
1930
return &font;
sys/arch/amiga/dev/amidisplaycc.c
582
u_char * font;
sys/arch/amiga/dev/amidisplaycc.c
656
font = fontreal;
sys/arch/amiga/dev/amidisplaycc.c
658
f = *(font++);
sys/arch/amiga/dev/amidisplaycc.c
671
font = fontreal;
sys/arch/amiga/dev/amidisplaycc.c
673
f = *(font++);
sys/arch/amiga/dev/ite_cc.c
265
cci->font_cell[ip->font_lo] = ip->font;
sys/arch/amiga/dev/ite_cc.c
283
ip->font = kernel_font;
sys/arch/amiga/dev/ite_ul.c
151
ip->font = kernel_font;
sys/arch/amiga/dev/ite_ul.c
187
for (sp = (u_int16_t *)ip->font; i>0; --i,++sp) {
sys/arch/amiga/dev/itevar.h
64
u_char *font;
sys/arch/atari/dev/ite_cc.c
338
ip->font = font_info_8x8;
sys/arch/atari/dev/ite_cc.c
340
ip->font = font_info_8x16;
sys/arch/atari/dev/ite_cc.c
344
if (ip->font.width != 8)
sys/arch/atari/dev/ite_cc.c
397
ip->cols = view->display.width / ip->font.width;
sys/arch/atari/dev/ite_cc.c
398
ip->rows = view->display.height / ip->font.height;
sys/arch/atari/dev/ite_cc.c
433
cci->underline = ip->font.baseline + 1;
sys/arch/atari/dev/ite_cc.c
435
cci->ft_x = ip->font.width;
sys/arch/atari/dev/ite_cc.c
436
cci->ft_y = ip->font.height;
sys/arch/atari/dev/ite_cc.c
452
cci->font_cell[ip->font.font_lo] = ip->font.font_p;
sys/arch/atari/dev/ite_cc.c
453
for (i = ip->font.font_lo + 1; i <= ip->font.font_hi; i++)
sys/arch/atari/dev/ite_cc.c
454
cci->font_cell[i] = cci->font_cell[i - 1] + ip->font.height;
sys/arch/atari/dev/ite_cc.c
534
cend = ip->font.height - 1;
sys/arch/atari/dev/ite_cc.c
558
cend = ip->font.height - 1;
sys/arch/atari/dev/ite_cc.c
582
if (c < ip->font.font_lo || c > ip->font.font_hi)
sys/arch/atari/dev/ite_cc.c
591
if (ip->font.font_lo == 0 && c >= 0x5f && c <= 0x7e)
sys/arch/atari/dev/ite_cc.c
631
for (i = 0; i < ip->font.height; i++) {
sys/arch/atari/dev/ite_cc.c
651
for (i = ((ip->font.height) * h) - 1; i >= 0; i--) {
sys/arch/atari/dev/ite_cc.c
673
scrollbmap(bm, 0, dy * ip->font.height, bm->bytes_per_row >> 3,
sys/arch/atari/dev/ite_cc.c
674
(ip->bottom_margin - dy + 1) * ip->font.height,
sys/arch/atari/dev/ite_cc.c
675
0, -(count * ip->font.height));
sys/arch/atari/dev/ite_cc.c
678
scrollbmap(bm, 0, sy * ip->font.height, bm->bytes_per_row >> 3,
sys/arch/atari/dev/ite_cc.c
679
(ip->bottom_margin - sy + 1) * ip->font.height,
sys/arch/atari/dev/ite_cc.c
680
0, count * ip->font.height);
sys/arch/atari/dev/ite_cc.c
682
int sofs = (ip->cols - count) * ip->font.width;
sys/arch/atari/dev/ite_cc.c
683
int dofs = (ip->cols) * ip->font.width;
sys/arch/atari/dev/ite_cc.c
687
for (j = ip->font.height - 1; j >= 0; j--) {
sys/arch/atari/dev/ite_cc.c
691
sofs2 -= ip->font.width;
sys/arch/atari/dev/ite_cc.c
692
dofs2 -= ip->font.width;
sys/arch/atari/dev/ite_cc.c
695
"d" (ip->font.width));
sys/arch/atari/dev/ite_cc.c
698
"d" (ip->font.width), "d" (t));
sys/arch/atari/dev/ite_cc.c
703
int sofs = (sx) * ip->font.width;
sys/arch/atari/dev/ite_cc.c
704
int dofs = (sx - count) * ip->font.width;
sys/arch/atari/dev/ite_cc.c
708
for (j = ip->font.height - 1; j >= 0; j--) {
sys/arch/atari/dev/ite_cc.c
715
"d" (ip->font.width));
sys/arch/atari/dev/ite_cc.c
718
"d" (ip->font.width), "d" (t));
sys/arch/atari/dev/ite_cc.c
719
sofs2 += ip->font.width;
sys/arch/atari/dev/ite_cc.c
720
dofs2 += ip->font.width;
sys/arch/atari/dev/ite_et.c
305
ip->font = font_info_8x8;
sys/arch/atari/dev/ite_et.c
307
ip->font = font_info_8x16;
sys/arch/atari/dev/ite_et.c
311
if (ip->font.width != 8)
sys/arch/atari/dev/ite_et.c
373
ip->cols = view->display.width / ip->font.width;
sys/arch/atari/dev/ite_et.c
374
ip->rows = view->display.height / ip->font.height;
sys/arch/atari/dev/ite_et.c
500
if (ip->font.font_lo == 0 && c >= 0x5f && c <= 0x7e)
sys/arch/atari/dev/itevar.h
62
font_info font;
sys/arch/bebox/stand/boot/iso_font.h
33
static const unsigned char font[] = {
sys/arch/bebox/stand/boot/video.c
94
if ((font[fontbase + y] >> (FONT_WIDTH - x)) & 1)
sys/arch/bebox/stand/boot/vreset.c
625
for (i = 0; i < sizeof(font); i += 16) {
sys/arch/bebox/stand/boot/vreset.c
628
font_page[(2*i)+j] = font[i+j];
sys/arch/hpcsh/dev/hd64461/hd64461video.c
185
.font = hd64461video_font,
sys/arch/hpcsh/dev/hd64461/hd64461video.c
809
hd64461video_putchar(void *ctx, int row, int col, struct wsdisplay_font *font,
sys/arch/hpcsh/dev/hd64461/hd64461video.c
815
w = font->fontwidth;
sys/arch/hpcsh/dev/hd64461/hd64461video.c
816
h = font->fontheight;
sys/arch/hpcsh/dev/hd64461/hd64461video.c
832
hd64461video_font(void *ctx, struct wsdisplay_font *font)
sys/arch/hpcsh/dev/hd64461/hd64461video.c
836
hd64461video_font_set_attr(sc, font);
sys/arch/hpcsh/dev/hd64461/hd64461video.c
883
struct wsdisplay_font *font = &sc->sc_font.wsfont;
sys/arch/hpcsh/dev/hd64461/hd64461video.c
890
*font = *f;
sys/arch/hpcsh/dev/hd64461/hd64461video.c
905
struct hd64461video_font *font = &sc->sc_font;
sys/arch/hpcsh/dev/hd64461/hd64461video.c
909
base += (n / font->cw) * font->cstep + font->c * (n % font->cw);
sys/arch/hpcsh/dev/hd64461/hd64461video.c
918
struct wsdisplay_font *font = &sc->sc_font.wsfont;
sys/arch/hpcsh/dev/hd64461/hd64461video.c
926
w = font->fontwidth;
sys/arch/hpcsh/dev/hd64461/hd64461video.c
927
h = font->fontheight;
sys/arch/hpcsh/dev/hd64461/hd64461video.c
930
q = font->data;
sys/arch/hpcsh/dev/hd64461/hd64461video.c
932
DPRINTF("%s (%dx%d) %d+%d\n", font->name, w, h, font->firstchar,
sys/arch/hpcsh/dev/hd64461/hd64461video.c
933
font->numchars);
sys/arch/hpcsh/dev/hd64461/hd64461video.c
934
DPRINTF("bitorder %d byteorder %d stride %d\n", font->bitorder,
sys/arch/hpcsh/dev/hd64461/hd64461video.c
935
font->byteorder, font->stride);
sys/arch/hpcsh/dev/hd64461/hd64461video.c
939
for (i = font->firstchar; i < font->numchars; i++) {
sys/arch/hpcsh/dev/hd64461/hd64461video.c
947
for (i = font->firstchar; i < font->numchars; i++) {
sys/arch/hppa/dev/gftfb.c
1030
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/arch/hppa/dev/gftfb.c
1043
if (!CHAR_IN_FONT(c, font))
sys/arch/hppa/dev/gftfb.c
1050
wi = font->fontwidth;
sys/arch/hppa/dev/gftfb.c
1051
he = font->fontheight;
sys/arch/hppa/dev/gftfb.c
1098
data8 = WSFONT_GLYPH(c, font);
sys/arch/hppa/dev/gftfb.c
919
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/arch/hppa/dev/gftfb.c
929
if (!CHAR_IN_FONT(c, font))
sys/arch/hppa/dev/gftfb.c
936
wi = font->fontwidth;
sys/arch/hppa/dev/gftfb.c
937
he = font->fontheight;
sys/arch/hppa/dev/gftfb.c
953
data = WSFONT_GLYPH(c, font);
sys/arch/hppa/dev/hyperfb.c
1130
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/arch/hppa/dev/hyperfb.c
1140
if (!CHAR_IN_FONT(c, font))
sys/arch/hppa/dev/hyperfb.c
1147
wi = font->fontwidth;
sys/arch/hppa/dev/hyperfb.c
1148
he = font->fontheight;
sys/arch/hppa/dev/hyperfb.c
1166
data = WSFONT_GLYPH(c, font);
sys/arch/hppa/dev/hyperfb.c
1239
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/arch/hppa/dev/hyperfb.c
1252
if (!CHAR_IN_FONT(c, font))
sys/arch/hppa/dev/hyperfb.c
1259
wi = font->fontwidth;
sys/arch/hppa/dev/hyperfb.c
1260
he = font->fontheight;
sys/arch/hppa/dev/hyperfb.c
1308
data8 = WSFONT_GLYPH(c, font);
sys/arch/hppa/dev/summitfb.c
1015
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/arch/hppa/dev/summitfb.c
1025
if (!CHAR_IN_FONT(c, font))
sys/arch/hppa/dev/summitfb.c
1032
wi = font->fontwidth;
sys/arch/hppa/dev/summitfb.c
1033
he = font->fontheight;
sys/arch/hppa/dev/summitfb.c
1061
data = WSFONT_GLYPH(c, font);
sys/arch/hppa/dev/summitfb.c
1115
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/arch/hppa/dev/summitfb.c
1125
if (!CHAR_IN_FONT(c, font))
sys/arch/hppa/dev/summitfb.c
1132
wi = font->fontwidth;
sys/arch/hppa/dev/summitfb.c
1133
he = font->fontheight;
sys/arch/hppa/dev/summitfb.c
1170
data = WSFONT_GLYPH(c, font);
sys/arch/hppa/dev/summitfb.c
1492
uint8_t *font = sc->sc_scr.scr_romfont;
sys/arch/hppa/dev/summitfb.c
1497
if (font == NULL)
sys/arch/hppa/dev/summitfb.c
1517
font += sizeof(struct sti_font);
sys/arch/hppa/dev/summitfb.c
1520
memcpy(fontdata, font, (0x80 - fp->first) * fp->bpc);
sys/arch/hppa/dev/summitfb.c
1528
src = font + fp->bpc * si;
sys/arch/next68k/dev/nextdisplay.c
409
nextdisplay_load_font(void *v, void *cookie, struct wsdisplay_font *font)
sys/arch/playstation2/ee/gsfb.c
369
int font;
sys/arch/playstation2/ee/gsfb.c
372
font = wsfont_find(NULL, 8, 16, 0, WSDISPLAY_FONTORDER_L2R,
sys/arch/playstation2/ee/gsfb.c
374
if (font < 0)
sys/arch/playstation2/ee/gsfb.c
377
if (wsfont_lock(font, &sc->sc_font))
sys/arch/playstation2/ee/gsfb.c
394
struct wsdisplay_font *font = sc->sc_font;
sys/arch/playstation2/ee/gsfb.c
396
gsfb_set_cursor_pos(buf, col, row, font->fontwidth, font->fontheight);
sys/arch/playstation2/ee/gsfb.c
415
struct wsdisplay_font *font = sc->sc_font;
sys/arch/playstation2/ee/gsfb.c
417
if (font->encoding != WSDISPLAY_FONTENC_ISO)
sys/arch/playstation2/ee/gsfb.c
418
if ((c = wsfont_map_unichar(font, c)) < 0)
sys/arch/playstation2/ee/gsfb.c
421
if (c < font->firstchar || c >= font->firstchar + font->numchars)
sys/arch/playstation2/ee/gsfb.c
438
struct wsdisplay_font *font = sc->sc_font;
sys/arch/playstation2/ee/gsfb.c
441
gsfb_font_expand_psmct32(font, uc, attr, &buf[FONT_SCRATCH_BASE]);
sys/arch/playstation2/ee/gsfb.c
444
TRXPOS_DXY(buf, col * font->fontwidth, row * font->fontheight);
sys/arch/playstation2/ee/gsfb.c
587
gsfb_font_expand_psmct32(const struct wsdisplay_font *font, u_int c, long attr,
sys/arch/playstation2/ee/gsfb.c
599
bitmap = (u_int8_t *)font->data + (c - font->firstchar) *
sys/arch/playstation2/ee/gsfb.c
600
font->fontheight * font->stride;
sys/arch/playstation2/ee/gsfb.c
601
for (i = 0; i < font->fontheight; i++, bitmap++) {
sys/arch/playstation2/ee/gsfb.c
603
for (j = 0; j < font->fontwidth; j++, b <<= 1)
sys/arch/prep/stand/boot/iso_font.h
33
static const unsigned char font[] = {
sys/arch/prep/stand/boot/vreset.c
308
for (i = 0; i < sizeof(font); i += 16) {
sys/arch/prep/stand/boot/vreset.c
311
font_page[(2*i)+j] = font[i+j];
sys/arch/sgimips/dev/crmfb.c
1448
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/arch/sgimips/dev/crmfb.c
1455
wi = font->fontwidth;
sys/arch/sgimips/dev/crmfb.c
1456
he = font->fontheight;
sys/arch/sgimips/dev/crmfb.c
1463
uc = c - font->firstchar;
sys/arch/sgimips/dev/crmfb.c
1464
fd = (uint8_t *)font->data + uc * ri->ri_fontscale;
sys/arch/sgimips/dev/crmfb.c
1484
if (font->stride == 1) {
sys/arch/sgimips/dev/crmfb.c
1500
} else if (font->stride == 2) {
sys/arch/sgimips/dev/crmfb.c
1526
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/arch/sgimips/dev/crmfb.c
1531
wi = font->fontwidth;
sys/arch/sgimips/dev/crmfb.c
1532
he = font->fontheight;
sys/arch/sgimips/dev/crmfb.c
1539
uc = c - font->firstchar;
sys/arch/sgimips/dev/crmfb.c
1540
fd = (uint8_t *)font->data + uc * ri->ri_fontscale;
sys/arch/sgimips/gio/grtwo.c
602
struct wsdisplay_font *font = dc->dc_fontdata;
sys/arch/sgimips/gio/grtwo.c
603
u_int8_t *bitmap = (u_int8_t *) font->data + (ch - font->firstchar + 1) * font->fontheight * font->stride;
sys/arch/sgimips/gio/grtwo.c
606
int x = col * font->fontwidth;
sys/arch/sgimips/gio/grtwo.c
607
int y = dc->yres - ( (row + 1) * font->fontheight);
sys/arch/sgimips/gio/grtwo.c
621
bus_space_write_4(dc->iot, dc->ioh, GR2_FIFO_DRAWCHAR, font->fontwidth);
sys/arch/sgimips/gio/grtwo.c
622
bus_space_write_4(dc->iot, dc->ioh, GR2_FIFO_DATA, font->fontheight);
sys/arch/sgimips/gio/grtwo.c
629
for (i = 0; i < font->fontheight; i++) {
sys/arch/sgimips/gio/grtwo.c
634
bitmap -= font->stride;
sys/arch/sgimips/gio/grtwo.c
638
for (i = font->fontheight; i < 18; i++)
sys/arch/sgimips/gio/grtwo.c
649
struct wsdisplay_font *font = dc->dc_fontdata;
sys/arch/sgimips/gio/grtwo.c
651
srccol * font->fontwidth, /* x1 */
sys/arch/sgimips/gio/grtwo.c
653
dstcol * font->fontwidth, /* x2 */
sys/arch/sgimips/gio/grtwo.c
655
ncols * font->fontwidth, /* dx */
sys/arch/sgimips/gio/grtwo.c
664
struct wsdisplay_font *font = dc->dc_fontdata;
sys/arch/sgimips/gio/grtwo.c
667
startcol * font->fontwidth, /* x1 */
sys/arch/sgimips/gio/grtwo.c
669
(startcol * font->fontwidth) + ncols * font->fontwidth, /* x2 */
sys/arch/sgimips/gio/grtwo.c
678
struct wsdisplay_font *font = dc->dc_fontdata;
sys/arch/sgimips/gio/grtwo.c
682
srcrow * font->fontheight, /* y1 */
sys/arch/sgimips/gio/grtwo.c
684
dstrow * font->fontheight, /* y2 */
sys/arch/sgimips/gio/grtwo.c
686
nrows * font->fontheight);
sys/arch/sgimips/gio/grtwo.c
693
struct wsdisplay_font *font = dc->dc_fontdata;
sys/arch/sgimips/gio/grtwo.c
696
startrow * font->fontheight, /* y1 */
sys/arch/sgimips/gio/grtwo.c
698
(startrow * font->fontheight) + nrows * font->fontheight, /* y2 */
sys/arch/sgimips/gio/light.c
397
struct wsdisplay_font *font = dc->dc_fontdata;
sys/arch/sgimips/gio/light.c
402
bitmap = (u_int8_t *)font->data +
sys/arch/sgimips/gio/light.c
403
((ch - font->firstchar) * font->fontheight * font->stride);
sys/arch/sgimips/gio/light.c
404
x = col * font->fontwidth;
sys/arch/sgimips/gio/light.c
405
y = row * font->fontheight;
sys/arch/sgimips/gio/light.c
410
rex_write(dc, REX_PAGE0_SET, REX_P0REG_YENDI, y + font->fontheight - 1);
sys/arch/sgimips/gio/light.c
412
rex_write(dc, REX_PAGE0_SET, REX_P0REG_XENDI, x + font->fontwidth - 1);
sys/arch/sgimips/gio/light.c
424
for (i = 0; i < font->fontheight; i++) {
sys/arch/sgimips/gio/light.c
428
bitmap += font->stride;
sys/arch/sgimips/gio/light.c
437
struct wsdisplay_font *font = dc->dc_fontdata;
sys/arch/sgimips/gio/light.c
440
from_x = srccol * font->fontwidth;
sys/arch/sgimips/gio/light.c
441
from_y = row * font->fontheight;
sys/arch/sgimips/gio/light.c
442
to_x = dstcol * font->fontwidth;
sys/arch/sgimips/gio/light.c
444
width = ncols * font->fontwidth;
sys/arch/sgimips/gio/light.c
445
height = font->fontheight;
sys/arch/sgimips/gio/light.c
455
struct wsdisplay_font *font = dc->dc_fontdata;
sys/arch/sgimips/gio/light.c
458
from_x = startcol * font->fontwidth;
sys/arch/sgimips/gio/light.c
459
from_y = row * font->fontheight;
sys/arch/sgimips/gio/light.c
460
to_x = from_x + (ncols * font->fontwidth) - 1;
sys/arch/sgimips/gio/light.c
461
to_y = from_y + font->fontheight - 1;
sys/arch/sgimips/gio/light.c
471
struct wsdisplay_font *font = dc->dc_fontdata;
sys/arch/sgimips/gio/light.c
475
from_y = srcrow * font->fontheight;
sys/arch/sgimips/gio/light.c
477
to_y = dstrow * font->fontheight;
sys/arch/sgimips/gio/light.c
479
height = nrows * font->fontheight;
sys/arch/sgimips/gio/light.c
489
struct wsdisplay_font *font = dc->dc_fontdata;
sys/arch/sgimips/gio/light.c
493
from_y = row * font->fontheight;
sys/arch/sgimips/gio/light.c
495
to_y = from_y + (nrows * font->fontheight) - 1;
sys/arch/sgimips/gio/newport.c
1165
struct wsdisplay_font *font = PICK_FONT(ri, ch);
sys/arch/sgimips/gio/newport.c
1166
uint8_t *bitmap = (u_int8_t *)font->data + (ch - font->firstchar) *
sys/arch/sgimips/gio/newport.c
1167
font->fontheight * font->stride;
sys/arch/sgimips/gio/newport.c
1170
int x = col * font->fontwidth + ri->ri_xorigin;
sys/arch/sgimips/gio/newport.c
1171
int y = row * font->fontheight + ri->ri_yorigin;
sys/arch/sgimips/gio/newport.c
1192
(x + font->fontwidth - 1) << REX3_XYENDI_XSHIFT);
sys/arch/sgimips/gio/newport.c
1199
if (font->stride == 1) {
sys/arch/sgimips/gio/newport.c
1200
for (i = 0; i < font->fontheight; i++) {
sys/arch/sgimips/gio/newport.c
1209
for (i = 0; i < font->fontheight; i++) {
sys/arch/sgimips/gio/newport.c
1244
struct wsdisplay_font *font = ri->ri_font;
sys/arch/sgimips/gio/newport.c
1247
startcol * font->fontwidth + ri->ri_xorigin, /* x1 */
sys/arch/sgimips/gio/newport.c
1248
row * font->fontheight + ri->ri_yorigin, /* y1 */
sys/arch/sgimips/gio/newport.c
1249
ncols * font->fontwidth, /* wi */
sys/arch/sgimips/gio/newport.c
1250
font->fontheight, /* he */
sys/arch/sgimips/gio/newport.c
1277
struct wsdisplay_font *font = ri->ri_font;
sys/arch/sgimips/gio/newport.c
1289
startrow * font->fontheight + ri->ri_yorigin, /* y1 */
sys/arch/sgimips/gio/newport.c
1291
nrows * font->fontheight, /* he */
sys/arch/sparc/dev/cgfourteen.c
1598
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/arch/sparc/dev/cgfourteen.c
1610
if (!CHAR_IN_FONT(c, font))
sys/arch/sparc/dev/cgfourteen.c
1617
wi = font->fontwidth;
sys/arch/sparc/dev/cgfourteen.c
1618
he = font->fontheight;
sys/arch/sparc/dev/cgfourteen.c
1636
data = WSFONT_GLYPH(c, font);
sys/arch/sparc/dev/cgfourteen.c
1639
switch (font->stride) {
sys/arch/sparc/dev/cgfourteen.c
1721
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/arch/sparc/dev/cgfourteen.c
1733
if (!CHAR_IN_FONT(c, font))
sys/arch/sparc/dev/cgfourteen.c
1740
wi = font->fontwidth;
sys/arch/sparc/dev/cgfourteen.c
1741
he = font->fontheight;
sys/arch/sparc/dev/cgfourteen.c
1759
data8 = WSFONT_GLYPH(c, font);
sys/arch/sparc/include/oldmon.h
192
char **font; /* Font table for FB */
sys/arch/sparc64/dev/ffb.c
1042
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/arch/sparc64/dev/ffb.c
1052
wi = font->fontwidth;
sys/arch/sparc64/dev/ffb.c
1053
he = font->fontheight;
sys/arch/sparc64/dev/ffb.c
1055
if (!CHAR_IN_FONT(c, font))
sys/arch/sparc64/dev/ffb.c
1063
data = WSFONT_GLYPH(c, font);
sys/arch/sparc64/dev/ffb.c
1077
switch (font->stride) {
sys/arch/sparc64/dev/ffb.c
1102
switch (font->stride) {
sys/arch/sparc64/dev/ffb.c
1139
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/arch/sparc64/dev/ffb.c
1152
wi = font->fontwidth;
sys/arch/sparc64/dev/ffb.c
1153
he = font->fontheight;
sys/arch/sparc64/dev/ffb.c
1155
if (!CHAR_IN_FONT(c, font))
sys/arch/sparc64/dev/ffb.c
1163
data8 = WSFONT_GLYPH(c, font);
sys/arch/sun3/include/mon.h
149
char **font; /* Font table for FB */
sys/arch/sun68k/include/mon.h
153
char **font; /* Font table for FB */
sys/arch/vax/vsa/gpx.c
1013
ss->ss_gpr = MIN(GPX_WIDTH / (NBBY * font->stride), font->numchars);
sys/arch/vax/vsa/gpx.c
1016
fontbits = font->data;
sys/arch/vax/vsa/gpx.c
1017
for (row = 1, remaining = font->numchars; remaining != 0;
sys/arch/vax/vsa/gpx.c
1023
GPX_HEIGHT - row * font->fontheight;
sys/arch/vax/vsa/gpx.c
1025
ss->ss_adder->slow_dest_dy = font->fontheight;
sys/arch/vax/vsa/gpx.c
1032
for (i = font->fontheight; i != 0; i--) {
sys/arch/vax/vsa/gpx.c
1034
fontbits += font->stride;
sys/arch/vax/vsa/gpx.c
1038
if (font->stride == 1) {
sys/arch/vax/vsa/gpx.c
1040
fb += font->fontheight;
sys/arch/vax/vsa/gpx.c
1049
fb += font->fontheight;
sys/arch/vax/vsa/gpx.c
1054
fb += font->fontheight * font->stride;
sys/arch/vax/vsa/gpx.c
1061
fontbits += (nchars - 1) * font->stride * font->fontheight;
sys/arch/vax/vsa/gpx.c
526
struct wsdisplay_font *font = ri->ri_font;
sys/arch/vax/vsa/gpx.c
532
dx = col * font->fontwidth + ri->ri_xorigin;
sys/arch/vax/vsa/gpx.c
533
dy = row * font->fontheight + ri->ri_yorigin;
sys/arch/vax/vsa/gpx.c
535
uc -= font->firstchar;
sys/arch/vax/vsa/gpx.c
536
sx = (uc % ss->ss_gpr) * font->stride * NBBY;
sys/arch/vax/vsa/gpx.c
537
sy = GPX_HEIGHT - (1 + uc / ss->ss_gpr) * font->fontheight;
sys/arch/vax/vsa/gpx.c
561
ss->ss_adder->fast_dest_dx = font->fontwidth;
sys/arch/vax/vsa/gpx.c
563
ss->ss_adder->slow_dest_dy = font->fontheight;
sys/arch/vax/vsa/gpx.c
567
ss->ss_adder->source_1_dx = font->fontwidth;
sys/arch/vax/vsa/gpx.c
568
ss->ss_adder->source_1_dy = font->fontheight;
sys/arch/vax/vsa/gpx.c
572
gpx_fillrect(ss, dx, dy + font->fontheight - 2, font->fontwidth,
sys/arch/vax/vsa/gpx.c
582
struct wsdisplay_font *font = ri->ri_font;
sys/arch/vax/vsa/gpx.c
585
sx = ri->ri_xorigin + src * font->fontwidth;
sys/arch/vax/vsa/gpx.c
586
dx = ri->ri_xorigin + dst * font->fontwidth;
sys/arch/vax/vsa/gpx.c
587
w = cnt * font->fontwidth;
sys/arch/vax/vsa/gpx.c
588
y = ri->ri_yorigin + row * font->fontheight;
sys/arch/vax/vsa/gpx.c
589
h = font->fontheight;
sys/arch/vax/vsa/gpx.c
599
struct wsdisplay_font *font = ri->ri_font;
sys/arch/vax/vsa/gpx.c
602
x = ri->ri_xorigin + col * font->fontwidth;
sys/arch/vax/vsa/gpx.c
603
dx = cnt * font->fontwidth;
sys/arch/vax/vsa/gpx.c
604
y = ri->ri_yorigin + row * font->fontheight;
sys/arch/vax/vsa/gpx.c
605
dy = font->fontheight;
sys/arch/vax/vsa/gpx.c
615
struct wsdisplay_font *font = ri->ri_font;
sys/arch/vax/vsa/gpx.c
620
sy = ri->ri_yorigin + src * font->fontheight;
sys/arch/vax/vsa/gpx.c
621
dy = ri->ri_yorigin + dst * font->fontheight;
sys/arch/vax/vsa/gpx.c
622
h = cnt * font->fontheight;
sys/arch/vax/vsa/gpx.c
632
struct wsdisplay_font *font = ri->ri_font;
sys/arch/vax/vsa/gpx.c
637
y = ri->ri_yorigin + row * font->fontheight;
sys/arch/vax/vsa/gpx.c
638
dy = cnt * font->fontheight;
sys/arch/vax/vsa/gpx.c
986
struct wsdisplay_font *font = ri->ri_font;
sys/arch/x68k/dev/itevar.h
74
u_char *font;
sys/dev/hpc/hpcfb.c
1026
struct wsdisplay_font *font;
sys/dev/hpc/hpcfb.c
1046
font = ri->ri_font;
sys/dev/hpc/hpcfb.c
1053
xoff, yoff, font, fclr, uclr, uc, attr);
sys/dev/hpc/hpcfb.c
741
if (sc->sc_accessops->font) {
sys/dev/hpc/hpcfb.c
742
sc->sc_accessops->font(sc->sc_accessctx,
sys/dev/hpc/hpcfbvar.h
51
void (*font)(void *, struct wsdisplay_font *); /* load fonts */
sys/dev/ic/ct65550.c
599
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/ic/ct65550.c
615
if (__predict_false((!CHAR_IN_FONT(c, font))))
sys/dev/ic/ct65550.c
618
wi = font->fontwidth;
sys/dev/ic/ct65550.c
619
he = font->fontheight;
sys/dev/ic/ct65550.c
634
data8 = WSFONT_GLYPH(c, font);
sys/dev/ic/ct65550.c
714
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/ic/ct65550.c
727
wi = font->fontwidth;
sys/dev/ic/ct65550.c
728
he = font->fontheight;
sys/dev/ic/ct65550.c
730
if (!CHAR_IN_FONT(c, font))
sys/dev/ic/ct65550.c
739
uc = c - font->firstchar;
sys/dev/ic/ct65550.c
740
data = (uint8_t *)font->data + uc *
sys/dev/ic/ct65550.c
743
chipsfb_feed(sc, font->stride * he, data);
sys/dev/ic/sti.c
1282
sti_load_font(void *v, void *cookie, struct wsdisplay_font *font)
sys/dev/ic/sti.c
607
fontindex = mon->font;
sys/dev/ic/stireg.h
232
uint32_t font: 8; /* rom font index */
sys/dev/ic/vga.c
1370
_vga_mapchar(void *id, const struct egavga_font *font, int uni, u_int *index)
sys/dev/ic/vga.c
1373
switch (font->wsfont->encoding) {
sys/dev/ic/vga.c
1424
printf("_vga_mapchar: encoding=%d\n", font->wsfont->encoding);
sys/dev/ic/vga_raster.c
1138
if ((scr->encoding == fs->font->encoding) &&
sys/dev/ic/vga_raster.c
1139
(c >= fs->font->firstchar) &&
sys/dev/ic/vga_raster.c
1140
(c < fs->font->firstchar + fs->font->numchars) &&
sys/dev/ic/vga_raster.c
1141
(scr->type->fontheight == fs->font->fontheight)) {
sys/dev/ic/vga_raster.c
1143
tmp_ch = c - fs->font->firstchar;
sys/dev/ic/vga_raster.c
1151
scr->mem[off].enc = fs->font->encoding;
sys/dev/ic/vga_raster.c
1153
if (fs->font->stride == 2) {
sys/dev/ic/vga_raster.c
1157
scr->mem[off + 1].enc = fs->font->encoding;
sys/dev/ic/vga_raster.c
119
struct wsdisplay_font *font;
sys/dev/ic/vga_raster.c
1205
if (fs->font->stride == 1) {
sys/dev/ic/vga_raster.c
1217
pattern = ((u_int8_t *)fs->font->data)[c * fheight + i];
sys/dev/ic/vga_raster.c
1225
} else if (fs->font->stride == 2) {
sys/dev/ic/vga_raster.c
1238
pattern = ((u_int8_t *)fs->font->data)
sys/dev/ic/vga_raster.c
1244
pattern = ((u_int8_t *)fs->font->data)
sys/dev/ic/vga_raster.c
429
vf->font = wf;
sys/dev/ic/vga_raster.c
432
vf->font = &builtinfont;
sys/dev/ic/vga_raster.c
853
if (wsfont_matches(vf->font, 0, 0, scr->type->fontheight, 0,
sys/dev/ic/vga_raster.c
855
scr->encoding = vf->font->encoding;
sys/dev/ic/vga_raster.c
870
vf->font = wf;
sys/dev/ic/vga_raster.c
871
scr->encoding = vf->font->encoding;
sys/dev/ic/vga_subr.c
197
vga_load_builtinfont(struct vga_handle *vh, uint8_t *font, int firstchar,
sys/dev/ic/vga_subr.c
207
font + i * 16, 16);
sys/dev/pci/gffb.c
1358
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/pci/gffb.c
1367
if (!CHAR_IN_FONT(c, font))
sys/dev/pci/gffb.c
1370
wi = font->fontwidth;
sys/dev/pci/gffb.c
1371
he = font->fontheight;
sys/dev/pci/gffb.c
1416
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/pci/gffb.c
1426
if (!CHAR_IN_FONT(c, font))
sys/dev/pci/gffb.c
1429
wi = font->fontwidth;
sys/dev/pci/gffb.c
1430
he = font->fontheight;
sys/dev/pci/gffb.c
1444
data = WSFONT_GLYPH(c, font);
sys/dev/pci/gffb.c
1461
switch (font->stride) {
sys/dev/pci/gffb.c
1486
switch (font->stride) {
sys/dev/pci/machfb.c
1595
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/pci/machfb.c
1603
wi = font->fontwidth;
sys/dev/pci/machfb.c
1604
he = font->fontheight;
sys/dev/pci/machfb.c
1606
if (!CHAR_IN_FONT(c, font))
sys/dev/pci/machfb.c
1615
uc = c - font->firstchar;
sys/dev/pci/machfb.c
1616
data = (uint8_t *)font->data + uc *
sys/dev/pci/machfb.c
1631
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/pci/machfb.c
1643
if (!CHAR_IN_FONT(c, font))
sys/dev/pci/machfb.c
1646
wi = font->fontwidth;
sys/dev/pci/machfb.c
1647
he = font->fontheight;
sys/dev/pci/machfb.c
1664
data8 = WSFONT_GLYPH(c, font);
sys/dev/pci/mgafb.c
1877
struct wsdisplay_font *font = ri->ri_font;
sys/dev/pci/mgafb.c
1887
x = ri->ri_xorigin + col * font->fontwidth;
sys/dev/pci/mgafb.c
1888
y = ri->ri_yorigin + row * font->fontheight;
sys/dev/pci/mgafb.c
1891
glyphidx = (int)uc - font->firstchar;
sys/dev/pci/mgafb.c
1892
if ((unsigned int)glyphidx >= (unsigned int)font->numchars) {
sys/dev/pci/mgafb.c
1893
mgafb_fill_rect(sc, x, y, font->fontwidth, font->fontheight,
sys/dev/pci/mgafb.c
1912
data = (const uint8_t *)font->data + glyphidx * ri->ri_fontscale;
sys/dev/pci/mgafb.c
1913
stride = font->stride;
sys/dev/pci/mgafb.c
1914
dwords_per_row = (font->fontwidth + 31) / 32;
sys/dev/pci/mgafb.c
1928
((uint32_t)(x + font->fontwidth - 1) << 16) | (uint32_t)x);
sys/dev/pci/mgafb.c
1931
MGA_WRITE4(sc, MGA_AR0, (uint32_t)(font->fontwidth - 1));
sys/dev/pci/mgafb.c
1933
((uint32_t)y << 16) | (uint32_t)font->fontheight);
sys/dev/pci/mgafb.c
1936
for (i = 0; i < font->fontheight; i++, data += stride) {
sys/dev/pci/mgafb.c
1939
if (ul && i == font->fontheight - 1) {
sys/dev/pci/mgafb.c
1976
struct wsdisplay_font *font = PICK_FONT(ri, uc);
sys/dev/pci/mgafb.c
1989
x = ri->ri_xorigin + col * font->fontwidth;
sys/dev/pci/mgafb.c
1990
y = ri->ri_yorigin + row * font->fontheight;
sys/dev/pci/mgafb.c
1991
wi = font->fontwidth;
sys/dev/pci/mgafb.c
1992
he = font->fontheight;
sys/dev/pci/mgafb.c
2005
glyphidx = (int)uc - font->firstchar;
sys/dev/pci/mgafb.c
2006
if ((unsigned int)glyphidx >= (unsigned int)font->numchars) {
sys/dev/pci/mgafb.c
2021
data = (const uint8_t *)font->data + glyphidx * ri->ri_fontscale;
sys/dev/pci/mgafb.c
2055
stride = font->stride;
sys/dev/pci/pm2fb.c
1030
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/pci/pm2fb.c
1041
wi = font->fontwidth;
sys/dev/pci/pm2fb.c
1042
he = font->fontheight;
sys/dev/pci/pm2fb.c
1044
if (!CHAR_IN_FONT(c, font))
sys/dev/pci/pm2fb.c
1053
uc = c - font->firstchar;
sys/dev/pci/pm2fb.c
1054
data = (uint8_t *)font->data + uc * ri->ri_fontscale;
sys/dev/pci/pm2fb.c
1136
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/pci/pm2fb.c
1148
if (!CHAR_IN_FONT(c, font))
sys/dev/pci/pm2fb.c
1151
wi = font->fontwidth;
sys/dev/pci/pm2fb.c
1152
he = font->fontheight;
sys/dev/pci/pm2fb.c
1177
data8 = WSFONT_GLYPH(c, font);
sys/dev/pci/pm3fb.c
849
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/pci/pm3fb.c
860
wi = font->fontwidth;
sys/dev/pci/pm3fb.c
861
he = font->fontheight;
sys/dev/pci/pm3fb.c
863
if (!CHAR_IN_FONT(c, font))
sys/dev/pci/pm3fb.c
873
uc = c - font->firstchar;
sys/dev/pci/pm3fb.c
874
data = (uint8_t *)font->data + uc * ri->ri_fontscale;
sys/dev/pci/pm3fb.c
962
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/pci/pm3fb.c
974
if (!CHAR_IN_FONT(c, font))
sys/dev/pci/pm3fb.c
977
wi = font->fontwidth;
sys/dev/pci/pm3fb.c
978
he = font->fontheight;
sys/dev/pci/pm3fb.c
997
data8 = WSFONT_GLYPH(c, font);
sys/dev/pci/r128fb.c
835
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/pci/r128fb.c
845
if (!CHAR_IN_FONT(c, font))
sys/dev/pci/r128fb.c
848
wi = font->fontwidth;
sys/dev/pci/r128fb.c
849
he = font->fontheight;
sys/dev/pci/r128fb.c
861
data = WSFONT_GLYPH(c, font);
sys/dev/pci/r128fb.c
898
offset = 32 - (font->stride << 3);
sys/dev/pci/r128fb.c
905
switch (font->stride) {
sys/dev/pci/r128fb.c
935
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/pci/r128fb.c
947
if (!CHAR_IN_FONT(c, font))
sys/dev/pci/r128fb.c
950
wi = font->fontwidth;
sys/dev/pci/r128fb.c
951
he = font->fontheight;
sys/dev/pci/r128fb.c
965
data8 = WSFONT_GLYPH(c, font);
sys/dev/pci/radeonfb.c
3143
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/pci/radeonfb.c
3156
if (!CHAR_IN_FONT(c, font))
sys/dev/pci/radeonfb.c
3159
w = font->fontwidth;
sys/dev/pci/radeonfb.c
3160
h = font->fontheight;
sys/dev/pci/radeonfb.c
3174
data = WSFONT_GLYPH(c, font);
sys/dev/pci/radeonfb.c
3199
offset = 32 - (font->stride << 3);
sys/dev/pci/radeonfb.c
3205
switch (font->stride) {
sys/dev/pci/radeonfb.c
3247
switch (font->stride) {
sys/dev/pci/radeonfb.c
3298
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/pci/radeonfb.c
3310
if (!CHAR_IN_FONT(c, font))
sys/dev/pci/radeonfb.c
3313
w = font->fontwidth;
sys/dev/pci/radeonfb.c
3314
h = font->fontheight;
sys/dev/pci/radeonfb.c
3332
data = WSFONT_GLYPH(c, font);
sys/dev/pci/radeonfb.c
3403
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/pci/radeonfb.c
3413
if (!CHAR_IN_FONT(c, font))
sys/dev/pci/radeonfb.c
3416
wi = font->fontwidth;
sys/dev/pci/radeonfb.c
3417
he = font->fontheight;
sys/dev/pci/radeonfb.c
3435
data8 = WSFONT_GLYPH(c, font);
sys/dev/pci/veritefb.c
3454
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/pci/veritefb.c
3467
if (!CHAR_IN_FONT(c, font))
sys/dev/pci/veritefb.c
3470
wi = font->fontwidth;
sys/dev/pci/veritefb.c
3471
he = font->fontheight;
sys/dev/pci/voodoofb.c
760
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/pci/voodoofb.c
769
wi = font->fontwidth;
sys/dev/pci/voodoofb.c
770
he = font->fontheight;
sys/dev/pci/voodoofb.c
772
if (!CHAR_IN_FONT(c, font))
sys/dev/pci/voodoofb.c
781
uc = c - font->firstchar;
sys/dev/pci/voodoofb.c
782
data = (uint8_t *)font->data + uc *
sys/dev/pci/voodoofb.c
786
voodoofb_feed_line(sc, font->stride, data);
sys/dev/pci/voodoofb.c
787
data += font->stride;
sys/dev/pci/voodoofb.c
797
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/pci/voodoofb.c
808
if (!CHAR_IN_FONT(c, font))
sys/dev/pci/voodoofb.c
811
wi = font->fontwidth;
sys/dev/pci/voodoofb.c
812
he = font->fontheight;
sys/dev/pci/voodoofb.c
845
data = WSFONT_GLYPH(c, font);
sys/dev/pci/voyager/voyagerfb.c
1362
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/pci/voyager/voyagerfb.c
1373
if (!CHAR_IN_FONT(c, font))
sys/dev/pci/voyager/voyagerfb.c
1376
wi = font->fontwidth;
sys/dev/pci/voyager/voyagerfb.c
1377
he = font->fontheight;
sys/dev/pci/voyager/voyagerfb.c
1388
data = WSFONT_GLYPH(c, font);
sys/dev/pci/voyager/voyagerfb.c
1420
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/pci/voyager/voyagerfb.c
1435
if (!CHAR_IN_FONT(c, font))
sys/dev/pci/voyager/voyagerfb.c
1438
wi = font->fontwidth;
sys/dev/pci/voyager/voyagerfb.c
1439
he = font->fontheight;
sys/dev/pci/voyager/voyagerfb.c
1450
data = WSFONT_GLYPH(c, font);
sys/dev/pci/voyager/voyagerfb.c
1510
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/pci/voyager/voyagerfb.c
1525
if (!CHAR_IN_FONT(c, font))
sys/dev/pci/voyager/voyagerfb.c
1528
wi = font->fontwidth;
sys/dev/pci/voyager/voyagerfb.c
1529
he = font->fontheight;
sys/dev/pci/voyager/voyagerfb.c
1539
data = WSFONT_GLYPH(c, font);
sys/dev/pci/wcfb.c
848
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/pci/wcfb.c
852
wi = font->fontwidth;
sys/dev/pci/wcfb.c
853
he = font->fontheight;
sys/dev/rasops/rasops.h
161
#define CHAR_IN_FONT(c, font) \
sys/dev/rasops/rasops.h
162
((c) >= (font)->firstchar && \
sys/dev/rasops/rasops.h
163
(c) - (font)->firstchar < (font)->numchars)
sys/dev/rasops/rasops.h
218
#define FONT_GLYPH(uc, font, ri) \
sys/dev/rasops/rasops.h
219
((uint8_t *)(font)->data + ((uc) - ((font)->firstchar)) * \
sys/dev/rasops/rasops1-4_putchar.h
111
height = font->fontheight;
sys/dev/rasops/rasops1-4_putchar.h
112
width = font->fontwidth << PIXEL_SHIFT;
sys/dev/rasops/rasops1-4_putchar.h
132
fr = FONT_GLYPH(uc, font, ri);
sys/dev/rasops/rasops1-4_putchar.h
90
struct wsdisplay_font *font = PICK_FONT(ri, uc);
sys/dev/rasops/rasops1-4_putchar.h
99
if (__predict_false(!CHAR_IN_FONT(uc, font)))
sys/dev/rasops/rasops1.c
104
if (__predict_false(!CHAR_IN_FONT(uc, font)))
sys/dev/rasops/rasops1.c
116
height = font->fontheight;
sys/dev/rasops/rasops1.c
117
width = font->fontwidth;
sys/dev/rasops/rasops1.c
137
fr = FONT_GLYPH(uc, font, ri);
sys/dev/rasops/rasops1.c
159
fr += font->stride;
sys/dev/rasops/rasops1.c
222
fr += font->stride;
sys/dev/rasops/rasops1.c
95
struct wsdisplay_font *font = PICK_FONT(ri, uc);
sys/dev/rasops/rasops1_putchar_width.h
107
fr = FONT_GLYPH(uc, font, ri);
sys/dev/rasops/rasops1_putchar_width.h
111
fr += font->stride;
sys/dev/rasops/rasops1_putchar_width.h
65
struct wsdisplay_font *font = PICK_FONT(ri, uc);
sys/dev/rasops/rasops1_putchar_width.h
73
if (__predict_false(!CHAR_IN_FONT(uc, font)))
sys/dev/rasops/rasops1_putchar_width.h
85
height = font->fontheight;
sys/dev/rasops/rasops_putchar.h
101
struct wsdisplay_font *font = PICK_FONT(ri, uc);
sys/dev/rasops/rasops_putchar.h
109
if (__predict_false(!CHAR_IN_FONT(uc, font)))
sys/dev/rasops/rasops_putchar.h
121
height = font->fontheight;
sys/dev/rasops/rasops_putchar.h
122
width = font->fontwidth;
sys/dev/rasops/rasops_putchar.h
145
fr = FONT_GLYPH(uc, font, ri);
sys/dev/rasops/rasops_putchar_width.h
210
struct wsdisplay_font *font = PICK_FONT(ri, uc);
sys/dev/rasops/rasops_putchar_width.h
219
if (__predict_false(!CHAR_IN_FONT(uc, font)))
sys/dev/rasops/rasops_putchar_width.h
242
height = font->fontheight;
sys/dev/rasops/rasops_putchar_width.h
258
fr = FONT_GLYPH(uc, font, ri);
sys/dev/rasops/rasops_putchar_width.h
261
fr += font->stride;
sys/dev/sbus/agten.c
772
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/sbus/agten.c
778
wi = font->fontwidth;
sys/dev/sbus/agten.c
779
he = font->fontheight;
sys/dev/sbus/mgx.c
701
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/sbus/mgx.c
707
wi = font->fontwidth;
sys/dev/sbus/mgx.c
708
he = font->fontheight;
sys/dev/sbus/mgx.c
747
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/sbus/mgx.c
754
wi = font->fontwidth;
sys/dev/sbus/mgx.c
755
he = font->fontheight;
sys/dev/sbus/mgx.c
763
if (!CHAR_IN_FONT(c, font)) {
sys/dev/sbus/mgx.c
796
s = WSFONT_GLYPH(c, font);
sys/dev/sbus/p9100.c
1124
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/sbus/p9100.c
1132
wi = font->fontwidth;
sys/dev/sbus/p9100.c
1133
he = font->fontheight;
sys/dev/sbus/p9100.c
1135
if (!CHAR_IN_FONT(c, font))
sys/dev/sbus/p9100.c
1146
data = WSFONT_GLYPH(c, font);
sys/dev/sbus/p9100.c
1150
p9100_feed_line(sc, font->stride,
sys/dev/sbus/p9100.c
1152
data += font->stride;
sys/dev/sbus/p9100.c
1161
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/sbus/p9100.c
1173
if (!CHAR_IN_FONT(c, font))
sys/dev/sbus/p9100.c
1176
wi = font->fontwidth;
sys/dev/sbus/p9100.c
1178
he = font->fontheight;
sys/dev/sbus/p9100.c
1193
data8 = WSFONT_GLYPH(c, font);
sys/dev/sbus/tcx.c
1128
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/sbus/tcx.c
1138
addr = ri->ri_xorigin + col * font->fontwidth +
sys/dev/sbus/tcx.c
1139
(ri->ri_yorigin + row * font->fontheight) * ri->ri_width;
sys/dev/sbus/tcx.c
1143
((addr + font->fontwidth - 1) & 0xffffe0)) {
sys/dev/sbus/tcx.c
1147
fmask = 0xffffffff >> (32 - font->fontwidth);
sys/dev/sbus/tcx.c
1148
fmask = fmask << (32 - font->fontwidth - shift);
sys/dev/sbus/tcx.c
1157
uc = c - font->firstchar;
sys/dev/sbus/tcx.c
1158
cdata = (uint8_t *)font->data + uc * ri->ri_fontscale;
sys/dev/sbus/tcx.c
1160
if (font->fontwidth < 9) {
sys/dev/sbus/tcx.c
1162
for (i = 0; i < font->fontheight - 1; i++) {
sys/dev/sbus/tcx.c
1194
} else if (font->fontwidth < 17) {
sys/dev/sbus/tcx.c
1197
for (i = 0; i < font->fontheight - 1; i++) {
sys/dev/sbus/tcx.c
1241
(32 - (font->fontwidth + shift - 32)));
sys/dev/sbus/tcx.c
1251
uc = c - font->firstchar;
sys/dev/sbus/tcx.c
1252
cdata = (uint8_t *)font->data + uc * ri->ri_fontscale;
sys/dev/sbus/tcx.c
1254
if (font->fontwidth < 9) {
sys/dev/sbus/tcx.c
1256
for (i = 0; i < font->fontheight - 1; i++) {
sys/dev/sbus/tcx.c
1285
} else if (font->fontwidth < 17) {
sys/dev/sbus/tcx.c
1288
for (i = 0; i < font->fontheight - 1; i++) {
sys/dev/sbus/zx.c
1004
x = ri->ri_xorigin + font->fontwidth * col;
sys/dev/sbus/zx.c
1005
y = ri->ri_yorigin + font->fontheight * row;
sys/dev/sbus/zx.c
1006
zx_fillrect(sc, x, y, font->fontwidth,
sys/dev/sbus/zx.c
1007
font->fontheight, bg, ZX_STD_ROP);
sys/dev/sbus/zx.c
1012
((row * font->fontheight + ri->ri_yorigin) << 11) +
sys/dev/sbus/zx.c
1013
(col * font->fontwidth + ri->ri_xorigin);
sys/dev/sbus/zx.c
1014
fb = (uint8_t *)font->data + (uc - font->firstchar) *
sys/dev/sbus/zx.c
1016
fs = font->stride;
sys/dev/sbus/zx.c
1026
0xffffffff << (32 - font->fontwidth));
sys/dev/sbus/zx.c
1028
if (font->fontwidth <= 8) {
sys/dev/sbus/zx.c
1029
for (i = font->fontheight; i != 0; i--, dp += 2048) {
sys/dev/sbus/zx.c
1034
for (i = font->fontheight; i != 0; i--, dp += 2048) {
sys/dev/sbus/zx.c
990
struct wsdisplay_font *font = PICK_FONT(ri, uc);
sys/dev/sun/cgsix.c
1360
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/sun/cgsix.c
1372
if (!CHAR_IN_FONT(c, font))
sys/dev/sun/cgsix.c
1379
wi = font->fontwidth;
sys/dev/sun/cgsix.c
1380
he = font->fontheight;
sys/dev/sun/cgsix.c
1397
uc = c - font->firstchar;
sys/dev/sun/cgsix.c
1398
data = (uint8_t *)font->data + uc * ri->ri_fontscale;
sys/dev/sun/cgsix.c
1402
cgsix_feed_line(sc, font->stride, data);
sys/dev/sun/cgsix.c
1403
data += font->stride;
sys/dev/sun/cgsix.c
1414
struct wsdisplay_font *font = PICK_FONT(ri, c);
sys/dev/sun/cgsix.c
1428
if (!CHAR_IN_FONT(c, font))
sys/dev/sun/cgsix.c
1435
wi = font->fontwidth;
sys/dev/sun/cgsix.c
1436
he = font->fontheight;
sys/dev/sun/cgsix.c
1450
data8 = WSFONT_GLYPH(c, font);
sys/dev/tc/stic.c
1010
pb[1] = font->fontheight > 16 ? 0x04ffffff : 0x02ffffff;
sys/dev/tc/stic.c
1014
r *= font->fontheight;
sys/dev/tc/stic.c
1015
c *= font->fontwidth;
sys/dev/tc/stic.c
1016
uc = (uc - font->firstchar) * font->stride * font->fontheight;
sys/dev/tc/stic.c
1017
fr = (u_short *)((char *)font->data + uc);
sys/dev/tc/stic.c
1021
i = ((font->fontheight > 16 ? 16 : font->fontheight) << 2) - 1;
sys/dev/tc/stic.c
1023
v2 = ((c + font->fontwidth) << 19) | (v1 & 0xffff);
sys/dev/tc/stic.c
1055
if (font->fontheight > 16) {
sys/dev/tc/stic.c
1056
i = ((font->fontheight - 16) << 2) - 1;
sys/dev/tc/stic.c
1059
v2 = ((c + font->fontwidth) << 19) | (v1 & 0xffff);
sys/dev/tc/stic.c
976
struct wsdisplay_font *font;
sys/dev/tc/stic.c
998
font = si->si_font;
sys/dev/usb/udl.c
1164
struct wsdisplay_font *font = ri->ri_font;
sys/dev/usb/udl.c
1171
eoff = (y + font->fontheight) * sc->sc_width + x;
sys/dev/usb/udl.c
1172
fontbase = (uint8_t *)font->data + (uc - font->firstchar) *
sys/dev/usb/udl.c
1177
switch (font->stride) {
sys/dev/usb/udl.c
1190
fontbase += font->stride;
sys/dev/usb/udl.c
1192
for (i = 0; i < font->fontwidth; i++) {
sys/dev/usb/udl.c
1197
udl_draw_line(sc, pixels, soff, font->fontwidth);
sys/dev/wscons/wsdisplay_vcons.c
464
struct wsdisplay_font *font;
sys/dev/wscons/wsdisplay_vcons.c
507
wsfont_lock(fcookie, &font);
sys/dev/wscons/wsdisplay_vcons.c
508
if (font == NULL)
sys/dev/wscons/wsdisplay_vcons.c
520
ri->ri_font = font;
sys/dev/wscons/wsdisplay_vcons.c
860
struct wsdisplay_font *font;
sys/dev/wscons/wsdisplay_vcons.c
863
font = ((struct vcons_screen *)vs)->scr_ri.ri_font;
sys/dev/wscons/wsdisplay_vcons.c
864
fontname = font && font->name ? font->name : "";
sys/dev/wsfont/wsfont.c
1077
wsfont_map_unichar(struct wsdisplay_font *font, int c)
sys/dev/wsfont/wsfont.c
1083
if (font->encoding < 0 || font->encoding >= __arraycount(encodings))
sys/dev/wsfont/wsfont.c
1088
map1 = &encodings[font->encoding];
sys/dev/wsfont/wsfont.c
1096
if (hi == 0 && font->encoding == WSDISPLAY_FONTENC_ISO)
sys/dev/wsfont/wsfont.c
236
TAILQ_ENTRY(font) chain;
sys/dev/wsfont/wsfont.c
237
struct wsdisplay_font *font;
sys/dev/wsfont/wsfont.c
244
static struct font builtin_fonts[] = {
sys/dev/wsfont/wsfont.c
347
static TAILQ_HEAD(,font) list;
sys/dev/wsfont/wsfont.c
386
static struct font *wsfont_find0(int, int);
sys/dev/wsfont/wsfont.c
387
static struct font *wsfont_add0(struct wsdisplay_font *, int);
sys/dev/wsfont/wsfont.c
401
wsfont_revbit(struct wsdisplay_font *font)
sys/dev/wsfont/wsfont.c
405
p = (u_char *)font->data;
sys/dev/wsfont/wsfont.c
406
m = p + font->stride * font->numchars * font->fontheight;
sys/dev/wsfont/wsfont.c
413
wsfont_revbyte(struct wsdisplay_font *font)
sys/dev/wsfont/wsfont.c
418
if (font->stride == 1)
sys/dev/wsfont/wsfont.c
421
rp = (u_char *)font->data;
sys/dev/wsfont/wsfont.c
422
nr = font->numchars * font->fontheight;
sys/dev/wsfont/wsfont.c
426
r = font->stride - 1;
sys/dev/wsfont/wsfont.c
435
rp += font->stride;
sys/dev/wsfont/wsfont.c
443
struct font *ent;
sys/dev/wsfont/wsfont.c
446
f = ent->font;
sys/dev/wsfont/wsfont.c
454
wsfont_rotate_internal(struct wsdisplay_font *font, int rotate)
sys/dev/wsfont/wsfont.c
461
bool alpha = FONT_IS_ALPHA(font), cw = (rotate == WSFONT_ROTATE_CW);
sys/dev/wsfont/wsfont.c
464
newfont = malloc(sizeof(*font), M_DEVBUF, M_WAITOK);
sys/dev/wsfont/wsfont.c
466
*newfont = *font;
sys/dev/wsfont/wsfont.c
468
namelen = strlen(font->name) + 4;
sys/dev/wsfont/wsfont.c
470
strlcpy(newname, font->name, namelen);
sys/dev/wsfont/wsfont.c
475
newstride = alpha ? font->fontheight : howmany(font->fontheight, 8);
sys/dev/wsfont/wsfont.c
476
newdata = malloc(newstride * font->fontwidth * font->numchars,
sys/dev/wsfont/wsfont.c
484
for (n = 0; n < font->numchars; n++) {
sys/dev/wsfont/wsfont.c
485
ch = (u_char *)font->data +
sys/dev/wsfont/wsfont.c
486
(n * font->stride * font->fontheight);
sys/dev/wsfont/wsfont.c
488
(n * newstride * font->fontwidth);
sys/dev/wsfont/wsfont.c
489
for (h = 0; h < font->fontheight; h++) {
sys/dev/wsfont/wsfont.c
490
for (w = 0; w < font->fontwidth; w++) {
sys/dev/wsfont/wsfont.c
491
p = ch + (h * font->stride) +
sys/dev/wsfont/wsfont.c
503
((font->fontwidth - 1 - w) *
sys/dev/wsfont/wsfont.c
526
newfont->fontwidth = font->fontheight;
sys/dev/wsfont/wsfont.c
527
newfont->fontheight = font->fontwidth;
sys/dev/wsfont/wsfont.c
546
struct wsdisplay_font *font;
sys/dev/wsfont/wsfont.c
547
struct font *origfont;
sys/dev/wsfont/wsfont.c
559
font = wsfont_rotate_internal(origfont->font, rotate);
sys/dev/wsfont/wsfont.c
560
if (font == NULL)
sys/dev/wsfont/wsfont.c
569
ncookie = wsfont_find(font->name, font->fontwidth, font->fontheight,
sys/dev/wsfont/wsfont.c
570
font->stride, 0, 0, WSFONT_FIND_ALL);
sys/dev/wsfont/wsfont.c
580
struct font *ent;
sys/dev/wsfont/wsfont.c
591
for (i = 0; builtin_fonts[i].font != NULL; i++, ent++) {
sys/dev/wsfont/wsfont.c
594
ent->font->bitorder, ent->font->byteorder);
sys/dev/wsfont/wsfont.c
599
static struct font *
sys/dev/wsfont/wsfont.c
602
struct font *ent;
sys/dev/wsfont/wsfont.c
613
wsfont_matches(struct wsdisplay_font *font, const char *name,
sys/dev/wsfont/wsfont.c
619
if (FONT_IS_ALPHA(font)) {
sys/dev/wsfont/wsfont.c
629
if (height != 0 && font->fontheight != height)
sys/dev/wsfont/wsfont.c
634
if (font->fontwidth != width)
sys/dev/wsfont/wsfont.c
637
if (font->fontwidth > width) {
sys/dev/wsfont/wsfont.c
638
score -= uimin(font->fontwidth - width, 9999);
sys/dev/wsfont/wsfont.c
643
score -= uimin(width - font->fontwidth, 9999);
sys/dev/wsfont/wsfont.c
651
if (stride != 0 && font->stride != stride)
sys/dev/wsfont/wsfont.c
654
if (name != NULL && strcmp(font->name, name) != 0)
sys/dev/wsfont/wsfont.c
663
struct font *ent, *bestent = NULL;
sys/dev/wsfont/wsfont.c
667
score = wsfont_matches(ent->font, name,
sys/dev/wsfont/wsfont.c
684
struct font *ent;
sys/dev/wsfont/wsfont.c
687
matchfunc(ent->font, cookie, ent->cookie);
sys/dev/wsfont/wsfont.c
691
static struct font *
sys/dev/wsfont/wsfont.c
692
wsfont_add0(struct wsdisplay_font *font, int copy)
sys/dev/wsfont/wsfont.c
694
struct font *ent;
sys/dev/wsfont/wsfont.c
697
ent = malloc(sizeof(struct font), M_DEVBUF, M_WAITOK | M_ZERO);
sys/dev/wsfont/wsfont.c
701
ent->font = font;
sys/dev/wsfont/wsfont.c
707
ent->font = malloc(sizeof(struct wsdisplay_font), M_DEVBUF,
sys/dev/wsfont/wsfont.c
709
memcpy(ent->font, font, sizeof(*ent->font));
sys/dev/wsfont/wsfont.c
711
size = font->fontheight * font->numchars * font->stride;
sys/dev/wsfont/wsfont.c
713
memcpy(data, font->data, size);
sys/dev/wsfont/wsfont.c
714
ent->font->data = data;
sys/dev/wsfont/wsfont.c
716
name = malloc(strlen(font->name) + 1, M_DEVBUF, M_WAITOK);
sys/dev/wsfont/wsfont.c
717
strlcpy(name, font->name, strlen(font->name) + 1);
sys/dev/wsfont/wsfont.c
718
ent->font->name = name;
sys/dev/wsfont/wsfont.c
726
wsfont_add(struct wsdisplay_font *font, int copy)
sys/dev/wsfont/wsfont.c
728
struct font *ent;
sys/dev/wsfont/wsfont.c
731
if (wsfont_find(font->name, font->fontwidth, font->fontheight,
sys/dev/wsfont/wsfont.c
732
font->stride, 0, 0, WSFONT_FIND_ALL) >= 0)
sys/dev/wsfont/wsfont.c
735
ent = wsfont_add0(font, copy);
sys/dev/wsfont/wsfont.c
738
ent->cookie = wsfont_make_cookie(ident, font->bitorder,
sys/dev/wsfont/wsfont.c
739
font->byteorder);
sys/dev/wsfont/wsfont.c
747
struct font *ent;
sys/dev/wsfont/wsfont.c
756
free(ent->font->data, M_DEVBUF);
sys/dev/wsfont/wsfont.c
757
free(__UNCONST(ent->font->name), M_DEVBUF); /*XXXUNCONST*/
sys/dev/wsfont/wsfont.c
758
free(ent->font, M_DEVBUF);
sys/dev/wsfont/wsfont.c
770
struct font *ent, *neu;
sys/dev/wsfont/wsfont.c
781
neu = wsfont_add0(ent->font, 1);
sys/dev/wsfont/wsfont.c
786
ent->font->name,
sys/dev/wsfont/wsfont.c
787
ent->font->bitorder, ent->font->byteorder,
sys/dev/wsfont/wsfont.c
793
if (bito && bito != ent->font->bitorder) {
sys/dev/wsfont/wsfont.c
794
wsfont_revbit(ent->font);
sys/dev/wsfont/wsfont.c
795
ent->font->bitorder = bito;
sys/dev/wsfont/wsfont.c
798
if (byteo && byteo != ent->font->byteorder) {
sys/dev/wsfont/wsfont.c
799
wsfont_revbyte(ent->font);
sys/dev/wsfont/wsfont.c
800
ent->font->byteorder = byteo;
sys/dev/wsfont/wsfont.c
807
*ptr = ent->font;
sys/dev/wsfont/wsfont.c
814
struct font *ent;
sys/dev/wsfont/wsfont.h
37
#define WSFONT_GLYPH(c, font) ((uint8_t *)font->data + \
sys/dev/wsfont/wsfont.h
38
((c) - font->firstchar) * font->stride * font->fontheight)