font size in vt

Roland Smith rsmith at xs4all.nl
Tue Aug 23 19:22:21 UTC 2016


On Tue, Aug 23, 2016 at 10:59:35PM +0700, Victor Sudakov wrote:
> Felix Friedlander wrote:
> > > 
> > > I'm currently using vt(4) for my console on a 10.3-RELEASE system.
> > > With the i915kms.ko loaded, my text console becomes 67 rows, 240 columns
> > > (according to `stty -a`) with a very small font.

According to the newcons wiki and vt(4), you should be able to set the size with a
sysctl, e.g:

    kern.vt.fb.default_mode="1024x768"

And you should be able to use vidcontrol(1) to query the available modes, but
I've never tried that yet.

> > > How can I configure a larger font with less rows and columns? All my
> > > knowledge of syscons, vidcontrol etc seems useless with vt+i915kms.
> > > 
> > > Thanks in advance for any help.
> > > 
> > > -- 
> > > Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
> > > sip:sudakov at sibptus.tomsk.ru
> > 
> > The short answer is: load a larger font. You can use the
> > `vtfontcvt??? command to generate your own font from a bdf file - if
> > you don???t care what font, http://terminus-font.sourceforge.net is
> > available in a variety of sizes. 
> 
> I've tried converting some fonts from terminus-font-4.40/*.bdf,
> none have given a satisfactory result. If anyone has a decent-looking
> large FNT font (with Cyrillic characters), to make the vt console look
> more like the traditional 80x25 terminal, please share.
> 
> > Fonts that you put in
> > /usr/share/vt/fonts will show up in `vidfont' too.
> 
> And what's the rc.conf variable for setting the vidfont at boot time?

To set e.g. the “gallant” font, put

    allscreens_flags="-f gallant"

in /etc/rc.conf. This is passed to vidcontrol(1).


Roland
-- 
R.F.Smith                                   http://rsmith.home.xs4all.nl/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 5753 3324 1661 B0FE 8D93  FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20160823/e9d71005/attachment.sig>


More information about the freebsd-questions mailing list