The attached patch fixes two problems: - If distinct fonts declare the same font family name, the resulting font mapping is currently arbitrary; now, a name-similarity heuristic is used to prioritize the font mappings. - "Medium" and "demi" fonts are now recognized as "bold", solving several real-world problems (although this solution may be an oversimplification).
Created attachment 21558 [details] Patch as described in the bug report.
Patch applied with small modifications (under section 5 of the ALv2): http://svn.apache.org/viewvc?rev=629093&view=rev Thanks a lot, Justus! Details on my refinements for font-weight: I have fonts with medium, bold and extra bold weights. Setting medium and bold to the same weight value seemed to simple. So at the moment, the mapping looks like this: light -> 200 default -> 400 medium -> 500 demi/semi(-bold) -> 600 bold -> 700 extrabold, extra bold, black, heavy, ultra, super -> 800 (the extra bold weights should probably be refined further although there's not much playroom anymore.)
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed