Another obscure question from someone that's got his fingers in the machine fiddling with it... what is the file format of the file normally seen in
/System/Library/CoreServices/.disk_label
? It's a hidden file, and is created by the system when a volume is blessed for booting on intel. There is an associated file .disk_label.contentDetails that contains the name of the volume, but .disk_label is a graphic rendering of the words. This is the image drawn below the volume icon when using the boot picker by holding Option when booting. It uses this to be able to render the name in any alphabet without loading any font files I'm sure.

I believe in Helvetica 10pt. I understand the file format roughly, it's very basic. First byte is $01. 2-3 are the width in pixels, 4-5 are the height in pixels, and the w*h next bytes are the graphic. (size fits exactly, I'm confident I understand this part of it)

Problem is I'm not sure where the pixel data comes from. It's in row-major order, one byte per pixel. It's NOT greyscale. I'm presuming it's using a lookup table or color palate or something. I'd like to be able to place my own graphic on the labels, rather than relying on the OS to render it. Maybe add color if I can. Just playin' here, but been curious about this for awhile.

So, anyone know? Google doesn't work properly when searching for ".disk_label", it seems to search without the quotes which is unusual, and google is flooded with hits on the dos "disklabel" command.

Before you ask, I've already tried using preview and graphicconverter to save a shot of the label at the correct size but it always makes files much larger. (1-8k) The disklabel file in this case was something like 617 bytes, much smaller. Not tiff or bmp.
_________________________
I work for the Department of Redundancy Department