[aXSL-user] [from fop-dev] Sub and super scripts
An API for XSL-FO.
Status: Alpha
Brought to you by:
victormote
|
From: Vincent H. <vin...@en...> - 2005-09-20 17:30:27
|
Another kind of information that should eventually be exposed by the font= system. Vincent -------- Message original -------- Sujet: Re: Sub and super scripts Date: Fri, 16 Sep 2005 09:36:42 +0200 De: Jeremias Maerki <de...@je...> R=E9pondre =E0: fo...@xm... Pour: fo...@xm... R=E9f=E9rences: <200...@ar...> It's probably easiest for now to do as Batik does. However, Type 1 fonts provide information about sub and super scripts (size and placement) in the PFM file. That data is currently not parsed. I assume there's something similar in TrueType. So ideally, the font would supply the information how exactly to handle super/sub script. But keeping it simple for now will certainly not hurt. On 16.09.2005 09:08:24 Manuel Mall wrote: > What is the correct amount of baseline shift to apply for sub and super= =20 > scripts? Batik seems to use +/- 0.5 * ascender height. Is that the=20 > common way of doing it? The spec says only: "The offset ... is=20 > determined using the font data for the nominal font". >=20 > Thanks >=20 > Manuel Jeremias Maerki |