Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Nytyn-0002bS-LY for mharc-grub-devel@gnu.org; Mon, 05 Apr 2010 17:37:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nytym-0002bI-1M for grub-devel@gnu.org; Mon, 05 Apr 2010 17:37:08 -0400 Received: from [140.186.70.92] (port=55147 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nytyk-0001qB-EW for grub-devel@gnu.org; Mon, 05 Apr 2010 17:37:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nytvn-0000BA-P1 for grub-devel@gnu.org; Mon, 05 Apr 2010 17:34:11 -0400 Received: from mail-fx0-f227.google.com ([209.85.220.227]:37420) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nytvn-0000Al-7P for grub-devel@gnu.org; Mon, 05 Apr 2010 17:34:03 -0400 Received: by fxm27 with SMTP id 27so1214235fxm.8 for ; Mon, 05 Apr 2010 14:34:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:received:message-id :subject:to:content-type:content-transfer-encoding; bh=IuSiFISQ2PS8+ss8lo+F3s5fbmUVTQ6kKS/PuBo631Y=; b=RS6oa3OWSFS1HtTgoQ7jhtx1dy3pXzb42Nz2MT+VkyVXnvHbSCAWO9H1jSkilMJyRw 6wH8SHoxSwcp7PGhYQ+EG9jFK8RDLTuVjlmwKbRH+XsK/Om+iox7F9I4c6rsbXk/Ru8l Agpkqk9kMrSh8CnbmMNplI/77+r8YRcCqWqRE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; b=krLs1QbqNH2uhQovCBqTk3BHSsuyiChhNsxIMp/QDR74mALAfHiON1suRdADcyVbs3 p9hn3JjwgkeiaHPItVdBnjK9cVA+7q9KWLZAPQ/Ssk2ezd9m2rNZNbZXAXhVL3mwU7n0 HyrlaKfK71oesrR07jI1I3XfaSUT8I7uxa4tM= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.239.182.198 with HTTP; Mon, 5 Apr 2010 14:33:41 -0700 (PDT) In-Reply-To: <1270446606.2581.41.camel@EK> References: <1267019540.8797.9.camel@EK> <4BB65231.10205@gmail.com> <1270446606.2581.41.camel@EK> From: Michal Suchanek Date: Mon, 5 Apr 2010 23:33:41 +0200 X-Google-Sender-Auth: 105f34aa32bcadbf Received: by 10.239.171.135 with SMTP id w7mr485482hbe.56.1270503241115; Mon, 05 Apr 2010 14:34:01 -0700 (PDT) Message-ID: To: The development of GNU GRUB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] Font antialiasing v2 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2010 21:37:08 -0000 On 5 April 2010 07:50, Evgeny Kolesnikov wrote: > On Fri, 2010-04-02 at 22:23 +0200, Vladimir '=CF=86-coder/phcoder' Serbin= enko >> +#define FONT_FORMAT_STORAGE_PACK_MASK 0x0F >> +#define FONT_FORMAT_STORAGE_PACKED 1 >> +#define FONT_FORMAT_STORAGE_DEPTH_MASK 0xF0 >> +#define FONT_FORMAT_STORAGE_1BIT 0 >> +#define FONT_FORMAT_STORAGE_8BIT_GRAY 32 >> Using entire byte for this is quite a waste. It's better to use 2 or 3 l= ast bit as STORAGE_FORMAT > > This byte is already wasted with packed/unpacked bit. > 3 bits actually, others as reserved. And I used reserved ones. > See http://grub.gibibit.com/New_font_format (PFF2 spec, CHIX, item 2). > >> Also I doubt usefulness of a font in which only some glyphs are anti-ali= ased. Perhaps we could move antialiasing flags to file header and shave off= few bytes? > > Yes this makes sense. I.e. substitution glyph for unknown symbol > have no AA. Also frames and other geometry can benefit from this. > Anyway this byte is already wasted in original spec. There are only very few graphic characters that actually don't need the antialiasing because they are completely square. Note, however, that even square multiline characters in Chinese fonts can benefit from antialiasing for purpose of line alignment so the only characters that don't are a few box drawings. When the replacement character is a symbol like question tag it can benefit from antialiasing as well. It is not advised to draw multitude of line characters in graphics mode, plain lines should be used instead so the performance of drawing these characters is not critical to the point that an additional feature should be added to the file format IMHO. Thanks Michal