Lines Matching refs:vf
635 vt_termsize(struct vt_device *vd, struct vt_font *vf, term_pos_t *size)
642 if (vf != NULL) {
643 size->tp_row = MIN(size->tp_row / vf->vf_height,
645 size->tp_col = MIN(size->tp_col / vf->vf_width,
651 vt_termrect(struct vt_device *vd, struct vt_font *vf, term_rect_t *rect)
661 if (vf != NULL) {
663 howmany(rect->tr_begin.tp_row, vf->vf_height);
665 rect->tr_end.tp_row = MIN(rect->tr_end.tp_row / vf->vf_height,
667 rect->tr_end.tp_col = MIN(rect->tr_end.tp_col / vf->vf_width,
673 vt_winsize(struct vt_device *vd, struct vt_font *vf, struct winsize *size)
681 if (vf != NULL) {
682 size->ws_row = MIN(size->ws_row / vf->vf_height,
684 size->ws_col = MIN(size->ws_col / vf->vf_width,
693 struct vt_font *vf;
708 vf = vw->vw_font;
718 vw->vw_draw_area.tr_begin.tp_col = (vd->vd_width % vf->vf_width) / 2;
719 vw->vw_draw_area.tr_begin.tp_row = (height % vf->vf_height) / 2;
723 rounddown(vd->vd_width, vf->vf_width);
725 rounddown(height, vf->vf_height);
1232 struct vt_font *vf;
1236 vf = vw->vw_font;
1241 if (vf != NULL) {
1242 area.tr_begin.tp_col = x / vf->vf_width;
1243 area.tr_begin.tp_row = y / vf->vf_height;
1245 ((x + vd->vd_mcursor->width) / vf->vf_width) + 1;
1247 ((y + vd->vd_mcursor->height) / vf->vf_height) + 1;
1305 struct vt_font *vf;
1318 vf = vw->vw_font;
1319 if (((vd->vd_flags & VDF_TEXTMODE) == 0) && (vf == NULL))
1372 vt_termrect(vd, vf, &tarea);
1869 vt_change_font(struct vt_window *vw, struct vt_font *vf)
1898 vt_termsize(vd, vf, &size);
1899 vt_winsize(vd, vf, &wsz);
1910 if (vw->vw_font != vf && vw->vw_font != NULL && vf != NULL) {
1916 vw->vw_font = vtfont_ref(vf);
2033 struct vt_font *vf;
2038 vf = vw->vw_font;
2041 x = vd->vd_mx / vf->vf_width;
2042 y = vd->vd_my / vf->vf_height;
2111 struct vt_font *vf;
2117 vf = vw->vw_font;
2128 if (vf == NULL) /* Text mode. */
2146 vt_termsize(vd, vf, &size);
2151 x = MIN(x, (size.tp_col * vf->vf_width) - 1);
2152 y = MIN(y, (size.tp_row * vf->vf_height) - 1);
2158 vd->vd_mx / vf->vf_width,
2159 vd->vd_my / vf->vf_height);
2219 if (vtbuf_set_mark(&vw->vw_buf, mark, vd->vd_mx / vf->vf_width,
2220 vd->vd_my / vf->vf_height) == 1) {
2606 struct vt_font *vf;
2611 error = vtfont_load((void *)data, &vf);
2615 error = vt_change_font(vw, vf);
2616 vtfont_unref(vf);