Hi Simon, The FOP font library doesn't actually render or paint any fonts, it does 1 of 2 things. Either it a) creates a subset of the font, and streams the subset (as a byte stream) to the PDF/PS document or b) it streams the whole font to the document (I think this is what is done for AFP, I don't think FOP supports subset embedding in AFP). This means the reader of the document has to read the font we embed and then does all the painting and rendering. Since Firefox is a viewer/browser and doesn't have a feature to embed fonts when saving html (or at least I'm pretty sure it doesn't) I'm not sure how we could take advantage of a graphics library, since that is done in the reader and not the document. OpenGL and SDL libraries are good examples of opensource programs that do display fonts, but again, I dont think subsetting/embedding is in their scope.
I could however be completely mistaken but that's my tuppence worth. Mehdi On 19 January 2011 08:35, Simon Pepping <spepp...@leverkruid.eu> wrote: > I take this discussion to express my worries that FOP needs to create > its own support for fonts, among which Open Type Fonts. FOP's core > task is the layout and printing of FO files. If FOP could rely on good > font libraries, that would make our code base so much smaller and our > development tasks so much easier. > > If I am not mistaken, Firefox does a fairly good job at representing > Indic scripts. Do they use a generally available library? > > Are there no such libraries? Or do I see the issue wrong? > > Regards, Simon > > On Tue, Jan 18, 2011 at 04:11:54PM -0700, Glenn Adams wrote: >> That is a better question, but one I cannot answer, as I have not looked >> into the CFF support issue. Perhaps another DEV would care to respond. >> >> On Tue, Jan 18, 2011 at 4:03 PM, Ivan Ristic <ivan.ris...@gmail.com> wrote: >> >> > On Tue, Jan 18, 2011 at 10:51 PM, Glenn Adams <gl...@skynav.com> wrote: >> > > >> > > On Tue, Jan 18, 2011 at 3:41 PM, Ivan Ristic <ivan.ris...@gmail.com> >> > wrote: >> > >> >> > >> On Tue, Jan 18, 2011 at 9:27 PM, Glenn Adams <gl...@skynav.com> wrote: >> > >> > What do you mean by "fully"? If you are referring to the OpenType >> > GDEF, >> > >> > GSUB, GPOS support, then work is already underway to add that >> > >> > functionality. >> > >> > See the following for further info: >> > >> > http://people.apache.org/~spepping/ >> > >> > http://wiki.apache.org/xmlgraphics-fop/ComplexScripts >