All of lore.kernel.org
 help / color / mirror / Atom feed
* grub-mkfont generate errors when converting truetype fonts
@ 2012-02-22  2:17 Towheed Mohammed
  2012-02-22  3:23 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 5+ messages in thread
From: Towheed Mohammed @ 2012-02-22  2:17 UTC (permalink / raw)
  To: grub-devel@gnu.org

Whenever you grub-mkfont is used to convert truetype fonts to PFF2 fonts, it generates several errors.  For example:
grub-mkfont -v -s 12 -r 0x0-0x7F -o ~/Documents/dejavu-sans-12.pf2 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
gives the following error:
        Unknown gsub feature 0x63636d70 (ccmp)
        Unknown gsub feature 0x63636d70 (ccmp)
        Unknown gsub feature 0x63636d70 (ccmp)
        Unknown gsub feature 0x63636d70 (ccmp)
        Unknown gsub feature 0x646c6967 (dlig)
        Unknown gsub feature 0x646c6967 (dlig)
        Unknown gsub feature 0x646c6967 (dlig)
        Unsupported substitution flag: 0x9
        Unsupported substitution flag: 0x9
        Unknown gsub feature 0x686c6967 (hlig)
        Unknown gsub feature 0x686c6967 (hlig)
        Unsupported substitution flag: 0x9
        Unsupported substitution flag: 0x9
        Unknown gsub feature 0x6c6f636c (locl)
        Unknown gsub feature 0x6c6f636c (locl)
        Unknown gsub feature 0x6c6f636c (locl)
        Unsupported substitution flag: 0x9
        Unsupported substitution flag: 0x9
        Unknown gsub feature 0x73616c74 (salt)
        Unknown gsub feature 0x73616c74 (salt)
        Unknown gsub feature 0x73616c74 (salt)
        Font name: DejaVu Sans Regular 12
        Max width: 11
        Max height: 12
        Font ascent: 10
        Font descent: 3
        Number of glyph: 95


This happens with any TTF font.  Depending on the font, it, may generate more or less errors.  Converting X11's .pcf.gz works just fine.


This is a long-standing issue with grub-mkfont that started somewhere in the later releases of 1.98.  This never occurred in earlier releaes of 1.98.  Will it be fixed in the 2.00 release?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: grub-mkfont generate errors when converting truetype fonts
  2012-02-22  2:17 grub-mkfont generate errors when converting truetype fonts Towheed Mohammed
@ 2012-02-22  3:23 ` Vladimir 'φ-coder/phcoder' Serbinenko
  2012-02-22  3:36   ` Towheed Mohammed
  0 siblings, 1 reply; 5+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2012-02-22  3:23 UTC (permalink / raw)
  To: grub-devel

On 22.02.2012 03:17, Towheed Mohammed wrote:
> Whenever you grub-mkfont is used to convert truetype fonts to PFF2 fonts, it generates several errors.  For example:
> grub-mkfont -v -s 12 -r 0x0-0x7F -o ~/Documents/dejavu-sans-12.pf2 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
> gives the following error:
It's not errors. Just warnings that the resulting pf2 will be of lesser 
quality than source TTF
 > This is a long-standing issue with grub-mkfont that started somewhere 
in the later releases of 1.98.  This never occurred in earlier releaes 
of 1.98.
The earlier versions just ignored the features altogether. Newer report 
them but it's *warnings*, not errors.


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: grub-mkfont generate errors when converting truetype fonts
  2012-02-22  3:23 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2012-02-22  3:36   ` Towheed Mohammed
  2012-02-22  3:50     ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 5+ messages in thread
From: Towheed Mohammed @ 2012-02-22  3:36 UTC (permalink / raw)
  To: The development of GNU GRUB

But as you can see from the verbose output, because of these warnings, it produces only 95 glyphs as opposed to the expected 128.  As for the quality, it is much lower than the fonts produced by earlier versions.

----- Original Message -----
From: Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>
To: grub-devel@gnu.org
Cc: 
Sent: Tuesday, February 21, 2012 11:23 PM
Subject: Re: grub-mkfont generate errors when converting truetype fonts

On 22.02.2012 03:17, Towheed Mohammed wrote:
> Whenever you grub-mkfont is used to convert truetype fonts to PFF2 fonts, it generates several errors.  For example:
> grub-mkfont -v -s 12 -r 0x0-0x7F -o ~/Documents/dejavu-sans-12.pf2 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
> gives the following error:
It's not errors. Just warnings that the resulting pf2 will be of lesser quality than source TTF
> This is a long-standing issue with grub-mkfont that started somewhere in the later releases of 1.98.  This never occurred in earlier releaes of 1.98.
The earlier versions just ignored the features altogether. Newer report them but it's *warnings*, not errors.


-- Regards
Vladimir 'φ-coder/phcoder' Serbinenko


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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: grub-mkfont generate errors when converting truetype fonts
  2012-02-22  3:36   ` Towheed Mohammed
@ 2012-02-22  3:50     ` Vladimir 'φ-coder/phcoder' Serbinenko
  2012-02-23  1:32       ` Towheed Mohammed
  0 siblings, 1 reply; 5+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2012-02-22  3:50 UTC (permalink / raw)
  To: The development of GNU GRUB; +Cc: Towheed Mohammed

On 22.02.2012 04:36, Towheed Mohammed wrote:
> But as you can see from the verbose output, because of these warnings, it produces only 95 glyphs as opposed to the expected 128.
The codepoint ranges 0-0x1f and 0x7f are controls and have no glyph. Do 
you have the comparison of glyphs in questions? What glitches do you see?
>    As for the quality, it is much lower than the fonts produced by earlier versions.
>
> ----- Original Message -----
> From: Vladimir 'φ-coder/phcoder' Serbinenko<phcoder@gmail.com>
> To: grub-devel@gnu.org
> Cc:
> Sent: Tuesday, February 21, 2012 11:23 PM
> Subject: Re: grub-mkfont generate errors when converting truetype fonts
>
> On 22.02.2012 03:17, Towheed Mohammed wrote:
>> Whenever you grub-mkfont is used to convert truetype fonts to PFF2 fonts, it generates several errors.  For example:
>> grub-mkfont -v -s 12 -r 0x0-0x7F -o ~/Documents/dejavu-sans-12.pf2 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
>> gives the following error:
> It's not errors. Just warnings that the resulting pf2 will be of lesser quality than source TTF
>> This is a long-standing issue with grub-mkfont that started somewhere in the later releases of 1.98.  This never occurred in earlier releaes of 1.98.
> The earlier versions just ignored the features altogether. Newer report them but it's *warnings*, not errors.
>
>
> -- Regards
> Vladimir 'φ-coder/phcoder' Serbinenko
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: grub-mkfont generate errors when converting truetype fonts
  2012-02-22  3:50     ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2012-02-23  1:32       ` Towheed Mohammed
  0 siblings, 0 replies; 5+ messages in thread
From: Towheed Mohammed @ 2012-02-23  1:32 UTC (permalink / raw)
  To: The development of GNU GRUB

Eliminating the codepoints produces 95 glyphs as expected.  Just that earlier versions produced 128 glyphs for 0x0-0x7f.

After some extensive testing today, the problem may be with some distros ttf fonts.

----- Original Message -----
From: Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Cc: Towheed Mohammed <towheedm@yahoo.com>
Sent: Tuesday, February 21, 2012 11:50 PM
Subject: Re: grub-mkfont generate errors when converting truetype fonts

On 22.02.2012 04:36, Towheed Mohammed wrote:
> But as you can see from the verbose output, because of these warnings, it produces only 95 glyphs as opposed to the expected 128.
The codepoint ranges 0-0x1f and 0x7f are controls and have no glyph. Do 
you have the comparison of glyphs in questions? What glitches do you see?
>    As for the quality, it is much lower than the fonts produced by earlier versions.
>
> ----- Original Message -----
> From: Vladimir 'φ-coder/phcoder' Serbinenko<phcoder@gmail.com>
> To: grub-devel@gnu.org
> Cc:
> Sent: Tuesday, February 21, 2012 11:23 PM
> Subject: Re: grub-mkfont generate errors when converting truetype fonts
>
> On 22.02.2012 03:17, Towheed Mohammed wrote:
>> Whenever you grub-mkfont is used to convert truetype fonts to PFF2 fonts, it generates several errors.  For example:
>> grub-mkfont -v -s 12 -r 0x0-0x7F -o ~/Documents/dejavu-sans-12.pf2 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
>> gives the following error:
> It's not errors. Just warnings that the resulting pf2 will be of lesser quality than source TTF
>> This is a long-standing issue with grub-mkfont that started somewhere in the later releases of 1.98.  This never occurred in earlier releaes of 1.98.
> The earlier versions just ignored the features altogether. Newer report them but it's *warnings*, not errors.
>
>
> -- Regards
> Vladimir 'φ-coder/phcoder' Serbinenko
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-23  1:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-22  2:17 grub-mkfont generate errors when converting truetype fonts Towheed Mohammed
2012-02-22  3:23 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-22  3:36   ` Towheed Mohammed
2012-02-22  3:50     ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-23  1:32       ` Towheed Mohammed

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.