This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#12337 - r30773 breaks all skin fonts
Attached to Project:
Rockbox
Opened by Jonathan Gordon (jdgordon) - Tuesday, 18 October 2011, 01:25 GMT+2
Last edited by Thomas Martitz (kugel.) - Saturday, 29 October 2011, 17:16 GMT+2
Opened by Jonathan Gordon (jdgordon) - Tuesday, 18 October 2011, 01:25 GMT+2
Last edited by Thomas Martitz (kugel.) - Saturday, 29 October 2011, 17:16 GMT+2
|
DetailsAdding line height to viewports breaks all skin fonts because their viewports are initialised and the font changed later.
The attached screenshot shows the problem nicely. the only change to cabbiev2.wps there is attached as a diff |
This task depends upon
Closed by Thomas Martitz (kugel.)
Saturday, 29 October 2011, 17:16 GMT+2
Reason for closing: Fixed
Additional comments about closing: r30850
Saturday, 29 October 2011, 17:16 GMT+2
Reason for closing: Fixed
Additional comments about closing: r30850
The attached screendumps are from e200 sim. The procedure to reproduce is:
1. Start sim (fresh install)
2. Go to Settings->Theme Settings->Font and select a different font.
The screendumps show a switch from 12-Adobe-Helvetica.fnt to 19-Nimbus.fnt and, after restart, a switch from 19-Nimbus.fnt to 12-Adobe-Helvetica.fnt
The line height is not adjusted to match the font. Reloading the theme or restarting the device will correct the line height.
If it makes a difference, the font used in that them is the sysfont (font 0). When I switch to the menu screen, The sbs displays the artist and song title, also in sysfont, and it also displays the same symptom.
EDIT: I mean the font switching issue, I havent looked at the other sbs one yet.
The latest patch corrects the wps/sbs issue I was having
I think a similar fix as r30786 should be applied to the SYSFONT case (skin_parser.c:1656 and following). I don't think rendering needs to be touched.
Thanks, wps/sbs look good with this patch