Thanks Eric
How to insert non-breaking hyphen properly? I change content to
first‑second first‑second
first‑second first‑second first‑second
first‑second first‑second first‑second
first‑second first‑second firstȁ
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
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 font
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 ge
Hi Bernard
Thanks for that explanation; that makes a lot of sense now.
I think I'm still having a little trouble working out which are the line(s)
where you're telling FOP which fonts are available, though.
Specifically what I have is a byte-array containing a font's data, and I
need to make FO
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 );
I've l