Apache OpenOffice (AOO) Bugzilla – Issue 82456
Default Asian font setting is not correct for New Chart
Last modified: 2013-02-24 21:22:09 UTC
How to reproduce: 1. Open Calc with Asian language support ON 2. Insert->Chart.. and click Finish on Chart Wizard 3. Format->Legend and go to Character tab 4. Language list for both of Western and Asian are blank and Font entry for Asian is inconsistent with Cell font properties (Font tab in Format->Cell dialog) For instance, Asian font in Japanese StarSuite8 chart must be "HG PゴシックB Sun", but Asian chart font is "Andale Sans UI" which is old (StarSuite7 era) default font. This is regression from 2.2.1. Stefan, please re-assign this to appropriate engineer, thanks!
SBA->BM: Please proceed, thx.
Adding weiz on CC list. ->weiz: I suppose the same applies to OOo with an Asian locale. (Chinese or Japanese?) Have a look at chart2/source/tools/CharacterProperties.cxx. In method CharacterProperties::AddDefaultsToMap() the defaults for all (most) character properties are set.
Hm, /me is in doubt about "HG PゴシックB Sun". I can't read the Japanese characters, but the word "Sun" is included, so this is probably StarSuite only. ->SBA: Is this a plain StarSuite issue, or does it also apply to OOo?
Probably similar to Issue 85934 for western fonts.
->bm: The patch is finished, but it's only for fixing the problems as this issue described. About the font preview problem, I am trying to find a suitable way to fix it, but it's not finished yet. I think it's better to submit the patch of font preview to corresponding issue( issue 26572 ). :-)
Created attachment 51858 [details] patch_080303
->weiz, I took a part of the patch for the language local to fix issue 84964. But I removed the hard coded languages and used that one from the configuration instead. The font defaults needed a correction also. I changed them to use the configuration locale and the spreadsheet font default.
Fixed in CWs chart23.
Comparing the implementation of the old and the new chart, I changed the defaults for font family, stylename, charset and pitch also to be taken from the default font. I cannot see any visible effect right now for OOo, but I assume that this is more correct.
->Thomas, please verify in CWS chart23. The default font is now that one which is used by the calc dependent on the systems locale as it was before in the old charts implementation. To reproduce set the asian default language to japanese under Tools->Options->Language Settings->Languages and create a chart then.
Seen ok in CWS chart 23 -> verified
Seen ok in current master -> closed