Re: Font variant SmallCaps Was: Re: (Chris) Re: Traits

2003-11-27 Thread Jeremias Maerki
On 26.11.2003 21:32:30 J.Pietschmann wrote: Victor Mote wrote: Yes, this can get ugly. If anybody knows of a way to find the physical font file from an awt Font object, please speak up. Currently (as of 1.4.1 you can create a awt.Font from an InputStream, but you cant get back whatever

Re: Font variant SmallCaps Was: Re: (Chris) Re: Traits

2003-11-27 Thread J.Pietschmann
Jeremias Maerki wrote: Anyway, it's the opposite of what Victor wanted. Yeah. I think you meant return Font.createFont(Font.TRUETYPE_FONT, new FileInputStream... OOps, yes. This means users can use AWT fonts for creating PDF, but they can't embed them. This may cause the resulting PDF to fail,

Re: Font variant SmallCaps

2003-11-27 Thread J.Pietschmann
Peter B. West wrote: Although not mandated in XSL-FO, CSS2 offers a number of methods of font matching, only some of which preserve metrics. The FO User Agent is free to make implementation-specific decisions about this, I assume. My main interest here is in whether we want to try to separate

Re: Font variant SmallCaps Was: Re: (Chris) Re: Traits

2003-11-27 Thread Jeremias Maerki
On 27.11.2003 17:30:18 J.Pietschmann wrote: Jeremias Maerki wrote: snip/ This means users can use AWT fonts for creating PDF, but they can't embed them. This may cause the resulting PDF to fail, but so what. -- Support questions It depends. If users are still required to declare

Re: Font variant SmallCaps

2003-11-27 Thread Peter B. West
J.Pietschmann wrote: Peter B. West wrote: Although not mandated in XSL-FO, CSS2 offers a number of methods of font matching, only some of which preserve metrics. The FO User Agent is free to make implementation-specific decisions about this, I assume. My main interest here is in whether we

RE: Font variant SmallCaps Was: Re: (Chris) Re: Traits

2003-11-27 Thread Victor Mote
Jeremias Maerki wrote: And there's still the question if we can produce font metric information for the target formats (there's PCL and PostScript and..., too) that result in the desired output. The idea was to query the renderer for fonts, or get a renderer specific font

RE: Font variant SmallCaps

2003-11-27 Thread Victor Mote
Peter B. West wrote: BTW fonts aren't the only considerations, others are color and the discretization of coordinates (e.g. bitmap vs. vector format). All of which leads me to the question of what, exactly, we are trying to isolate and amalgamate in the font system. We can't get away from

Re: Font variant SmallCaps Was: Re: (Chris) Re: Traits

2003-11-27 Thread J.Pietschmann
Jeremias Maerki wrote: Font configuration should/will become easier. For TrueType and Type1 fonts this should just be a matter of specifying a list of directories in which to look for fonts. A cache is needed to speed up the inventory on startup. Hmhm. Not bad. My idea is still different: Having

Re: Font variant SmallCaps

2003-11-26 Thread Peter B. West
Simon Pepping wrote: 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

RE: Font variant SmallCaps Was: Re: (Chris) Re: Traits

2003-11-26 Thread Victor Mote
Peter B. West wrote: I'm fuzzy with this stuff, but isn't renderer-context a new notion? What you are calling renderer-context was previously only associated with the renderer as such, wasn't it? I'm assuming that the renderer-context is something that amalgamates font metrics. Renderers

RE: Font variant SmallCaps

2003-11-26 Thread Victor Mote
Peter B. West wrote: What's the intention for the FOP font system? Is FOP going to define a set of fonts and font metrics in its User Agent font database (as per CSS2)? Will this be defined with reference to the supported renderers (statically), the supported renderers and the fonts

Re: Font variant SmallCaps Was: Re: (Chris) Re: Traits

