Bug 58068 - FindFont not find by color
Summary: FindFont not find by color
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 3.12-FINAL
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on: 58138
  Show dependency tree
Reported: 2015-06-22 12:16 UTC by map72ru
Modified: 2017-10-11 18:33 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description map72ru 2015-06-22 12:16:01 UTC
XSSFFont StylesTable.findFont uses getColor index, but index in font equals 0. Really, comparation must be color value.
Comment 1 Nick Burch 2015-07-14 21:25:30 UTC
An approach similar to the one for Conditional Formattings in #58138 may be needed here
Comment 2 Dominik Stadler 2017-10-11 18:33:37 UTC
This is available now via r1811866, we now provide a 2nd method which allows to pass in a Color-object for looking up fonts via their actual color.