Apache OpenOffice (AOO) Bugzilla – Issue 8144
Fontconfig2 based systems (RH8) store fonts in /usr/share/fonts - OOo doesn't look there...
Last modified: 2004-12-06 08:40:32 UTC
Hi, Fontconfig2 based systems, like RedHat8, store ttf's in /usr/share/fonts, rather then the old XFree location. OOo 643, and possible older versions, don't look there for fonts, hence new fonts don't show up.
Chris Halls rightly suggest to change this from "change hardcoded paths" to "support fontconfig2"
CP->PL: supporting fontconfig2 is probably the right thing to do. Maybe not for 1.1. Please have a look if we can support /usr/share/fonts.
will do
Is the long-term plan to use fontconfig in OOo, replacing the current OOo font mechanism? The interim solution should not be to look in a hardcoded location such as /usr/share/fonts, but to peek in the /etc/fonts/fonts.conf file and pull the directories from the list there.
If fontconfig does not have an API to access the font files, then i will have to do that.
Fontconfig does have the API to access the font files, iirc. I only suggested that interim solution in the case that using the fontconfig api (and thus pulling in a library) wasn't feasible yet. Philipp, are you (will you be) working on integrating fontconfig into OOo?
I will. I haven't got anything material yet (workload), but i plan to open the libXft by dlopen and use it if possible, else fall back to what is already there.
Please be careful. Many font related problems I find are related to OOo getting fonts from all over the place. Not all fonts that are installed as part of the system are equally useful. In any case, there should be a (customizable) way to control the locations where OOo looks for fonts.
If and when we do start using fontconfig by default, that should become a moot point, as fontconfig's purpose is to make sure every font that is used is both displayable and printable. I agree, though, that we should not be just looking in the default font directories for any fonts that might be there. I would suggest that this bug's summary be changed to "Support fontconfig"
*** Issue 2728 has been marked as a duplicate of this issue. ***
Ximian has been working on some code for fontconfig integration that they are planning to contribute back to OOo at some point. Philipp (or others), would it be possible to contact someone at Ximian to try to get some initial patches posted and reviewed?
Michael Meeks told me Ximian would do so when they are ready. But we'd need to change that anyway since they simply linked against libXft2.so which cannot be a solution for OOo as a whole; we'll want that as a runtime decision.
We don't link to Xft2, we link to libfontconfig, from which we extract a list of fonts to use - which we use in the normal way - so far. Clearly it'd be nice to use Xft2 / fontconfig more fully - but that creates issues. Either way; AFAICS Xft2 use is a different issue to fontconfig use.
You're right. Nevertheless the same line of reasoning is valid for libfontconfig; I'd like to link it dynamically.
fixed in CWS fontconfig
*** Issue 19500 has been marked as a duplicate of this issue. ***
pl->us: please verify in CWS fontconfig
#20361# is the corresponding Q-PCD issue for fontconfig support.
Issue is resolved/fixed.
Issue verified.
Closing resolved/fixed/verified.
*** Issue 28242 has been marked as a duplicate of this issue. ***