From owner-freebsd-current@FreeBSD.ORG Wed Sep 24 22:26:40 2014 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4DF5CA30; Wed, 24 Sep 2014 22:26:40 +0000 (UTC) Received: from m.saper.info (m.saper.info [IPv6:2a01:4f8:a0:7383::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "m.saper.info", Issuer "Marcin Cieslak 2011" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DB82E672; Wed, 24 Sep 2014 22:26:39 +0000 (UTC) Received: from localhost (saper@localhost [127.0.0.1]) by m.saper.info (8.14.9/8.14.9) with ESMTP id s8OMQZj2000147 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 24 Sep 2014 22:26:36 GMT (envelope-from saper@saper.info) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=saper.info; s=Sep2014; t=1411597596; bh=Wi54kjXeg/1jCFWXDCdRsataN4NFKWto3dSqd8AxElM=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=FjJyEHrlPZh8Wit1zs7G1G75CA+Ju3qK9QHw23j5Sp3NyiGMNaBcCjfXZU9dLX4pd 2y2v4ZxH27h3kRfgORzzHU5aDsncemWt1hJ0W7KUwtWqxJNbd3XfAiI5d2OQO+yBwv xUxAd1r+IaBIqNuj2rs19PdKa9HYwFFhQ4QCSfX8= Date: Wed, 24 Sep 2014 22:26:35 +0000 (UTC) From: Marcin Cieslak To: Benjamin Kaduk Subject: Re: Teach vidcontrol(1) and vt(4) to restore default font In-Reply-To: Message-ID: References: User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@FreeBSD.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2014 22:26:40 -0000 On Sat, 13 Sep 2014, Benjamin Kaduk wrote: > On Sat, 13 Sep 2014, Marcin Cieslak wrote: > >> Hello, >> >> I tried loading gallant.fnt which I did not >> like and I was wondering how to come back to >> the nice default font. >> >> There does not seem to be the way to do this, >> so please find below a simple patch to add >> this functionality. >> >> It adds a new ioctl PIO_VDFFONT to the vt(4) >> driver. I hope I got the reference counting >> on the vt_font_default structure right. >> >> With this patch applied, "vidcontrol -f" restores >> the built-in font. > > Can you please submit this to our bug tracker so it doesn't get lost? > > https://bugs.freebsd.org/submit Sure, it lives under https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193910 now. //Marcin