When the font-size property has a relative value that depends on font-size, the computation is done twice. The testcase uses font-size="2em" which should be a 24pt font, but the result is shown in 48pt.
Created attachment 9787 [details] A unified diff against HEAD.
Created attachment 9788 [details] A testcase .fo
Finn, I ran this with your sample .FO before and after applying the patch, and saw no difference in the output. Two days ago, however, I added in Simon's patch preventing the duplication of processing base-only attributes (including "font-size") in ConvertAttributeToProperty(): if (subPropertyName == null) { // base attribute only found /* Do nothing if the base property has already been created. * This is e.g. the case when a compound attribute was * specified before the base attribute; in these cases * the base attribute was already created in * findBaseProperty() */ if (getExplicitBaseProp(basePropertyName) != null) { return; } I think Simon's change already fixes the problem you're mentioning here--so your patch may not be needed. Certainly, at least on my side, it appears the second processing of font-size is being ignored now. Comments? Thanks, Glen
Glen, you are absolutely right, Simon's patch fixes this problem too. I'm sorry about the inconvenience.
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed