fonts for gfxmenu, help needed
Hi,
Help is needed in order to provide the last bit that will make gfxmenu
functional: fonts of multiple sizes.
The sample tarball at http://grub.gibibit.com/files/overlay_2009-07-19.tar.gz
includes a set of prebuilt fonts. They were built using a Java utility which ended up being replaced with grub-mkfont in our repository.
In order to provide the basic infrastructure so that theme authors can begin developing their artwork, we need GRUB to build fonts from the original unifont files (unifont.bdf or unifont.pcf.gz).
Can someone figure out appropiate parameters for grub-mkfont, such that when applied on unifont.bdf or unifont.pcf.gz they will output suitable PF2 font files? A font file is suitable if it can be used to replace the prebuilt ones in overlay_2009-07-19.tar.gz and its themes can still use them.
Signature · 5 lines
Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."
2009/11/24 Robert Millan <[email protected]>:
Quoted 14 lines
Hi,
Help is needed in order to provide the last bit that will make gfxmenu
functional: fonts of multiple sizes.The sample tarball at http://grub.gibibit.com/files/overlay_2009-07-19.tar.gz
includes a set of prebuilt fonts. They were built using a Java utility which ended up being replaced with grub-mkfont in our repository.In order to provide the basic infrastructure so that theme authors can begin developing their artwork, we need GRUB to build fonts from the original unifont files (unifont.bdf or unifont.pcf.gz).
Quoted 5 lines
Can someone figure out appropiate parameters for grub-mkfont, such that when applied on unifont.bdf or unifont.pcf.gz they will output suitable PF2 font files? A font file is suitable if it can be used to replace the prebuilt ones in overlay_2009-07-19.tar.gz and its themes can still use them.
I suspect what you are asking is impossible.
As far as I understand unifont is a single bitmap font in a single pixel size and the tarball you sent contains multiple font faces in multiple sizes.
It could be achieved by converting the said fonts rather than unifont but it seems you want to avoid that for some reason.
Thanks
Michal
Quoted 6 lines · Michal Suchanek
I suspect what you are asking is impossible.
As far as I understand unifont is a single bitmap font in a single pixel size and the tarball you sent contains multiple font faces in multiple sizes.
Any idea how were those fonts built, then?
Quoted 2 lines
It could be achieved by converting the said fonts rather than unifont but it seems you want to avoid that for some reason.
Why would I want to convert those fonts? My goal is figuring out how to provide suitable font files out of the usual selection of free fonts that is provided by distributors. So far I only know of unifont in this selection, but there's certainly more. Can you help?
Signature · 5 lines
Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."
Quoted 9 lines · On Tue, 24 Nov 2009 18:35:55 +0100 Robert Millan <[email protected]> wrote:
Quoted 6 lines · Michal Suchanek
I suspect what you are asking is impossible.
As far as I understand unifont is a single bitmap font in a single pixel size and the tarball you sent contains multiple font faces in multiple sizes.
Any idea how were those fonts built, then?
I just took a bunch of fonts from my Gentoo Linux system and converted them. It is just a quick demonstration of how many types, sizes, and styles of fonts can be used (e.g., small to huge; sans-serif, monospaced, and serif; italic and normal; etc.).
Quoted 4 lines
Why would I want to convert those fonts? My goal is figuring out how to provide suitable font files out of the usual selection of free fonts that is provided by distributors. So far I only know of unifont in this selection, but there's certainly more. Can you help?
I think that true bitmap fonts will look much, much better than converted outline fonts, but perhaps if we added an 8-bit alpha channel to the font format and grub-mkfont could do anti-aliasing during the conversion process; then I think we could make use of all the free outline fonts (the Liberation font series? I know there must be a number of free fonts we can use. Most won't support full Unicode though, but by using font fallback we can search for glyphs missing from the primary font in some language-specific fallback fonts).
Regards,
Colin
Quoted 12 lines · Colin D Bennett
Quoted 8 lines · On Tue, 24 Nov 2009 18:35:55 +0100 Robert Millan <[email protected]> wrote:
Quoted 6 lines · Michal Suchanek
I suspect what you are asking is impossible.
As far as I understand unifont is a single bitmap font in a single pixel size and the tarball you sent contains multiple font faces in multiple sizes.
Quoted 8 lines
Quoted 2 lines
Any idea how were those fonts built, then?
I just took a bunch of fonts from my Gentoo Linux system and converted them. It is just a quick demonstration of how many types, sizes, and styles of fonts can be used (e.g., small to huge; sans-serif, monospaced, and serif; italic and normal; etc.).
I identified number of fonts as one of the reason of gfxmenu needing important amount of time to load. I prefer to have few nice looking free fonts with reasonable unicode coverage (we'll need it because of gettext) and load only ones really needed
Quoted 7 lines
Quoted 6 lines
Why would I want to convert those fonts? My goal is figuring out how to provide suitable font files out of the usual selection of free fonts that is provided by distributors. So far I only know of unifont in this selection, but there's certainly more. Can you help?
Quoted 5 lines
I think that true bitmap fonts will look much, much better than converted outline fonts, but perhaps if we added an 8-bit alpha channel to the font format and grub-mkfont could do anti-aliasing during the conversion process; then I think we could make use of all the free outline fonts
I'm ok wth doing any kind of preprocessing in grub-mkfont but grub2 has to remain simple in order to ensure reasonable performance even on slow system (curren't it's not the case and more work is needed for optimising it)
Quoted 11 lines
Regards,
Colin------------------------------------------------------------------------
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 10 lines · Vladimir 'φ-coder/phcoder' Serbinenko
I identified number of fonts as one of the reason of gfxmenu needing important amount of time to load. I prefer to have few nice looking free fonts with reasonable unicode coverage (we'll need it because of gettext) and load only ones really needed
[...]Quoted 5 lines
I think that true bitmap fonts will look much, much better than converted outline fonts, but perhaps if we added an 8-bit alpha channel to the font format and grub-mkfont could do anti-aliasing during the conversion process; then I think we could make use of all the free outline fonts
Quoted 4 lines
I'm ok wth doing any kind of preprocessing in grub-mkfont but grub2 has to remain simple in order to ensure reasonable performance even on slow system (curren't it's not the case and more work is needed for optimising it)
I understand there's a lot of room for improvement, but it'd be interesting to start providing a basic set of fonts so that we get the ball rolling and theme authors can beging doing their artist work.
Has someone obtained a working multi-size setup with grub-mkfont + unifont? Currently I just know that the default ascii.pf2 works (but doesn't have any single-size theme that would play well with it).
Signature · 5 lines
Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."
2009/11/25 Robert Millan <[email protected]>:
Quoted 16 lines · Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 10 lines
I identified number of fonts as one of the reason of gfxmenu needing important amount of time to load. I prefer to have few nice looking free fonts with reasonable unicode coverage (we'll need it because of gettext) and load only ones really needed
[...]Quoted 5 lines
I think that true bitmap fonts will look much, much better than converted outline fonts, but perhaps if we added an 8-bit alpha channel to the font format and grub-mkfont could do anti-aliasing during the conversion process; then I think we could make use of all the free outline fonts
Quoted 4 lines
I'm ok wth doing any kind of preprocessing in grub-mkfont but grub2 has to remain simple in order to ensure reasonable performance even on slow system (curren't it's not the case and more work is needed for optimising it)
Quoted 8 lines
I understand there's a lot of room for improvement, but it'd be interesting to start providing a basic set of fonts so that we get the ball rolling and theme authors can beging doing their artist work.
Has someone obtained a working multi-size setup with grub-mkfont + unifont? Currently I just know that the default ascii.pf2 works (but doesn't have any single-size theme that would play well with it).
As I said that's pretty much impossible.
unifont.ttf is just the bitmap squares recorded as outline, and even if you generate multiple sizes of bitmaps from that (and most of these are bound to be ugly bordering on useless) you still get only a single face which would not be acceptable for most theme authors.
I would suggest looking at the bitmap fonts which used to be installed with X. They provide bitmaps in multiple sizes for multiple languages although the unicode coverage is much poorer than with unifont.
Other thing we might try is scaling the font in grub itself. This is poor typography because proper scalable fonts are adjusted for different sizes, the outlines aren't simply scaled.
However, grub has decent scaling that can be applied to images so it can be applied to fonts to get things started. Then we need 2-3 type faces in a single size which is probably much easier to get.
Note that with truetype fonts most fonts (besides the crappy English-only fonts) specialize on a family of languages that use the same writing system and the glyphs for other writing systems tend to be poorly drawn or non-existent.
This is understandable as no font author can possibly know how the glyphs for all the various languages fit together. This also means that
- you typically have to install fonts specifically for language(s)
you intend to use
- glyph fallback is integral part of any decent font system. Some try
to determine the nearest matching font automatically with varying success, in some systems you can specify different fonts for different unicode ranges (which are then scaled to fit together).
- there is a problem with Simplified Chinese/Traditional
Chinese/Japanese. Some of the glyphs used by these writing systems have the same unicode codepoint but are slightly different in each. To get these rendered correctly you need special font for each. Blame the Unicode people.
Thanks
Michal
Quoted 38 lines · Michal Suchanek
2009/11/25 Robert Millan <[email protected]>:
Quoted 19 lines · Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 13 lines
I identified number of fonts as one of the reason of gfxmenu needing important amount of time to load. I prefer to have few nice looking free fonts with reasonable unicode coverage (we'll need it because of gettext) and load only ones really needed
[...]Quoted 6 lines
I think that true bitmap fonts will look much, much better than converted outline fonts, but perhaps if we added an 8-bit alpha channel to the font format and grub-mkfont could do anti-aliasing during the conversion process; then I think we could make use of all the free outline fonts
Quoted 5 lines
I'm ok wth doing any kind of preprocessing in grub-mkfont but grub2 has to remain simple in order to ensure reasonable performance even on slow system (curren't it's not the case and more work is needed for optimising it)
Quoted 9 lines
I understand there's a lot of room for improvement, but it'd be interesting to start providing a basic set of fonts so that we get the ball rolling and theme authors can beging doing their artist work.
Has someone obtained a working multi-size setup with grub-mkfont + unifont? Currently I just know that the default ascii.pf2 works (but doesn't have any single-size theme that would play well with it).
As I said that's pretty much impossible.
unifont.ttf is just the bitmap squares recorded as outline, and even if you generate multiple sizes of bitmaps from that (and most of these are bound to be ugly bordering on useless) you still get only a single face which would not be acceptable for most theme authors.
Quoted 8 lines
I would suggest looking at the bitmap fonts which used to be installed with X. They provide bitmaps in multiple sizes for multiple languages although the unicode coverage is much poorer than with unifont.
Other thing we might try is scaling the font in grub itself. This is poor typography because proper scalable fonts are adjusted for different sizes, the outlines aren't simply scaled.
Your statements are contradictory. First you say that scaling is bad and shouldn't be used in grub-mkfont but then you tell to use the same approach in grub.
The best way to choose between pre-scaling and scaling in grub is benchmarking. Multiple fonts take longer to load but scaling even with caching is likely to cause more performance hit.
How much fonts does an author need? We need either decrease number of fonts simultaneously used or have faster font loader (both in preference). As Robert said most important is to get things going and theme creators can use other free fonts as well
Quoted 10 lines
Note that with truetype fonts most fonts (besides the crappy English-only fonts) specialize on a family of languages that use the same writing system and the glyphs for other writing systems tend to be poorly drawn or non-existent.
This is understandable as no font author can possibly know how the glyphs for all the various languages fit together. This also means that
Quoted 8 lines
- you typically have to install fonts specifically for language(s)
you intend to use- glyph fallback is integral part of any decent font system. Some try
to determine the nearest matching font automatically with varying success, in some systems you can specify different fonts for different unicode ranges (which are then scaled to fit together).
We have fallback system but again it would mean more fonts to load. Perhaps we can use unifont as fallback (this way scaling artifacts are less of the problem as user usually wouldn't have symbols outside of normal coverage)
Quoted 7 lines
- there is a problem with Simplified Chinese/Traditional
Chinese/Japanese. Some of the glyphs used by these writing systems have the same unicode codepoint but are slightly different in each. To get these rendered correctly you need special font for each. Blame the Unicode people.
Let's not get into Unihan flamewar. There are other problems with other languages which are more serious. Here are few of them:
1) combining diacritics.
2) ligatures. Important for indic languages
3) context variants. Important for Arabic writing system.
4) bidi. Important for Hebrew and Arabic writing system.
Generally current gfxterm is pretty much unsuited for any of these 4 problems. And gotoxy is pretty ambiguous in bidi context Few useful links:
http://en.wikipedia.org/wiki/Help:Multilingual_support
http://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Unicode/Test/arabe
Quoted 11 lines
Thanks
Michal
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko
2009/11/25 Vladimir 'φ-coder/phcoder' Serbinenko <[email protected]>:
Quoted 14 lines
Quoted 12 lines · Michal Suchanek
As I said that's pretty much impossible.
unifont.ttf is just the bitmap squares recorded as outline, and even if you generate multiple sizes of bitmaps from that (and most of these are bound to be ugly bordering on useless) you still get only a single face which would not be acceptable for most theme authors.
I would suggest looking at the bitmap fonts which used to be installed with X. They provide bitmaps in multiple sizes for multiple languages although the unicode coverage is much poorer than with unifont.
Quoted 7 lines
Quoted 4 lines
Other thing we might try is scaling the font in grub itself. This is poor typography because proper scalable fonts are adjusted for different sizes, the outlines aren't simply scaled.
Your statements are contradictory. First you say that scaling is bad and shouldn't be used in grub-mkfont but then you tell to use the same approach in grub.
The difference is that the font is only a bitmap whereas scaling inside grub can do blending which should give much better results than scaling bitmap into another bitmap.
Quoted 7 lines
The best way to choose between pre-scaling and scaling in grub is benchmarking. Multiple fonts take longer to load but scaling even with caching is likely to cause more performance hit.
How much fonts does an author need? We need either decrease number of fonts simultaneously used or have faster font loader (both in preference). As Robert said most important is to get things going and theme creators can use other free fonts as well
Typically people want at the very least
- serif font
- sans-serif font
- multiple sizes of the above so that the menu can have a larger
title / be scaled to different screen sizes
Sure, some would want their exact font in which the logo of their distribution is writen but this is outside of scope of Grub.
Quoted 14 lines
Quoted 7 lines
- there is a problem with Simplified Chinese/Traditional Chinese/Japanese. Some of the glyphs used by these writing systems have the same unicode codepoint but are slightly different in each. To get these rendered correctly you need special font for each. Blame the Unicode people.
Let's not get into Unihan flamewar. There are other problems with other languages which are more serious. Here are few of them:
1) combining diacritics.
2) ligatures. Important for indic languages
3) context variants. Important for Arabic writing system.
4) bidi. Important for Hebrew and Arabic writing system.
Quoted 6 lines
Generally current gfxterm is pretty much unsuited for any of these 4 problems. And gotoxy is pretty ambiguous in bidi context Few useful links:
http://en.wikipedia.org/wiki/Help:Multilingual_support
http://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Unicode/Test/arabe
Not being able to use combining diacritics sucks. Does that mean that grub won't be able to draw decomposed Unicode strings?
Either way the four points above are things that gfxterm simply does not support whereas Unihan flamewars are inherent feature of Unicode and the gfxterm technically should be able to display CJK languages given a good enough font.
Also if worse comes to worst Indic, Arabic or Hebrew can be feasibly written in Latin, Chinese cannot.
Thanks
Michal
Quoted 6 lines · Michal Suchanek
The difference is that the font is only a bitmap whereas scaling inside grub can do blending which should give much better results than scaling bitmap into another bitmap.
What do you mean by blending? Do you mean pixels with alpha channels?
Quoted 43 lines
Quoted 8 lines
The best way to choose between pre-scaling and scaling in grub is benchmarking. Multiple fonts take longer to load but scaling even with caching is likely to cause more performance hit.
How much fonts does an author need? We need either decrease number of fonts simultaneously used or have faster font loader (both in preference). As Robert said most important is to get things going and theme creators can use other free fonts as wellTypically people want at the very least
- serif font
- sans-serif font
- multiple sizes of the above so that the menu can have a larger
title / be scaled to different screen sizesSure, some would want their exact font in which the logo of their distribution is writen but this is outside of scope of Grub.
Quoted 15 lines
Quoted 8 lines
- there is a problem with Simplified Chinese/Traditional
Chinese/Japanese. Some of the glyphs used by these writing systems have the same unicode codepoint but are slightly different in each. To get these rendered correctly you need special font for each. Blame the Unicode people.Let's not get into Unihan flamewar. There are other problems with other languages which are more serious. Here are few of them:
1) combining diacritics.
2) ligatures. Important for indic languages
3) context variants. Important for Arabic writing system.
4) bidi. Important for Hebrew and Arabic writing system.Quoted 7 lines
Generally current gfxterm is pretty much unsuited for any of these 4 problems. And gotoxy is pretty ambiguous in bidi context Few useful links:
http://en.wikipedia.org/wiki/Help:Multilingual_support
http://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Unicode/Test/arabe
Quoted 3 lines
Not being able to use combining diacritics sucks. Does that mean that grub won't be able to draw decomposed Unicode strings?
I haven't checked. But I suppose it doesn't since it stores one codepoint per on-screen place
Quoted 2 lines
Either way the four points above are things that gfxterm simply does not support
It may need a major changes to support :( And these changes may propagate through whole terminal system (gotoxy concept is flawed)
Quoted 2 lines
whereas Unihan flamewars are inherent feature of Unicode
You seem have missed variant selectors
(last paragraph of
http://en.wikipedia.org/wiki/Unihan#Graphemes_versus_glyphs)
And we're back to multichar per on-screen place problem
Quoted 6 lines
and the gfxterm technically should be able to display CJK languages given a good enough font.
Also if worse comes to worst Indic, Arabic or Hebrew can be feasibly written in Latin, Chinese cannot.
pinyin. I know it's disagreable to read for native speakers, but it's similar for Arabic.
In worst case we can just say Japanese people to install Japanese fonts only and bear with Chinese having a bit wrong rendering and vice-versa.
Quoted 11 lines
Thanks
Michal
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko
2009/11/25 Vladimir 'φ-coder/phcoder' Serbinenko <[email protected]>:
Quoted 8 lines
Quoted 6 lines · Michal Suchanek
The difference is that the font is only a bitmap whereas scaling inside grub can do blending which should give much better results than scaling bitmap into another bitmap.
What do you mean by blending? Do you mean pixels with alpha channels?
I mean that you can render the font bitmap in its native size to a 32bit surface and use the bilinear scaling feature to resize that, for example. The advantage of on-the-fly scaling is that you really need only a single font, the differently sized glyphs are created as needed. The disadvantage over native fonts of different sizes is, of course, lower quality.
If you render the glyph to a differently sized bitmap with some nearest-fit algorithm (because there isn't really any option here) the result would be vastly inferior I would expect. As fonts are bitmaps this is the only option for scaling in grub-mkfont.
Quoted 11 lines
You seem have missed variant selectors
(last paragraph of
http://en.wikipedia.org/wiki/Unihan#Graphemes_versus_glyphs)
And we're back to multichar per on-screen place problemQuoted 6 lines
and the gfxterm technically should be able to display CJK languages given a good enough font.
Also if worse comes to worst Indic, Arabic or Hebrew can be feasibly written in Latin, Chinese cannot.
pinyin. I know it's disagreable to read for native speakers, but it's
That doesn't really help. There isn't really a canonical reading every Chinese speaking person is supposed to understand, and even if you choose one as the standard it's not possible to derive the meaning of a word from the reading but it is possible from the Chinese character.
Hebrew and Arabic use letters that correspond to consonants so anybody who knows the language and Latin alphabet should be able to read a Latin transcription, though possibly with gritting teeth.
Quoted 3 lines
similar for Arabic.
In worst case we can just say Japanese people to install Japanese fonts only and bear with Chinese having a bit wrong rendering and vice-versa.
Yes, that's certainly a possibility but one has to be aware of this limitation and perhaps mention it somewhere.
Thanks
Michal
Quoted 10 lines · Michal Suchanek
2009/11/25 Vladimir 'φ-coder/phcoder' Serbinenko <[email protected]>:
Quoted 8 lines
Quoted 6 lines · Michal Suchanek
The difference is that the font is only a bitmap whereas scaling inside grub can do blending which should give much better results than scaling bitmap into another bitmap.
Quoted 6 lines
Quoted 2 lines
What do you mean by blending? Do you mean pixels with alpha channels?
I mean that you can render the font bitmap in its native size to a 32bit surface and use the bilinear scaling feature to resize that, for example.
It's equivalent to have partially transparent pixels
Quoted 5 lines
The advantage of on-the-fly scaling is that you really need only a single font, the differently sized glyphs are created as needed. The disadvantage over native fonts of different sizes is, of course, lower quality.
I still don't think on-the-fly scaling, especially complicated one is a good solution to a problem.
I think the est way is to find a set of TrueType fonts with adapted typefaces, render them to different sizes and add unifont as fallback. We could use on-the-fly cached scaling for unifont fallback and so its slowness will be less of a problem and may be better alternative than time required to load multiple versions of unifont. Also quality in this case is less of an issue too.
Quoted 5 lines
That doesn't really help. There isn't really a canonical reading every Chinese speaking person is supposed to understand, and even if you choose one as the standard it's not possible to derive the meaning of a word from the reading but it is possible from the Chinese character.
Chinese people are usually familiar with either pinyin or Cantonese-based transliteration since they are widely used in Input Methods
Quoted 5 lines
Hebrew and Arabic use letters that correspond to consonants so anybody who knows the language and Latin alphabet should be able to read a Latin transcription, though possibly with gritting teeth.
Transliterating Arabic isn't good idea. It will make GRUB look like a big SMS
But we don't speak of same issues either. The only issues is that Japanese or Chinese may see a similar symbol with similar rendering but from other language. It may be unnice but is understandable. If we really care about right symbol I suggest to use glyph variant codes.
Quoted 19 lines
Quoted 4 lines
similar for Arabic.
In worst case we can just say Japanese people to install Japanese fonts only and bear with Chinese having a bit wrong rendering and vice-versa.Yes, that's certainly a possibility but one has to be aware of this limitation and perhaps mention it somewhere.
Thanks
Michal
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko
2009/11/25 Vladimir 'φ-coder/phcoder' Serbinenko <[email protected]>:
Quoted 66 lines
Quoted 6 lines · Michal Suchanek
The difference is that the font is only a bitmap whereas scaling inside grub can do blending which should give much better results than scaling bitmap into another bitmap.
What do you mean by blending? Do you mean pixels with alpha channels?
Quoted 43 lines
Quoted 8 lines
The best way to choose between pre-scaling and scaling in grub is benchmarking. Multiple fonts take longer to load but scaling even with caching is likely to cause more performance hit.
How much fonts does an author need? We need either decrease number of fonts simultaneously used or have faster font loader (both in preference). As Robert said most important is to get things going and theme creators can use other free fonts as wellTypically people want at the very least
- serif font
- sans-serif font
- multiple sizes of the above so that the menu can have a larger title / be scaled to different screen sizesSure, some would want their exact font in which the logo of their distribution is writen but this is outside of scope of Grub.
Quoted 15 lines
Quoted 8 lines
- there is a problem with Simplified Chinese/Traditional Chinese/Japanese. Some of the glyphs used by these writing systems have the same unicode codepoint but are slightly different in each. To get these rendered correctly you need special font for each. Blame the Unicode people.
Let's not get into Unihan flamewar. There are other problems with other languages which are more serious. Here are few of them:
1) combining diacritics.
2) ligatures. Important for indic languages
3) context variants. Important for Arabic writing system.
4) bidi. Important for Hebrew and Arabic writing system.Quoted 7 lines
Generally current gfxterm is pretty much unsuited for any of these 4 problems. And gotoxy is pretty ambiguous in bidi context Few useful links:
http://en.wikipedia.org/wiki/Help:Multilingual_support
http://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Unicode/Test/arabeQuoted 3 lines
Not being able to use combining diacritics sucks. Does that mean that grub won't be able to draw decomposed Unicode strings?
I haven't checked. But I suppose it doesn't since it stores one codepoint per on-screen place
Quoted 2 lines
Either way the four points above are things that gfxterm simply does not support
It may need a major changes to support :( And these changes may propagate through whole terminal system (gotoxy concept is flawed)
Quoted 2 lines
whereas Unihan flamewars are inherent feature of Unicode
You seem have missed variant selectors
(last paragraph of
http://en.wikipedia.org/wiki/Unihan#Graphemes_versus_glyphs)
And we're back to multichar per on-screen place problem
Quoted 8 lines
Quoted 6 lines
and the gfxterm technically should be able to display CJK languages given a good enough font.
Also if worse comes to worst Indic, Arabic or Hebrew can be feasibly written in Latin, Chinese cannot.
pinyin. I know it's disagreable to read for native speakers, but it's similar for Arabic.
show grub menu with pinyin? it is very very stupid.
Quoted 27 lines
In worst case we can just say Japanese people to install Japanese fonts only and bear with Chinese having a bit wrong rendering and vice-versa.
Quoted 11 lines
Thanks
Michal
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
2009/11/25 feng shu <[email protected]>:
Quoted 4 lines
2009/11/25 Vladimir 'φ-coder/phcoder' Serbinenko <[email protected]>:
Quoted 3 lines
Quoted 1 line · Michal Suchanek
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Also if worse comes to worst Indic, Arabic or Hebrew can be feasibly written in Latin, Chinese cannot.
pinyin. I know it's disagreable to read for native speakers, but it's similar for Arabic.
show grub menu with pinyin? it is very very stupid.
I guess most people in Europe simply don't understand that pinyin is unreadable.
Fortunately, displaying Chinese characters should be well within the capabilities of current gfxterm although the font is likely poor quality.
Any testers who can tell the difference between commonly used Chinese fonts and GNU Unifont are welcome.
Thanks
Michal
Quoted 18 lines · Michal Suchanek
2009/11/25 feng shu <[email protected]>:
Quoted 16 lines
2009/11/25 Vladimir 'φ-coder/phcoder' Serbinenko <[email protected]>:
Quoted 11 lines
Quoted 4 lines · Michal Suchanek
Also if worse comes to worst Indic, Arabic or Hebrew can be feasibly written in Latin, Chinese cannot.
pinyin. I know it's disagreable to read for native speakers, but it's similar for Arabic.
show grub menu with pinyin? it is very very stupid.
I was mainly trying to say that menu with Russian or Arabic transliteration wouldn't make much sense either.
Quoted 4 lines
I guess most people in Europe simply don't understand that pinyin is unreadable.
You're right I don't understand it. So please enlighten me. According to wikipedia pinyin is used for teaching Chinese language in school, and pinyin is a major input method used. Pinyin when used with all diacritics represents the words as they would be spoken aloud and yet you say that it's completely unreadable even by Mandarin speakers. I understand that a speaker of Cantonese or wǔ wouldn't be able to understand it because pronunciation is different but why is it the case for Mandarin speaker too?
Another question: do you think vertical (top-to-bottom instead of left-to-right) menu themes would be useful for Chinese and Japanese computers?
Quoted 5 lines
Fortunately, displaying Chinese characters should be well within the capabilities of current gfxterm although the font is likely poor quality.
Better fonts can be included but I would prefer not loading them by default instead if user needs it. Perhaps our grub.cfg generation system could scan configfiles and add fonts appropriately?
Quoted 14 lines
Any testers who can tell the difference between commonly used Chinese fonts and GNU Unifont are welcome.
Thanks
Michal
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko
2009/11/25 Vladimir 'φ-coder/phcoder' Serbinenko <[email protected]>:
Quoted 25 lines
Quoted 18 lines · Michal Suchanek
2009/11/25 feng shu <[email protected]>:
Quoted 16 lines
2009/11/25 Vladimir 'φ-coder/phcoder' Serbinenko <[email protected]>:
Quoted 11 lines
Quoted 4 lines · Michal Suchanek
Also if worse comes to worst Indic, Arabic or Hebrew can be feasibly written in Latin, Chinese cannot.
pinyin. I know it's disagreable to read for native speakers, but it's similar for Arabic.
show grub menu with pinyin? it is very very stupid.
I was mainly trying to say that menu with Russian or Arabic transliteration wouldn't make much sense either.
Quoted 4 lines
I guess most people in Europe simply don't understand that pinyin is unreadable.
Quoted 8 lines
You're right I don't understand it. So please enlighten me. According to wikipedia pinyin is used for teaching Chinese language in school, and pinyin is a major input method used. Pinyin when used with all diacritics represents the words as they would be spoken aloud and yet you say that it's completely unreadable even by Mandarin speakers. I understand that a speaker of Cantonese or wǔ wouldn't be able to understand it because pronunciation is different but why is it the case for Mandarin speaker too?
Yes, if you are non-Chinese you would probably learn pinyin and it indeed records the pronunciation. However, it is not necessary to learn pinyin to read Chinese so I suspect Chinese would not learn Mandarin and pinyin just to learn how to write.
It is also feasible to use a PC without knowing pinyin. Writing may be difficult then but not everybody needs to write and alternate input methods exist.
Pinyin is not readable because it conveys less information than the Chinese character would. Many words are pronounced the same and would have the same pinyin representation but would be written with a distinct Chinese character.
In spoken Chinese you have to ensure enough context for the word to be understood (either use reasonably long non-ambiguous sentence or use previous conversation as context). In writing one or few characters are often enough to convey a distinct meaning regardless of context (ie in a menu entry).
Quoted 3 lines
Another question: do you think vertical (top-to-bottom instead of left-to-right) menu themes would be useful for Chinese and Japanese computers?
I think they would be nice to have but not terribly useful.
It is completely feasible to read and write CJK in LTR order, and most computer software uses that order for simplicity.
Many magazines seem to be typeset that way as well so this is not limited to computers.
Thanks
Michal
2009/11/26 Vladimir 'φ-coder/phcoder' Serbinenko <[email protected]>:
Quoted 22 lines
Quoted 18 lines · Michal Suchanek
2009/11/25 feng shu <[email protected]>:
Quoted 16 lines
2009/11/25 Vladimir 'φ-coder/phcoder' Serbinenko <[email protected]>:
Quoted 11 lines
Quoted 4 lines · Michal Suchanek
Also if worse comes to worst Indic, Arabic or Hebrew can be feasibly written in Latin, Chinese cannot.
pinyin. I know it's disagreable to read for native speakers, but it's similar for Arabic.
show grub menu with pinyin? it is very very stupid.
I was mainly trying to say that menu with Russian or Arabic transliteration wouldn't make much sense either.
Quoted 1 line
Quoted 6 lines
Quoted 3 lines
I guess most people in Europe simply don't understand that pinyin is unreadable.
You're right I don't understand it. So please enlighten me. According to wikipedia pinyin is used for teaching Chinese language in school, and pinyin is a major input method used. Pinyin when used with all
pinyin is used to teach childern read Chinese, but you would find that
1. may Chinese chars (maybe 10 ,maybe 100 maybe 500) have a pinyin ,for example :
ai :
艾 ài,yì, 阨 ài,
伌 ài, 佁 ǎi,yǐ,
毐 ǎi, 哎 āi,
哀 āi, 诶 āi,
昹 ǎi, 爱 ài,
砹 ài, 唉 ài,āi,
娭 āi,xī, 挨 ái,āi,
埃 āi, 捱 ái,
娾 ǎi, 啀 ái,
硋 ài, 閊 cī kā ɑī lū,
皑 ái, 欸 ǎi,ēi,
隘 ài, 凒 ái,
溾 āi, 塧 ài,
溰 ái, 嫒 ài,
嗳 ài,ǎi,āi, 13 嗌 ài,yì,
愛 ài, 矮 ǎi,
碍 ài, 魞 ɑì lì,
锿 āi, 瑷 ài,
敳 ái, 暧 ài,
敱 ái, 嘊 ái,
叆 ài, 蔼 ǎi,
僾 ài, 皚 ái,
躷 ǎi, 壒 ài,
懓 ài, 薆 ài,
噫 ài,yì,yī, 噯 ǎi,
濭 ǎi, 嬡 ài,
鴱 ài, 騃 ái,
懝 ài, 曖 ài,
璦 ài, 餲 ài,hé,
鎄 āi, 癌 ái,
瞹 ài, 皧 ài,
馤 ài, 霭 ǎi,
﨟 ai 礙 ài,
譪 ǎi, 藹 ǎi,
譺 ài, 鑀 ài,
鱛 ɑī suǒ, 靄 ǎi,
鱫 ɑi, 靉 ài,
2. a Chinese char may have many pinyin, see above
Quoted 44 lines
diacritics represents the words as they would be spoken aloud and yet you say that it's completely unreadable even by Mandarin speakers. I understand that a speaker of Cantonese or wǔ wouldn't be able to understand it because pronunciation is different but why is it the case for Mandarin speaker too?
Another question: do you think vertical (top-to-bottom instead of left-to-right) menu themes would be useful for Chinese and Japanese computers?Quoted 5 lines
Fortunately, displaying Chinese characters should be well within the capabilities of current gfxterm although the font is likely poor quality.
Better fonts can be included but I would prefer not loading them by default instead if user needs it. Perhaps our grub.cfg generation system could scan configfiles and add fonts appropriately?
Quoted 5 lines
Any testers who can tell the difference between commonly used Chinese fonts and GNU Unifont are welcome.
Thanks
Quoted 9 lines
Michal
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
2009/11/26 Michal Suchanek <[email protected]>:
Quoted 14 lines
2009/11/25 feng shu <[email protected]>:
Quoted 4 lines
2009/11/25 Vladimir 'φ-coder/phcoder' Serbinenko <[email protected]>:
Quoted 3 lines
Quoted 1 line · Michal Suchanek
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Also if worse comes to worst Indic, Arabic or Hebrew can be feasibly written in Latin, Chinese cannot.
pinyin. I know it's disagreable to read for native speakers, but it's similar for Arabic.
show grub menu with pinyin? it is very very stupid.
Quoted 6 lines
I guess most people in Europe simply don't understand that pinyin is unreadable.
Fortunately, displaying Chinese characters should be well within the capabilities of current gfxterm although the font is likely poor quality.
you can find ttf fonts : wqy-zenhei and wqy-microhei
http://sourceforge.net/projects/wqy/files/
Quoted 14 lines
Any testers who can tell the difference between commonly used Chinese fonts and GNU Unifont are welcome.
Thanks
Michal
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
2009/11/25 Robert Millan <[email protected]>:
Quoted 16 lines · Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 10 lines
I identified number of fonts as one of the reason of gfxmenu needing important amount of time to load. I prefer to have few nice looking free fonts with reasonable unicode coverage (we'll need it because of gettext) and load only ones really needed
[...]Quoted 5 lines
I think that true bitmap fonts will look much, much better than converted outline fonts, but perhaps if we added an 8-bit alpha channel to the font format and grub-mkfont could do anti-aliasing during the conversion process; then I think we could make use of all the free outline fonts
Quoted 4 lines
I'm ok wth doing any kind of preprocessing in grub-mkfont but grub2 has to remain simple in order to ensure reasonable performance even on slow system (curren't it's not the case and more work is needed for optimising it)
Quoted 8 lines
I understand there's a lot of room for improvement, but it'd be interesting to start providing a basic set of fonts so that we get the ball rolling and theme authors can beging doing their artist work.
Has someone obtained a working multi-size setup with grub-mkfont + unifont? Currently I just know that the default ascii.pf2 works (but doesn't have any single-size theme that would play well with it).
Does grub-mkfont support writing .pf2 files from any font?
IIRC there was a glyph searching optimization committed into Grub which uses binary search instead of linear search.
This requires either that font glyphs are sorted by Unicode codepoint (which they supposedly are in unifont) or that grub-mkfont sorts them while creating the .pf2 file.
Thanks
Michal
Quoted 31 lines · Michal Suchanek
2009/11/25 Robert Millan <[email protected]>:
Quoted 19 lines · Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 13 lines
I identified number of fonts as one of the reason of gfxmenu needing important amount of time to load. I prefer to have few nice looking free fonts with reasonable unicode coverage (we'll need it because of gettext) and load only ones really needed
[...]Quoted 6 lines
I think that true bitmap fonts will look much, much better than converted outline fonts, but perhaps if we added an 8-bit alpha channel to the font format and grub-mkfont could do anti-aliasing during the conversion process; then I think we could make use of all the free outline fonts
Quoted 5 lines
I'm ok wth doing any kind of preprocessing in grub-mkfont but grub2 has to remain simple in order to ensure reasonable performance even on slow system (curren't it's not the case and more work is needed for optimising it)
Quoted 9 lines
I understand there's a lot of room for improvement, but it'd be interesting to start providing a basic set of fonts so that we get the ball rolling and theme authors can beging doing their artist work.
Has someone obtained a working multi-size setup with grub-mkfont + unifont? Currently I just know that the default ascii.pf2 works (but doesn't have any single-size theme that would play well with it).
Quoted 9 lines
Does grub-mkfont support writing .pf2 files from any font?
IIRC there was a glyph searching optimization committed into Grub which uses binary search instead of linear search.
This requires either that font glyphs are sorted by Unicode codepoint (which they supposedly are in unifont) or that grub-mkfont sorts them while creating the .pf2 file.
grub-mkfont should sort ranges, it's clearly a bug. Patch to fix grub-mkfont is welcome (you can use qsort to sort them)
Quoted 11 lines
Thanks
Michal
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 22 lines · Michal Suchanek
2009/11/24 Robert Millan <[email protected]>:
Quoted 13 lines
Hi,
Help is needed in order to provide the last bit that will make gfxmenu
functional: fonts of multiple sizes.The sample tarball at http://grub.gibibit.com/files/overlay_2009-07-19.tar.gz
includes a set of prebuilt fonts. They were built using a Java utility which ended up being replaced with grub-mkfont in our repository.In order to provide the basic infrastructure so that theme authors can begin developing their artwork, we need GRUB to build fonts from the original unifont files (unifont.bdf or unifont.pcf.gz).
Quoted 6 lines
Can someone figure out appropiate parameters for grub-mkfont, such that when applied on unifont.bdf or unifont.pcf.gz they will output suitable PF2 font files? A font file is suitable if it can be used to replace the prebuilt ones in overlay_2009-07-19.tar.gz and its themes can still use them.
Quoted 6 lines
I suspect what you are asking is impossible.
As far as I understand unifont is a single bitmap font in a single pixel size and the tarball you sent contains multiple font faces in multiple sizes.
While usually it's a bad idea to scale bitmap font it can be done and for our uses (mainly downscale and a bit of upscale) it may be appropriate for our usage.
Quoted 14 lines
It could be achieved by converting the said fonts rather than unifont but it seems you want to avoid that for some reason.
Thanks
Michal
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko
Am Dienstag, den 24.11.2009, 19:12 +0100 schrieb Vladimir 'φ-coder/phcoder' Serbinenko:
Quoted 34 lines
Quoted 5 lines · Michal Suchanek
2009/11/24 Robert Millan <[email protected]>:
Quoted 3 lines
Hi,
Help is needed in order to provide the last bit that will make
gfxmenu
Quoted 3 lines
Quoted 3 lines
functional: fonts of multiple sizes.
The sample tarball at
http://grub.gibibit.com/files/overlay_2009-07-19.tar.gz
Quoted 1 line
Quoted 1 line
includes a set of prebuilt fonts. They were built using a Java
utility
Quoted 3 lines
Quoted 3 lines
which ended up being replaced with grub-mkfont in our repository.
In order to provide the basic infrastructure so that theme authors
can
Quoted 1 line
Quoted 1 line
begin developing their artwork, we need GRUB to build fonts from
the original
Quoted 3 lines
Quoted 3 lines
unifont files (unifont.bdf or unifont.pcf.gz).
Can someone figure out appropiate parameters for grub-mkfont, such
that
Quoted 1 line
Quoted 1 line
when applied on unifont.bdf or unifont.pcf.gz they will output
suitable
Quoted 1 line
Quoted 1 line
PF2 font files? A font file is suitable if it can be used to
replace the
Quoted 1 line
Quoted 1 line
prebuilt ones in overlay_2009-07-19.tar.gz and its themes can still
use
Quoted 5 lines
Quoted 2 lines
them.
I suspect what you are asking is impossible.
Quoted 7 lines
Quoted 4 lines
As far as I understand unifont is a single bitmap font in a single pixel size and the tarball you sent contains multiple font faces in multiple sizes.
While usually it's a bad idea to scale bitmap font it can be done and for our uses (mainly downscale and a bit of upscale) it may be appropriate for our usage.
grub-mkfont supports as input files everything libfreetype supports. TTF is supported and there's also a unifont.ttf.
But our own .pf2 format is bitmap not outline.
Signature · 2 lines
Felix Zielcke Proud Debian Maintainer and GNU GRUB developer