2003-11-26 Thread J.Pietschmann
Victor Mote wrote: Yes, this can get ugly. If anybody knows of a way to find the physical font file from an awt Font object, please speak up. Currently (as of 1.4.1 you can create a awt.Font from an InputStream, but you cant get back whatever physical representation the font has from the awt.Font

Re: Font variant SmallCaps

2003-11-26 Thread J.Pietschmann
Peter B. West wrote: If a user renders a given .fo file on two different systems, using the same renderer (say, PDF), and specifies a font family (say, Baskerville) that does not exist on the first system, but does on the second, what result should be expected? If the user specified a fallback,

Re: Font variant SmallCaps

2003-11-26 Thread Simon Pepping
On Wed, Nov 26, 2003 at 08:21:33PM +1000, Peter B. West wrote: Simon Pepping wrote: 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.

Re: Font variant SmallCaps

2003-11-26 Thread Peter B. West
J.Pietschmann wrote: Peter B. West wrote: If a user renders a given .fo file on two different systems, using the same renderer (say, PDF), and specifies a font family (say, Baskerville) that does not exist on the first system, but does on the second, what result should be expected? If the

Re: Task list Was: Re: Font variant SmallCaps

2003-11-25 Thread Chris Bowditch
J.Pietschmann wrote: Chris Bowditch wrote: but my motivation is just to get something rather than nothing. You are bored? Oh! Thanks for the suggestions. I think you misunderstood though, I'm far from bored, my employers keep me busy. Just trying to help get layout unbroken. Some tasks: -

Re: Font variant SmallCaps Was: Re: (Chris) Re: Traits

2003-11-25 Thread Peter B. West
Victor Mote wrote: I am confused by the distinction that you make between fop.PDFFont and fop.Type1Font. In my mind, there is no such concept as a fop.PDFFont, unless it is a renderer-specific class for getting a Type1Font (for example) into the PDF output. But I think that should be a method in

RE: Font variant SmallCaps Was: Re: (Chris) Re: Traits

2003-11-22 Thread Victor Mote
J.Pietschmann wrote: Victor Mote wrote: No. Courier-Bold-Italic would be the Typeface, Courier would be the TypefaceFamily. So my Font object that gets used by FOP would be Courier-Bold-Italic at 12 points. It has a parent Typeface, which represents the Courier-Bold font file and its

Re: Font variant SmallCaps Was: Re: (Chris) Re: Traits

2003-11-22 Thread J.Pietschmann
Victor Mote wrote: Same general concept, except I think there is a separate class for font metrics in that system. If I can ever find a way to get to the physical file (or some representation of it) through java.awt.Font (for embedding), we would use it along with our other font scheme. I believe

RE: Font variant SmallCaps

2003-11-22 Thread Victor Mote
Simon Pepping wrote: These days everybody uses scalable fonts, but in principle it is possible that Courier-Bold-Italic at 10 points is a different font than Courier-Bold-Italic at 20 points, with a different metric file and different glyphs. The canonical example being of course TeX, with

Re: Font variant SmallCaps Was: Re: (Chris) Re: Traits

2003-11-22 Thread Jeremias Maerki
(disclaimer: Due to lack of time and a hardware failure, I haven't read everything, yet) I don't think we can rely on java.awt.Font. A FOP-defined Font interfaces is necessary to really make sure FOP gets what it need. What we came up with on the Wiki pretty much shows my ideas for the font

RE: Font variant SmallCaps Was: Re: (Chris) Re: Traits

2003-11-22 Thread Victor Mote
J.Pietschmann wrote: I believe we should just define a fop.Font interface which is the same as awt.Font, then provide implementations fop.AWTFont, fop.PDFFont (well all the variations), fop.Type1Font etc. A configurable selector (an Avalon selector) could selcet them. This way people could

Re: Font variant SmallCaps Was: Re: (Chris) Re: Traits

2003-11-21 Thread Chris Bowditch
From: J.Pietschmann [EMAIL PROTECTED] I have done some investigation into emulating the Font-variant stuff in a similar way to the maintenance branch. 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

RE: Font variant SmallCaps Was: Re: (Chris) Re: Traits

2003-11-21 Thread Victor Mote
Victor Mote 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? No. Courier-Bold-Italic would be the Typeface, Courier would

Re: Font variant SmallCaps Was: Re: (Chris) Re: Traits

2003-11-21 Thread J.Pietschmann
Victor Mote wrote: No. Courier-Bold-Italic would be the Typeface, Courier would be the TypefaceFamily. So my Font object that gets used by FOP would be Courier-Bold-Italic at 12 points. It has a parent Typeface, which represents the Courier-Bold font file and its contents. This typeface has a

Task list Was: Re: Font variant SmallCaps

2003-11-21 Thread J.Pietschmann
Chris Bowditch wrote: but my motivation is just to get something rather than nothing. You are bored? Oh! Some tasks: - Implement text-align-last - Implement text-align=justify - Fix table headers. - Fix content rectangle computation for background filling - Fix bottom borders (and perhaps other

Re: Font variant SmallCaps

2003-11-21 Thread Simon Pepping
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

RE: Font variant SmallCaps Was: Re: (Chris) Re: Traits

2003-11-20 Thread Victor Mote
J.Pietschmann wrote: (Still not making sense? If you need any more intermediate steps in understanding how getters and setters actually make things work, we're just a message away ;) ) Dunno. Let me elaborate. We have FO - FOP layout - FOP renderer - output Font variant SmallCaps

Re: Font variant SmallCaps Was: Re: (Chris) Re: Traits

2003-11-20 Thread J.Pietschmann
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