RE: How to prevent hyphenation after hyphens?

2012-06-13 Thread SNawa
Thanks Eric How to insert non-breaking hyphen properly? I change content to fo:block margin-right=120pt border-width=1pt border-color=black border-style=solid firstamp;#x2011;second firstamp;#x2011;second firstamp;#x2011;second firstamp;#x2011;second firstamp;#x2011;second

Re: How to prevent hyphenation after hyphens?

2012-06-13 Thread Pascal Sancho
Hi, The '#' means that the character is not found in the used font. You have here 2 alternatives: - either use a font that contains such character (tried successfully with DejaVu collection, follow [1]) - or (as said Eric) use keep-together.within-line on 1 fo:inline for each first-second. [1]

RE: Still having trouble loading fonts at runtime - suggestions?

2012-06-13 Thread Phillip B Oldham
Hi Bernard Thanks for that code - that's really helpful. However, from what I can tell (java isn't one of my main languages, I'm a Python dev) it seems as though it doesn't actually tell FOP to reload any fonts, but rather gathers a list of fonts and then asks `PropertiesManager` to set the

RE: Still having trouble loading fonts at runtime - suggestions?

2012-06-13 Thread Bernard Giannetti
Hi Phill, The PropertiesManager is a class of mine which basically extends java.util.Properties and essentially reads/writes a hash table of key/value pairs. I store in the properties a list of the font names and their respective font files (as discovered via FOP). For me on Ubuntu 12.04 I

RE: Still having trouble loading fonts at runtime - suggestions?

2012-06-13 Thread Bernard Giannetti
Hi Phill, I make a call to FOP itself to find the fonts - see FOPManager::InitialiseFonts in the code from my first reply. The magic line is SortedMap?,? fontFamilies = new FontListGenerator().listFonts( ms_fopFactory, org.apache.xmlgraphics.util.MimeConstants.MIME_PDF, fontEventListener );