Fallback fonts
Posted: Fri Mar 05, 2010 2:53 am
I'm setting up paragraph styles correctly according to a font name using
How do I allow it to fall back if a font is not available?
In HTML and XSL-FO, I can specify "arial,tahoma,sans-serif" in order of preference. That does not work in Word - I've tried it.
Is such a thing possible?
- Code: Select all
if (isNotBlank(font)) {
RFonts rf = new RFonts();
rf.setAscii(font);
rPr.setRFonts(rf);
}
How do I allow it to fall back if a font is not available?
In HTML and XSL-FO, I can specify "arial,tahoma,sans-serif" in order of preference. That does not work in Word - I've tried it.
Is such a thing possible?