You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2021/08/06 01:46:02 UTC
[Bug 65485] New: POI call fails in Createsheet API call due to
missing fontconfig
https://bz.apache.org/bugzilla/show_bug.cgi?id=65485
Bug ID: 65485
Summary: POI call fails in Createsheet API call due to missing
fontconfig
Product: POI
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
Assignee: dev@poi.apache.org
Reporter: rakhi.narayanan@gmail.com
Target Milestone: ---
We are using Java 11 and compared to earlier versions of Java ,Java 11 have
removed fonts folder from jre/lib.
So our poi calls are failing at createsheet call,due to missing fontconfig.
If we install fontconfig using yum ,it will work like charm.But management is
not approving the same.
Issue is not happening in Java8 as fonts are identified from jre/lib folder.
Tried to put the fonts in current working directory ,but that also didnot help.
Could you please let me know ,how poi picks up the fonts,from where and what I
can do to overcome this issue.Also the list of fonts/files to get over the
issue.
Regards,
Rakhi
--
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
[Bug 65485] POI call fails in Createsheet API call due to missing
fontconfig
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65485
PJ Fanning <fa...@yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INFORMATIONPROVIDED
--- Comment #1 from PJ Fanning <fa...@yahoo.com> ---
POI uses Java runtime to handle the fonts. It is best to track this under
https://stackoverflow.com/questions/68675258/apache-poi-failing-in-createsheet-due-to-missing-fontconfig-in-java-11-environme
- I'm going to close this as it is not a POI issue
--
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
[Bug 65485] POI call fails in Createsheet API call due to missing
fontconfig
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65485
Nick Burch <ap...@gagravarr.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|blocker |minor
Priority|P1 |P5
--
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
[Bug 65485] POI call fails in Createsheet API call due to missing
fontconfig
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65485
Rakhi Barayanan <ra...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INFORMATIONPROVIDED |---
--- Comment #2 from Rakhi Barayanan <ra...@gmail.com> ---
Thanks for the response.
From Java 11 ,For Linux and Solaris: the Oracle JDK is moving away from
providing custom font configuration files on Linux platforms, as they are
difficult to keep up to date across distributions and versions. A distribution
that has control over the fonts on the system can continue to provide this
custom file. If the JRE finds a custom file that exactly matches the
distribution and version it will use it. If no exact match is found, the JRE
dynamically creates the file at runtime. These generated files are placed in a
location determined by the implementation. They should be considered
implementation internal: they are not user editable and do not follow the
syntax as described in this
specification.(https://docs.oracle.com/en/java/javase/11/intl/font-configuration-files.html#GUID-DDE824A0-7A89-4758-AE25-7EF7E20E97F6)
The JDK now relies purely on the fonts available on the host platform and
supports both TrueType and PostScript Type 1 fonts.
Does poi searches for font in a particular path?
Regards,
Rakhi
--
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
[Bug 65485] POI call fails in Createsheet API call due to missing
fontconfig
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65485
Rakhi Barayanan <ra...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P1
--
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
[Bug 65485] POI call fails in Createsheet API call due to missing
fontconfig
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65485
--- Comment #5 from Rakhi Barayanan <ra...@gmail.com> ---
Does apache poi have some system property to tell them where the fall back font
live?
--
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
[Bug 65485] POI call fails in Createsheet API call due to missing
fontconfig
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65485
Rakhi Barayanan <ra...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|INFORMATIONPROVIDED |---
Status|RESOLVED |REOPENED
--- Comment #4 from Rakhi Barayanan <ra...@gmail.com> ---
Could you please let me know which font files are mandatory. I have put some of
the font files in font path, but it did not worked. So please let me know the
minimal fonts or font configurations required.
--
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
[Bug 65485] POI call fails in Createsheet API call due to missing
fontconfig
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65485
PJ Fanning <fa...@yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INFORMATIONPROVIDED
Status|REOPENED |RESOLVED
--- Comment #3 from PJ Fanning <fa...@yahoo.com> ---
POI uses Java runtime APIs to find fonts.
--
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
[Bug 65485] POI call fails in Createsheet API call due to missing
fontconfig
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65485
Nick Burch <ap...@gagravarr.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INFORMATIONPROVIDED
Status|REOPENED |RESOLVED
--- Comment #6 from Nick Burch <ap...@gagravarr.org> ---
For basic functionality, you just need one font available to the JVM. For
accurate column sizing, you need the font that your style uses.
Apache POI has no code or logic for loading custom fonts, that is all handled
by the JVM. POI just asks the JVM for a specific font, and falls back to asking
for other ones if that isn't available
If you are unsure about how to supply fonts to your JVM, you need to ask for
help from your JVM vendor/packager. That isn't an Apache POI thing, that is
very much specific to your chosen JVM + OS. As long as the core Java APIs can
find and return the font, Apache POI will be happy. If the JVM can't find the
fonts, POI can't work and can't load its own, so you have to fix that at the
JVM level
--
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
[Bug 65485] POI call fails in Createsheet API call due to missing
fontconfig
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65485
Rakhi Barayanan <ra...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |blocker
--
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