views:

183

answers:

1

Hello, I am trying to debug a font-related issue in a third-party Java application. Specifically, ChemAxon JChem. I've been consulting this guide: http://java.sun.com/j2se/1.5.0/docs/guide/intl/fontconfig.html

Part of the problem, is that I'm not sure which fontconfig.properties.src file my Java setup is currently referencing.

Here are my fontconfig files:

$ ls fontconfig*src 
fontconfig.Fedora.properties.src  fontconfig.properties.src   
fontconfig.SuSE.properties.src  fontconfig.Ubuntu.properties.src

My system is a CentOS system, so I imagine it is probably either ferencing the default fontconfig.properties.src file or the fontconfig.Fedora.properties.src file, since CentOS and Fedora are both derived from Red Hat.

So, can I definitively tell which fontconfig file my system is using?

Thanks,

-John David

A: 

Try monitoring the files that are opened, using the command line tool lsof, e.g.

lsof -r | grep fontconfig
vickirk
Hey, thanks for the suggestion. Unfortunately, this only brings up binary files in my ~/.fontconfig directory. Opening up these files *does* show me some paths to font directories in my /usr/share/fonts/ directory, but not which fontconfig.properties files are actually being referenced.
jkndrkn
Maybe it isn't reading any of them! You could try stepping into the code in a debugger.
vickirk