poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 59127] New: Ability to replace the default font
Date Sat, 05 Mar 2016 20:33:12 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=59127

            Bug ID: 59127
           Summary: Ability to replace the default font
           Product: POI
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: dev@poi.apache.org
          Reporter: dtn-asfbugs@corefiling.co.uk

The default font is important because the cell sizes are derived from it.

POI adds a default font because Excel requires there to be one; we used to swap
it for our own like this:

workbook,getStylseSource().getFonts().clear()
// create a font as normal, it becomes the default by virtue of being first

Unfortunately that no longer works as Javen (quite reasonably) made the
returned list an unmodifiable one in r1721857.

So I propose we add some proper API to replace the default font, e.g. add to
StylesTable:

void replaceDefaultFont(XSSFFont 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


Mime
View raw message