722 |
{ |
{ |
723 |
HGLYPH bitmap; |
HGLYPH bitmap; |
724 |
uint8 font, nglyphs; |
uint8 font, nglyphs; |
725 |
uint16 character, baseline, width, height; |
uint16 character, offset, baseline, width, height; |
726 |
uint8 *data, *rev_data, in, out; |
uint8 *data, *rev_data, in, out; |
727 |
int i, j, datasize; |
int i, j, datasize; |
728 |
|
|
734 |
for (i = 0; i < nglyphs; i++) |
for (i = 0; i < nglyphs; i++) |
735 |
{ |
{ |
736 |
in_uint16_le(s, character); |
in_uint16_le(s, character); |
737 |
in_uint8s(s, 2); /* unknown */ |
in_uint16_le(s, offset); |
738 |
in_uint16_le(s, baseline); |
in_uint16_le(s, baseline); |
739 |
in_uint16_le(s, width); |
in_uint16_le(s, width); |
740 |
in_uint16_le(s, height); |
in_uint16_le(s, height); |
763 |
bitmap = ui_create_glyph(width, height, rev_data); |
bitmap = ui_create_glyph(width, height, rev_data); |
764 |
xfree(rev_data); |
xfree(rev_data); |
765 |
|
|
766 |
cache_put_font(font, character, baseline, width, height, bitmap); |
cache_put_font(font, character, offset, baseline, |
767 |
|
width, height, bitmap); |
768 |
} |
} |
769 |
} |
} |
770 |
|
|