Hi,
I was not able to apply your patch on aquavcl01 m202 version of
salfontutils.cxx and salatsuifontutil.cxx
Le 25 févr. 07 à 17:44, michel RENON a écrit :
Le 25 févr. 07, à 17:23, Sébastien PLISSON a écrit :
Hi Michel,
Where are the patches ? thanks
oups...
i put them as pure diff files : the list server surely removed them
So here they are in a zip file.
Can u give me the infos to debug with xcode with breakpoints ?
You can put a breakpoint at the end of 'vcl/aqua/source/gdi/
salfontutils.cxx GetMacFontList()'
In the console, you'll see 2 font lists :
- the first is the one computed by ATSUIGetFontNames()
- the second is the one computed by GetMacFontList()
I have not enough knowledge in fonts to deeply analyse the
differences, but i suppose it can be interesting...
Maybe we'll have to change defaults settings about défault font's
name : OOo define "Lucida Grande" and Mac OS uses "Lucida Sans"...
(maybe my answer isn't what you expected : if you want to know how
to configure XCode to debug OOo instead of gdb, you can mail me
directly...it'll be easier and "en français" !)
Michel Renon
<Archive.zip>
Thx
Seb
Le 25 févr. 07 à 15:28, michel RENON a écrit :
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]