poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 59127] Ability to replace the default font
Date Tue, 08 Mar 2016 05:45:39 GMT

--- Comment #1 from Javen O'Neal <onealj@apache.org> ---
XSSFFont defaultFont = StylesTable.getFonts().get(0);
// mutate defaultFont as needed

StylesTable.getDefaultFont() would be convenient here, returning a reference to
the current default font in the styles table

replaceDefaultFont(XSSFFont font) would be tricky because XSSFFonts have an
immutable index (into the font table?). All the mutable fields could be copied
from the passed-in font to the default font.

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org

View raw message