[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Converter for the new font engine
From: |
Bean |
Subject: |
Re: [PATCH] Converter for the new font engine |
Date: |
Sat, 10 Jan 2009 03:05:37 +0800 |
On Fri, Jan 9, 2009 at 12:36 AM, Colin D Bennett <address@hidden> wrote:
> On Wed, 7 Jan 2009 01:33:42 +0800
> Bean <address@hidden> wrote:
>
>> Hi Colin,
>>
>> BTW, there seems to be some new tags in the pf2 file created by java
>> converter, perhaps you can update the wiki page sometime ?
>
> Hi Bean,
>
> I have updated the font format document [1]. The following are the main
> changes I made:
>
> * Added information on sections FAMI, WEIG, SLAN, PTSZ. These are used
> to do intelligent font substitution, and later may be used to
> programmatically request the bold version of a font, or a larger size
> of the same font, etc.
>
> * Fixed incorrect statement of font metric value data types: The
> document previously stated uint32be, when in fact they are stored as
> 16-bit values (uint16be).
>
> * Added a comment to the effect that grub-mkfont will take the place of
> the Java font converter.
Hi,
Thanks Colin. I've updated grub-mkfont, main changes are:
* Include new tags FAMI, WEIG, SLAN, PTSZ
* Calculate font descent automatically. You can also overwrite it with
--desc option.
* Add option --force--autohint and --no-hinting
* Print font information in verbose mode.
level = 1 (-v): Print basic information, for example:
Font name: Arial Regular 16
Max width: 16
Max height: 15
Font ascent: 13
Font descent: 3
Number of glyph: 96
level >1 (-vv): Print basic information and ascii representation of
glyphs, for example:
Glyph #43, U+004b
Width 11, Height 12, X offset 0, Y offset 0, Device width 10
+.........*
_#_____##__
_#____##___
_#___##____
_#__##_____
_#__#______
_#_###_____
_##_##_____
_#___##____
_#____##___
_#____##___
_#_____##__
_#______##_
+.........*
+.........*
+.........*
#: 1 in the bitmap
_: 0 in the bitmap
+: x, y axis
.: empty space inside (0, -desc, device_width, asce)
*: empty space outside (0, -desc, device_width, asce)
If there is no objection, I'd commit this patch in a few days.
2009-01-10 Bean <address@hidden>
* Makefile.in (freetype_cflags): New macro.
(freetype_libs): New macro.
* common.rmk (bin_UTILITIES): Add grub-mkfont.
(grub_mkfont_SOURCES): New macro.
(grub_mkfont_CFLAGS): New macro.
(grub_mkfont_LDFLAGS): New macro.
* configure.ac (FREETYPE): New test for freetype.
(freetype_cflags): New macro.
(freetype_libs): New macro.
* util/grub-mkfont.c: New file.
--
Bean
grub2_mkfont_4.diff
Description: Text document