Re: Sub and super scripts
Manuel Mall a écrit : Vincent, does FOray font expose this type of information Jeremias described below? Not yet. I'll expose the problem on FOray-dev. If you choose to implement this functionality now I suggest you to make things very simple, as Jeremias said. This wouldn't be completely useless anyway: this would help me to adapt FOrayFont thereafter, as I'll easily find where to work in the code! Vincent On Fri, 16 Sep 2005 03:36 pm, Jeremias Maerki wrote: 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 scripts? Batik seems to use +/- 0.5 * ascender height. Is that the common way of doing it? The spec says only: "The offset ... is determined using the font data for the nominal font". Thanks Manuel Jeremias Maerki
Re: Sub and super scripts
AFAICS, no, it doesn't do that, yet. On 16.09.2005 09:39:55 Manuel Mall wrote: > Vincent, > > does FOray font expose this type of information Jeremias described > below? > > Manuel > On Fri, 16 Sep 2005 03:36 pm, Jeremias Maerki wrote: > > 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 scripts? Batik seems to use +/- 0.5 * ascender height. Is > > > that the common way of doing it? The spec says only: "The offset > > > ... is determined using the font data for the nominal font". > > > > > > Thanks > > > > > > Manuel > > > > Jeremias Maerki Jeremias Maerki
Re: Sub and super scripts
Vincent, does FOray font expose this type of information Jeremias described below? Manuel On Fri, 16 Sep 2005 03:36 pm, Jeremias Maerki wrote: > 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 scripts? Batik seems to use +/- 0.5 * ascender height. Is > > that the common way of doing it? The spec says only: "The offset > > ... is determined using the font data for the nominal font". > > > > Thanks > > > > Manuel > > Jeremias Maerki
Re: Sub and super scripts
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 > scripts? Batik seems to use +/- 0.5 * ascender height. Is that the > common way of doing it? The spec says only: "The offset ... is > determined using the font data for the nominal font". > > Thanks > > Manuel Jeremias Maerki