6853 built in fonts are exposing internal data

Review Request #183 - Created April 3, 2016 and submitted

Information
Toomas Soome
illumos-gate
6853
Reviewers
general
6853 built in fonts are exposing internal data

The actual use case is related to framebuffer support project but here is sample data from updated font files:

# mdb -k
Loading modules: [ unix genunix specfs dtrace mac cpu.generic uppc apix scsi_vhci zfs mpt sd ip hook neti sockfs arp usba uhci mm stmf stmf_sbd lofs random idm crypto sppp ipc ptm ]
> font_data_12x22::print
{
    width = 0xc
    height = 0x16
    image = FONTDATA_12x22
    encoding = ENCODINGS_12x22
}
> font_data_8x16::print
{
    width = 0x8
    height = 0x10
    image = FONTDATA_8x16
    encoding = ENCODINGS_8x16
}
> ENCODINGS_8x16::print
[ FONTDATA_8x16, FONTDATA_8x16+0x10, FONTDATA_8x16+0x20, FONTDATA_8x16+0x30, 
FONTDATA_8x16+0x40, FONTDATA_8x16+0x50, FONTDATA_8x16+0x60, FONTDATA_8x16+0x70, 
FONTDATA_8x16+0x80, FONTDATA_8x16+0x90, FONTDATA_8x16+0xa0, FONTDATA_8x16+0xb0, 
FONTDATA_8x16+0xc0, FONTDATA_8x16+0xd0, FONTDATA_8x16+0xe0, FONTDATA_8x16+0xf0, 
FONTDATA_8x16+0x100, FONTDATA_8x16+0x110, FONTDATA_8x16+0x120, 
FONTDATA_8x16+0x130, FONTDATA_8x16+0x140, FONTDATA_8x16+0x150, 
FONTDATA_8x16+0x160, FONTDATA_8x16+0x170, FONTDATA_8x16+0x180, 
FONTDATA_8x16+0x190, FONTDATA_8x16+0x1a0, FONTDATA_8x16+0x1b0, 
FONTDATA_8x16+0x1c0, FONTDATA_8x16+0x1d0, FONTDATA_8x16+0x1e0, 
FONTDATA_8x16+0x1f0, ... ]
> FONTDATA_8x16::print
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x7e, 0x81, 0xa5, 0x81, 
0x81, 0xbd, 0x99, 0x81, 0x7e, 0, 0, 0, 0, 0, ... ]
>
Marcel Telka
Toomas Soome
Yuri Pankov
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...