[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] LE madness
≤ and ≤ refer to the same character. 8804 is in decimal notation, 2264 is in hexadecimal. That aside, the problem is that the font you are using does not include a ≤ character. Helvetica and Times neither one do. Of the standard Adobe fonts, I believe only the Symbol font has the appropriate character. With XEP, this is relatively easy to fix. If you specify multiple font families in the fo:font-family attribute (as in font-family="Helvetica, Symbol") XEP will look down the list when it encounters a character that doesn't exist in the first font. (This is a feature they added in version 3.1, if I remember correctly.) If you do this, you'll probably also want to set the font-selection-strategy to "character-by-character" on your fo:root element. Otherwise, XEP will switch to the Symbol font for that character and all following characters (until it comes to a character not in the Symbol font.) AFAIK, FOP does not support multiple font families in this manner. I think it just uses the first font it can find for all characters in the document. HTH, Jeff > -----Original Message----- > From: John R. Daily [mailto:jdaily@progeny.com] > Sent: Tuesday, April 08, 2003 11:20 AM > To: docbook-apps@lists.oasis-open.org > Subject: [docbook-apps] LE madness > > > I imagine there's a simple resolution for this, but I've reached > the point of apathy by way of confused frustration. > > I tried to use ≤ in a document. Silly me. > > When generating PDF via FOP and XEP, I noticed that the character > was butchered; it was rendered as "#" by one, and as a space by > the other. I don't recall which was which, off-hand. > > The .fo file generated through the XSL stylesheets uses the > Unicode character, x2264. > > I looked at XEP's example symbol.fo, which does the following: > > <fo:block text-align="center" font="11pt Symbol">≤</fo:block> > > Why 8804? No idea. But that does work, for XEP. FOP doesn't > support the font attribute. > > If that's the standard mechanism, should the DocBook stylesheets > support it? If it's not, what should I be doing to get FOP (I'm > only experimenting with XEP) to do "less than/equal" properly? > I've given up and moved on to "<=" for now. > > -- > John R. Daily > jdaily@progeny.com > Director of Technology Progeny > Linux Systems > Master of the ephemeral epiphany > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: > docbook-apps-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]