font in open firmware
I have implemented a new function getcharwidth in the terminal interface. I updated all terminals for PC but didn't ofconsole. This is only because I don't know how it behaves precisely.
According the standard, the default font seems to be implementation-dependent. There is an attribute "character-set", but I don't know if this is used.
So, in reality, what kind of font is used in Open Firmware? Does it only contain US-ASCII or is it like the VGA font? For now, ofconsole does not map any Unicode character to another character, but does this work well?
Okuji
Quoted 11 lines · Yoshinori K. Okuji
I have implemented a new function getcharwidth in the terminal interface. I updated all terminals for PC but didn't ofconsole. This is only because I don't know how it behaves precisely.
According the standard, the default font seems to be implementation-dependent. There is an attribute "character-set", but I don't know if this is used.
So, in reality, what kind of font is used in Open Firmware? Does it only contain US-ASCII or is it like the VGA font? For now, ofconsole does not map any Unicode character to another character, but does this work well?
Now I really use getcharwidth in the menu interface. So the menu interface will be broken until someone implements getcharwidth for ofconsole.
Okuji
Quoted 10 lines · Yoshinori K. Okuji
I have implemented a new function getcharwidth in the terminal interface. I updated all terminals for PC but didn't ofconsole. This is only because I don't know how it behaves precisely.
According the standard, the default font seems to be implementation-dependent. There is an attribute "character-set", but I don't know if this is used.
So, in reality, what kind of font is used in Open Firmware? Does it only contain US-ASCII or is it like the VGA font? For now, ofconsole does not map any Unicode character to another character, but does this work well?
Can you please explain why this is important and what you mean? AFAIK the console font on the new world apple is fixed width. On the pegasos a text screen just like the PC is used.
I think ofconsole should map Unicode characters on the pegasos, the menu does look very ugly here.
--
Marco
Quoted 3 lines · Marco Gerards
Can you please explain why this is important and what you mean? AFAIK the console font on the new world apple is fixed width. On the pegasos a text screen just like the PC is used.
Maybe this is the second time, but I talk about it.
It completely depends on the implementation of a terminal how characters are displayed. For example, some are capable of displaying wide characters, while others do not support them so display merely dummy characters. Or, some want to display the border characters used in the menu interface in a single width, while others may want to display them as two-column characters.
Even if an underlying system does not support wide characters, you can often emulate such support by combining multiple 1-column characters on the display. This is feasible only if a target language has a small set of characters in comparison with the size of a font area in a firmware.
BTW, the VGA font used in standard PCs is not only ASCII characters but also has extra characters. There is a table in the wikipedia:
http://en.wikipedia.org/wiki/CP437
Does pegasos support the same character set?
Okuji