Hi porters,

I continued to work on this issue.
Here are my results, and my first patches ! :-)

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... The calling method 'vcl/aqua/source/gdi/salfontutils.cxx GetMacFontList()' performs some transformations and then build another FontList.

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(). 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"...??

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' 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 !


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



Michel



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

Reply via email to