As often happens, the details of this patch has had to change to adapt to changes in the firmware. I'll try to summarise here how to customise the patch settings.
As in previous versions, there are four variables that can be changed:
1. Total height of footer (in pixels)
2. Font size used for the progress indicator
3. Position of progress indicator within footer
4. Font face used for the progress indicator
When changing the first three settings in the patch
it is important not to change the total length of the replacement string. e.g. change `-
10px;` to `-
05px;` so that the number of characters remains the same.
1. To set the total height of the footer, change the min-height and max-height replacement values (right-most values) in this section:
Code:
# Example replacement footer height values: Glo/Aura
replace_string = 001A, `footerMargin: 105;`, `footerMargin: 105;`
replace_string = 002D, `min-height: 70px;`, `min-height: 40px;`
replace_string = 003F, `max-height: 70px;`, `max-height: 40px;`
e.g. to set the total height to 30px, change it to:
Code:
# Example replacement footer height values: Glo/Aura
replace_string = 001A, `footerMargin: 105;`, `footerMargin: 105;`
replace_string = 002D, `min-height: 70px;`, `min-height: 30px;`
replace_string = 003F, `max-height: 70px;`, `max-height: 30px;`
2. If you reduce the total height of the footer, you might also need to reduce the font-size used for the progress indicator so that it will still fit in the footer. To set the font size, change the replacement value for the appropriate device in the section below:
Code:
# Replacement caption font size value for Touch/Mini:
replace_string = 000A, `font-size: 16px;`, `font-size: 16px;`
# Replacement caption font size value for Glo/Aura:
replace_string = 0054, `font-size: 20px;`, `font-size: 20px;`
# Replacement caption font size value for AuraHD/H2O:
replace_string = 008C, `font-size: 26px;`, `font-size: 26px;`
# Replacement caption font size value for GloHD:
replace_string = 00C5, `font-size: 30px;`, `font-size: 30px;`
e.g. to set the font size used by the GloHD to 24px:
Code:
# Replacement caption font size value for GloHD:
replace_string = 00C5, `font-size: 30px;`, `font-size: 24px;`
3. The progress indicator will normally be displayed centred vertically in the footer, but by default the patch will move it a bit further upwards (if there is room in the footer). To set the position, change the replacement value in the following section of the patch: a larger (more negative) value moves the progress indicator further upwards, but only within the limits of the total footer height. A zero value (or commenting out the replace_string line) leaves the progress indicator cenred vertically:
Code:
# Replacement caption top margin value for all devices:
# (A negative top margin moves the caption text upwards,
# further from the bezel and closer to the page content.)
replace_string = 001A, `margin-top: 00px;`, `margin-top:-10px;`
4. In this firmware version, the font used for the progress indicator is normally set to whatever font is selected from the Aa menu, or Georgia if "Publisher default" is selected. This can be a problem because some fonts do not sit centred vertically within the line, which can result in the progress indicator test being clipped, especially if a very small footer height is used. You can change the font used for the progress indicator by uncommenting the replace_string line in the following section of the patch and changing the font name:
Code:
# Uncomment to use a fixed replacement caption font family, for all devices:
# (You can change Avenir to another font name of your choice, but Avenir or
# Georgia are recommended because other fonts may not be loaded when the book
# is first opened and so might cause problems. Unlike other strings it is OK
# if this replacement string is a bit longer or shorter than the original.)
#replace_string = 00D7, `#caption[qApp_localeName="ja_JP"] {font-family: Sans-SerifJP;}`, `#caption {font-family: Georgia;}
e.g. to set the font to Avenir:
Code:
# Uncomment to use a fixed replacement caption font family, for all devices:
# (You can change Avenir to another font name of your choice, but Avenir or
# Georgia are recommended because other fonts may not be loaded when the book
# is first opened and so might cause problems. Unlike other strings it is OK
# if this replacement string is a bit longer or shorter than the original.)
replace_string = 00D7, `#caption[qApp_localeName="ja_JP"] {font-family: Sans-SerifJP;}`, `#caption {font-family: Avenir;}