Quote:
Originally Posted by icallaci
I'm trying to understand how the patches work. In looking at what jackie_w suggested above, I ended up with code that looks like this:
Code:
[deviceCodeName="dragon"] {\n\tfont-size: 26px;\n}\n\n[localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`, `ReadingFooter {\n\tmin-height: 50px;\n\tmax-height: 50px;\n\tqproperty-footerMargin: 20;\n}\n\n* {\n\tfont-size: 26px;\n}\n\n[localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`
Is there a reason why tfont-size and tfont-family are duplicated? Should I edit this to remove the duplicates? If yes, what should the final code look like (so I don't screw up what seems to be working just fine)?
|
The original MZ patcher replaced the entire zlib compressed string hence the duplicated string where you modified the second string. This could lead to issues where the compressed replacement string was longer than the original string. The later version replaced the device dependent strings with a simple universal replacement string. You will notice the current version has two end strings, the first of which under the 'disable footer' sets the footer to 5 pixels with 1 pixel text and makes it transparent.
`* {\n\theight: 5px;\n\tfont-size: 1px;\n\tcolor: transparent;\n}\n\n`
while the second 'decrease footer' sets the height to 25 pixels and the font size to 20 pixels in the example below.
`* {\n\theight: 25px;\n\tfont-size: 20px;\n}\n\n`
The \n and \t character pairs represent a new line and a tab character while the star is a wild card. As jackie_w says, you can change the values in there or add other values such as setting the font used (see the Japanese example in the original style as an example0.
In your case, something like:
`* {\n\tmin-height: 50px;\n\tmax-height: 50px;\n\tfont-size: 26px;\n}\n\n`
might be useful though I suspect simply setting the height to 50 pixels would have the same effect.
Regards,
David