https://issues.apache.org/bugzilla/show_bug.cgi?id=39293
--- Comment #11 from Glenn Adams <[email protected]> 2012-03-23 16:10:59 UTC --- (In reply to comment #10) > aha, see this again. > > I fully understand what you said. But the fact is I can't buy the font face, > It > is not exist at all for multiple-bytes language. that is not true in general; for example, for Japanese fonts we have: Hiragino Kaku Gothic Pro W3 - normal face Hiragino Kaku Gothic Pro W6 - bold face Hiragino Mincho Pro W3 - normal face Hiragino Mincho Pro W6 - bold face you can specify these in XSL-FO content using two techniques: (1) use difference font-family properties to switch between faces <fo:block font-size="24pt"> <fo:inline font-family="Hiragino Mincho Pro W3">プレーンフォント</fo:inline> <fo:inline font-family="Hiragino Mincho Pro W6">太字フォント</fo:inline> </fo:block> (2) specify font triplets in fop.xconf: <font embed-url="Hiragino Mincho Pro W3.otf"> <font-triplet name="Hiragino Mincho Pro" style="normal" weight="normal"/> </font> <font embed-url="Hiragino Mincho Pro W6.otf"> <font-triplet name="Hiragino Mincho Pro" style="normal" weight="bold"/> </font> and then use a common family name with normal font-weight control: <fo:block font-size="24pt" font-family="Hiragino Mincho Pro"> <fo:inline font-weight="normal">プレーンフォント</fo:inline> <fo:inline font-weight="bold">太字フォント</fo:inline> </fo:block> as Vincent says, your bug report is indeed an enhancement request; i.e., to synthesize different font faces when one is not specifically available; while I agree this is possible, it often does not produce a pleasing result, and is sensitive to the original font format and other factors; if someone (you?) wished to create a general mechanism for FOP to perform font face synthesis and submit a patch to perform this function, then I'm sure it would be seriously considered for inclusion in FOP... however, absent a submission, it doesn't make sense to keep this "bug" open -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
