Hi, I guess you are using the same file for all variants of the font: regular, italic, bold and bold+italic. Typically, a font family is a set of 4 font files, one for each variant. Some application can alter the regular font to generate a bold (or italic) version, but FOP doesn't.
Note that to get a good quality layout, it is a good practice to have a complete font family, with 1 file per variant. Pascal sjmcallister a écrit : > Hello, > > I am struggling to embolden text using the True Type user font 'mono > spaced'. I am generating PDFs using FOP 0.95 via java code rather than the > command line. > > My fo:block looks like this: > > <fo:block font-weight="bold" font-size="10pt" font-family="MonoSpaced"> > test > </fo:block> > > The user font is applied correctly but has a normal font weight rather than > bold. > > The font-triplet element in my user config looks like this: > > <font-triplet name="MonoSpaced" style="bold" weight="700"/> > > When I use the same font in MSWord it correctly handles bold - I think I am > right in thinking that this means the bold glyphs are contained in the TTF > file? > > If I use a standard font (like Helivetica) bold generates correctly. > > Does anyone have any suggesions as to why I can't generate bold text for > this user font? > > many thanks > > Stephen > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
