To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=79878





------- Additional comments from [EMAIL PROTECTED] Mon Oct 15 07:21:57 +0000 
2007 -------
After some exchange on this thread:
http://gsl.openoffice.org/servlets/BrowseList?list=dev&by=thread&from=1877392
I spent some time to dig into the way of font listing made by fontconfig, I
discovered IMHO that though fontconfig uses the TrueType font file data to give
the application a possibility to group the fonts by Preferred Family (for
preferred family grouping) and Preferred Subfamily (for preferred family
grouping), OOo UI is not ready for that at the moment, so aren't some of the
oldest TrueType fonts still around today (among them some proprietary I bought
for professional reason).

My proposal, at least for the time being, is that we stick with the current UI
with the four available standard styles usable and use the grouping provided by
the font designer (see the previously attached screenshot).

The patch I'm going to attach is addressing this issue in Linux platforms that
use fontconfig.
The patch is m233 based, but I applied it without problem to 2.3.0.
What happens when fontconfig is not used is to be checked.

I'll attach a Calc test file I used to check for DejaVu fonts in both Linux and
Windows platforms, just to see if the font naming was consistent between the 
two.

I checked with the proprietary fonts I have and all of them are now visible on
Linux.

To obtain the correct style name a small correction to the TrueType name table
discovery procedure was needed (fontmanager.cxx). Please check if the string
conversion is all right, especially the returned value for Apple in sfc.cxx
(where the TT font file is scanned for names).
This little change has a side effect, though: the name of the font style are not
localized, since they are taken from the font file.

I added some comments where the relevant names are read from TT file, for 
posterity.

Before starting OOo with the patch applied, the font cache file <user private
configuration directory>/user/psprint/pspfontcache must be deleted (or check for
a way to do it).

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to