This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9907 - Some font's FONTBOUNDINGBOX correct.
Attached to Project:
Rockbox
Opened by Yoshihisa Uchida (Uchida) - Saturday, 14 February 2009, 07:03 GMT+2
Last edited by Alexander Levin (fml2) - Saturday, 07 March 2009, 00:46 GMT+2
Opened by Yoshihisa Uchida (Uchida) - Saturday, 14 February 2009, 07:03 GMT+2
Last edited by Alexander Levin (fml2) - Saturday, 07 March 2009, 00:46 GMT+2
|
DetailsI corrected FONTBOUNDINGBOX because it was the small value of the follwing fonts.
05-Tiny.bdf 06-Tiny.bdf 08-Rockbox-Propfont.bdf 10-Artwiz-Snap.bdf 10-Nimbus.bdf 11-Nimbus.bdf 12-Nimbus.bdf 13-Nimbus.bdf 14-Nimbus.bdf 16-Jackash.bdf 18-Fixed-Bold.bdf 18-Fixed.bdf 19-Nimbus.bdf |
This task depends upon
Closed by Alexander Levin (fml2)
Saturday, 07 March 2009, 00:46 GMT+2
Reason for closing: Fixed
Additional comments about closing: The problem described here was fixed in r20219. No more illegal memory accesses should ever happen.
Saturday, 07 March 2009, 00:46 GMT+2
Reason for closing: Fixed
Additional comments about closing: The problem described here was fixed in r20219. No more illegal memory accesses should ever happen.
Because only the value of fbbx in FONTBOUNDINGBOX is used to decide the maximum value of the width of the character by making fnt files (convbdf),
and the maximum value of the width of the character is adjusted by using the value of DWIDTH or BBX according to the width of an actual character.
When it is a setting of a current font, an illegal memory is accessed while making fnt files because the allocated memory size is small.
I changed the program so that if a greater glyph width is found (than what is specified in the font header), the font bitmap buffer is reallocated so that it can hold the font with its new width. Thus we'd be on the safe side even if we get a "bad" BDF file with a too low value of the font width in the header.
What do you think?
The program can be further simplified: the EXTRA safety buffer should not be needed anymore. But it can be removed later.