I have taken a look at the way this question is dealt with in LaTeX
(TeX does not have the notion of font families, LaTeX does). Here the
question what to use for small caps font is deferred to the font
setup. The font definition tables must define a small caps font. If
they do not do so, a fallback font is used; this should also be
defined in the fd tables. If they fail to do that as well, the system
uses its fallback font.

Like FOP's layout, LaTeX only uses the font metrics. The renderer
should locate the actual font. If such a font does not exist, but must
be emulated, then this should indicated in the font system
configuration for the renderers. For example, the fonts map for dvips
has these lines, which I believe tell it how to generate a small caps
pplr8rn Palatino-Roman ".82 ExtendFont TeXBase1Encoding ReEncodeFont" <8r.enc

So my basic belief is that FOP should not know anything about
this. It should all be configured in the font system. That is how the
user imposes his choice of fonts.

With kind regards,
Simon Pepping

On Thu, Nov 20, 2003 at 09:22:41PM +0100, J.Pietschmann wrote:
> Victor Mote wrote:
> >Typeface roughly corresponds to what is contained in a ttf of pfa font 
> >file.
> Hm hm. A TTF is typically Courier-bold-italic or so. Did you mean this
> or rather typeface==font-family?
> >I don't understand what you are saying here. If emulation is used, it 
> >should
> >probably at least be logged. Alternatively, a config option could control
> >whether this is allowed at all. But I don't follow at all what you are
> >suggesting with the renderer using the font to control the emulation. How
> >does layout get done at all then? And what is the advantage over simply
> >establishing the emulation in the FO Tree itself?
> The layout gets the metric from a FOP font structure, and it doesn't have
> to know whether the font is a true small caps font or emulates it.
> During rendering, of course, emulation has to take effect.
> Well, on a secont thought there is not much difference from emulating
> small caps before layout.
> Of course it makes sense to log if small caps is emulated.
> J.Pietschmann

Simon Pepping
home page: http://www.leverkruid.nl

Reply via email to