Hi Rob and Graeme, I checked this morning, the font does contain the glyphs Graeme is looking for, and ASCII range text does work with that font. I only spent about 30mins on this, I'll try and spend some more time later but from my initial assessment I think this is a bug in FOP or at least it's something somewhere isn't supported. I realise that statement is a tautology and maybe slightly redundant, but my point is I think it's a FOP issue not a font error.
I used LCDF-typetools to validate the font and printed a test page (a PS document) which did display the characters you were looking for. If you wish to do the same install LCDF-typetools (ubuntu has it in the standard repositories) and you can use t1testpage to view a test PS document. Since my PS viewer doesn't have a search feature, I converted that document to PDF (ps2pdf another tool) to find the glyph you were looking for. Looking at the code, (which I did little in that time), FOP doesn't map the character properly which is why you're seeing "#"s in the document. This can be seen by debugging o.a.f.fonts.AbstractCodePointMapping.java the mapChar(char). Why this happens? I don't know, I'll try and look into it at some point. Mehdi On 28 February 2011 15:19, Rob Sargent <[email protected]> wrote: > > > On 02/27/2011 08:49 PM, Graeme Kidd wrote: > > Hi, > > I am having some troubles getting a Type 1 version of the FreeSerif[1] font > configured for FOP. I am needing a Unicode font that is in Type 1 so that I > can set the output to Postscript. I have attached the PFB, PFM and Metric > XML file as well as the following FO and Config file: > > > > Do characters from the basic alphabet show up? There's no guarantee that a > given font has all the gliffs you desire. > > rjs > > > ----- FreeSerifTest.fo ----- > <?xml version="1.0" encoding="UTF-8"?> > <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" > font-family="FreeSerif" font-weight="normal" font-style="normal"> > <fo:layout-master-set> > <fo:simple-page-master master-name="my-page"> > <fo:region-body margin="1in"/> > </fo:simple-page-master> > </fo:layout-master-set> > > <fo:page-sequence master-reference="my-page"> > <fo:flow flow-name="xsl-region-body"> > <fo:block font-family="FreeSerif" font-weight="normal" > font-style="normal"> > Lj lj NJ Nj nj Ǎ ǎ Ǐ ǐ Ǒ > ǒ Ǔ ǔ Ǖ ǖ Ǘ ǘ Ǚ ǚ Ǜ ǜ ǝ Ǟ > ǟ Ǡ ǡ Ǣ ǣ Ǥ ǥ Ǧ ǧ Ǩ > </fo:block> > </fo:flow> > </fo:page-sequence> > </fo:root> > -------------------------- > > -- FreeSerifTest.config -- > <fop version="1.0"> > > <!-- Base URL for resolving relative URLs --> > > <base>./</base> > > <renderers> > > <renderer mime="application/postscript"> > > <fonts> > > <!-- register a particular font --> > > <font metrics-url="fonts/FreeSerif.xml" kerning="yes" > > embed-url="fonts/FreeSerif.pfb" > > encoding-mode="single-byte"> > > <font-triplet name="FreeSerif" style="normal" > weight="normal"/> > > </font> > > > > <!-- register all the fonts found in a directory > > <directory>C:\FOP_Fonts</directory> --> > > <!-- automatically detect operating system installed fonts > > <auto-detect/> --> > > </fonts> > > </renderer> > > </render > -------------------------- > > ---- FreeSerifTest.log --- > [WARN ] Glyph "Lj" (0x1c8, Lj) not available in font "FreeSerif". > [WARN ] Glyph "lj" (0x1c9, lj) not available in font "FreeSerif". > [WARN ] Glyph "NJ" (0x1ca, NJ) not available in font "FreeSerif". > [WARN ] Glyph "Nj" (0x1cb, Nj) not available in font "FreeSerif". > [WARN ] Glyph "nj" (0x1cc, nj) not available in font "FreeSerif". > [WARN ] Glyph "Ǎ" (0x1cd, Acaron) not available in font "FreeSerif". > [WARN ] Glyph "ǎ" (0x1ce, acaron) not available in font "FreeSerif". > [WARN ] Glyph "Ǐ" (0x1cf, Icaron) not available in font "FreeSerif". > -------------------------- > > ---- FreeSerifTest.pdf --- > "# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #" > -------------------------- > > Does anyone have any idea why the FreeSerif font is not working? > > Thanks > > [1] http://www.gnu.org/software/freefont/ > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
