View Single Post
Old 04-07-2008, 10:16 PM   #20
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by DaleDe View Post
Fonts are in ROM and they take up more room than you might think after taking car of bold, italics, bold italic, normal and all the special characters. UTF-8 is about 100K characters. I am not aware of any font that has them all.

Dale
I remember seeing this about fonts in the REB 1200 firmware and since the publishing tools are the same for the EBW 1150, this *should* also apply to the EBW 1150.

Quote:
Source: http://www.chromakinetics.com/REB1200/hardware.htm

Does the Epson chip display the fonts or are the fonts for serif, san-serif, etc in the flash memory? I am specifically interested in the font metrics as that is needed to calculate line and page breaks.

The required font metrics are all stored in the publishing tools (if the publishing tools can paginate the data, they would have to be). A person knowledgeable in the .RES folder format (such as yourself) should be able to pick apart the NFNT data type to find the individual font metrics for each font. All that remains is figuring out the NFNT format (hint: use Google).

All the fonts (and metrics) are stored in the flash in the firmware image. The original fonts are Mac fonts and are then converted to the format we use for the rendering engine. Part of the build process creates the fonts WITH the metrics as data in the firmware. The format is pretty much identical to the NFNT resource format on a Mac. The major difference is that there is no FOND resource to describe families, that's all done by resource ID.

The font data is ALSO in the publishing tools, as the line and page breaks are calculated by the tools when you build the books. The book doesn't have any real clue how wide lines are, it just knows where to put things and when to break lines (all set by the tools). In other words, it might be possible to extract that info from the freely available publishing tools (rather than trying to pull it from the ROMs).

The only change to the fonts in the 5 years I worked on the product was the addition of the Euro character in the end of 2002. I think firmware earlier than 3.2 is missing the Euro character in some fonts.

If anybody out there ever wants tools for manipulating early Mac OS NFNT resources, let me know. I wrote utilities to dump the font characters to images, and then recombine those images later. For doing the Euro update, I dumped everything to images, edited them in Photoshop and recombined them. The original fonts were created using a program called Fontastic which only ran on very early versions of the Mac OS (pre 6.0), needless to say I needed to find a better way when I did the update. From: Erik Walter < ebook@e... >
Just a note that the REB 1200 firmware was 3.3 BEFORE ETI took over; now we are at firmware 4.22.

Last edited by nrapallo; 04-07-2008 at 10:45 PM.
nrapallo is offline   Reply With Quote