grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fonts for gfxmenu, help needed


From: Qianqian Fang
Subject: Re: fonts for gfxmenu, help needed
Date: Sat, 28 Nov 2009 17:33:34 -0500
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Michal Suchanek wrote:
Am I missing something? For me fontconfig was always a commandline
tool. I do use some charmap tools but onen of them comes with
fontconfig.

I am sorry, I meant "fontforge", not fontconfig. Those are
the steps to prepare a bitmap font (in bdf format, then
you can convert it to pf2)

I wonder if this is reproducible with grub-mkfont.

Also is autohinting free enough to be enabled in Debian and other
distribution packages? I don't recall the exact details of the patent
issues with different font rendering methods.

I don't think so, but you can try. A good resterization requires
the font itself to contain the so called "hints", either PS hints
or TTF hints. But most free CJK vector fonts don't have it
build-in. That's why I have the steps to produce those in
fontforge.

Autohint is fine, the same for PS hints. It is the truetype hint
that has a patent, but I heard it got expired this Oct. I don't know
if it has been renewed or not. Ubuntu ships byte-code-enabled
freetype. Debian doesn't (at least a few years ago).

I am not sure this is optimal method of rasterizing fonts. Perhaps
grub should be improved to handle vector graphics or at least fonts
rasterized into greyscale.

As I said, to produce a good resterization, the font file need to
contain hints, but almost all free CJK fonts don't have. I don't
think grub can help in this aspect, unless you port the
"stem-extraction" code from fontforge, that's a lot of work.

The uming_32px contains pretty large and mostly nice glyphs but they
are still clearly pixelated, even at this size.

Given the 1-bit bitmap limitation most glyphs look pretty good but the
灱 glyph just above the UmingCN title in the taskbar is particularly
ugly. Is this an expected limitation of this rendering method that
some glyphs simply turn out ugly or is this a bug in the font?

I am not sure which glyph you are referring to, but if you
are talking about the AA-ed small-sized Han glyphs above each
bitmap, it is the direct rendering results from ZenHei by
freetype2, without embedded bitmaps and autohint, and
yes, they look blurry. In fact, all of the CJK fonts will look
blurry at that size. Fortunately, ZenHei has embedded bitmaps.

Thanks

Michal


_______________________________________________
Grub-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/grub-devel






reply via email to

[Prev in Thread] Current Thread [Next in Thread]