Hell (from Bruxelles) Michel,
Le 25 févr. 07 à 15:28, michel RENON a écrit :
Hi porters,
I continued to work on this issue.
That's great :)
Here are my results, and my first patches ! :-)
Thank you very much fo ryour time. Maybe some anti-virus checked you
mail, but I don't see any patch attached.
Could you please put them on some website and just give us the link ?
First, i could use XCode to debug, thanks to Tino !
It's now far easier to dig into the code..
I listed the results of 'vcl/aqua/source/gdi/salatsuifontutils.cxx
ATSUIGetFontNames()' and all fonts are listed...
This is good to read :)
The calling method 'vcl/aqua/source/gdi/salfontutils.cxx
GetMacFontList()' performs some transformations and then build
another FontList.
ah ..
When i compared the results of each method, i noticed that the
fonts that miss "regular" typeface are those that are listed
several times in ATSUIGetFontName().
Interesting.
For example, if ATSUIGetFontName() return "Lucida GrandeRegular"
and "Lucida GrandeBold", then in Writer's fontpanel, "Lucida Grande
Regular" is not available.
The exception to this rule is "Times new roman"...??
Could it be the format name limited to a certain number of letters ?
So i modified 'vcl/aqua/source/gdi/salfontutils.cxx GetMacFontList
()' to return only "regular" fonts...and OOo can display text in
Lucida regular !
Here are some screenshots :
http://michel.renon.free.fr/OpenOffice/2007_02_24/lucida1.png
http://michel.renon.free.fr/OpenOffice/2007_02_24/lucida2.png
http://michel.renon.free.fr/OpenOffice/2007_02_24/lucida3.png
http://michel.renon.free.fr/OpenOffice/2007_02_24/lucida4.png
http://michel.renon.free.fr/OpenOffice/2007_02_24/lucida5.png
:)
I had to force the use of "Ludica Grande" as system font in 'vcl/
source/gdi/fontcfg.cxx'
This is not allowed for Mac OS X aqua port, but reading all your
post , I'm co,nfident we are close to a solution, or at least, a
clear description of the problem.
You can see that OOo allows the user to choose "Regular, Bold,
Italic, Bold Italic" for each font...
:)
Please note that it's just a hack, it's temporary, it may just help
find a real solution...
But it looks more mac-ish !
Yes !!
summary of patches :
salfontutils.cxx.diff : return only "regular" fonts / display the
returned font list in the console
salatsuifontutils.cxx.diff : display the returned font list in the
console
fontcfg.cxx.diff : force "Lucida Grande" as default font
Sorry, patches are not present :/
Regards,
Eric Bachard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]