Issue 99293 - Japanese UI font is smaller than OOo 3.0 on UNIX platform
Summary: Japanese UI font is smaller than OOo 3.0 on UNIX platform
Status: CLOSED FIXED
Alias: None
Product: Internationalization
Classification: Code
Component: ui (show other issues)
Version: DEV300m40
Hardware: All Unix, all
: P2 Trivial (vote)
Target Milestone: ---
Assignee: eric.savary
QA Contact: issues@l10n
URL:
Keywords:
: 99420 100478 (view as issue list)
Depends on:
Blocks: 95768
  Show dependency tree
 
Reported: 2009-02-17 09:33 UTC by yuko
Modified: 2013-08-07 15:02 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
DEV300m41 screenshot (7.19 KB, image/gif)
2009-02-17 09:35 UTC, yuko
no flags Details
DEV300m40 screenshot (46.46 KB, image/gif)
2009-02-17 09:35 UTC, yuko
no flags Details
DEV300m40 screenshot (11.05 KB, image/gif)
2009-02-17 09:36 UTC, yuko
no flags Details
DEV300m40 screenshot (15.04 KB, image/gif)
2009-02-17 09:36 UTC, yuko
no flags Details
OOo30 screenshot (8.65 KB, image/gif)
2009-02-17 09:36 UTC, yuko
no flags Details
OOo30 screenshot (48.69 KB, image/gif)
2009-02-17 09:37 UTC, yuko
no flags Details
OOo30 screenshot (14.87 KB, image/gif)
2009-02-17 09:37 UTC, yuko
no flags Details
OOo30 screenshot (16.00 KB, image/gif)
2009-02-17 09:37 UTC, yuko
no flags Details
OOo3.0 preferred image (25.02 KB, image/png)
2009-02-24 10:12 UTC, naoyuki
no flags Details
DEV300m40 too small UI font image (24.34 KB, image/png)
2009-02-24 10:13 UTC, naoyuki
no flags Details
DEV300m40 scale 120% UI image with bigger cell size (24.74 KB, image/png)
2009-02-24 10:14 UTC, naoyuki
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description yuko 2009-02-17 09:33:44 UTC
Tested machines: DEV300m40 on Solaris SPARC and x86, DEV300m41 on RedHat EL4.0

When running OOo in Japanese locale, OOo appears with the small UI font,
so it is too hard to use OOo. This problem occurs in UNIX platforms.

I have attached some screenshots, so please compare OOo 3.0 screenshots with
DEV300m40 screenshots.

Please fix this by OOo 3.1 final release.
Comment 1 yuko 2009-02-17 09:35:21 UTC
Created attachment 60232 [details]
DEV300m41 screenshot
Comment 2 yuko 2009-02-17 09:35:49 UTC
Created attachment 60233 [details]
DEV300m40 screenshot
Comment 3 yuko 2009-02-17 09:36:06 UTC
Created attachment 60234 [details]
DEV300m40 screenshot
Comment 4 yuko 2009-02-17 09:36:24 UTC
Created attachment 60235 [details]
DEV300m40 screenshot
Comment 5 yuko 2009-02-17 09:36:47 UTC
Created attachment 60236 [details]
OOo30 screenshot
Comment 6 yuko 2009-02-17 09:37:07 UTC
Created attachment 60237 [details]
OOo30 screenshot
Comment 7 yuko 2009-02-17 09:37:26 UTC
Created attachment 60238 [details]
OOo30 screenshot
Comment 8 yuko 2009-02-17 09:37:43 UTC
Created attachment 60239 [details]
OOo30 screenshot
Comment 9 yuko 2009-02-20 02:42:50 UTC
This is a regression from OOo 3.0, so this needs to be fixed in Ooo 3.1.
Comment 10 hdu@apache.org 2009-02-20 07:28:28 UTC
@yuko: please do some tests with the environment variable SAL_DISABLE_FC_SUBST
  set it to 1, then start the app in the same terminal
  set it to 2, ...
  set it to 3, ...
  set it to 0 or unset it, ...
Does this make a difference on your system? 

Comment 11 yuko 2009-02-20 08:07:03 UTC
I am afraid that UI font did not change by setting the environment variable
SAL_DISABLE_FC_SUBST.
Comment 12 hdu@apache.org 2009-02-20 11:01:34 UTC
Do thing look better when you change Tools->Options->View->UIScaling to e.g. 130%? Changing the 
default from 100% to something bigger for some locales might be a quick and comparatively clean 
workaround.

Did the problem happen with older milestones too (e.g. DEV300_m33)? If yes then I suspect issue 
90910 introduced it by cleaning up a horrible old hack (font-resolution != graphic-resolution !!!) with 
either
    http://gsl.openoffice.org/source/browse/gsl/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx?
r1=1.47.32.1&r2=1.47.32.2 
or 
    http://gsl.openoffice.org/source/browse/gsl/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx?
r1=1.47.32.3&r2=1.47.32.4

We certainly don't want these old hacks back. What does
    xdpyinfo | fgrep resolution
report on that particular system?

I also wonder if this is a problem of the GTK-plugin. Does setting the environment variable 
"SAL_USE_VCLPLUGIN" to "gen" or "gtk" or "kde" change anything? Is KDE even available on that system?
Comment 13 yuko 2009-02-23 05:02:05 UTC
I think that this did not occur in the older milstones, but I do not know
the version number. I verified that this occures in DEV300_m37.
If there are the older builds, could you tell me the location?

SAL_USE_VCLPLUGIN is not set. The test machine is Solaris 10u4 and the defailt
desktop is used. When I set SAL_USE_VCLPLUGIN to"gen" or "gtk" or "kde",
UI fonts did not change.

$ xdpyinfo | fgrep resolution
  resolution:    90x90 dots per inch
Comment 14 yuko 2009-02-23 05:03:43 UTC
I verified that the UI fonts can be changed by Tools->Options->View->UIScaling,
so it would be a workaround.

Comment 15 Mechtilde 2009-02-23 11:57:28 UTC
I change the dependency of this Issue. I guess there is choosen the wrong field

Comment 16 Mechtilde 2009-02-23 11:57:54 UTC
.
Comment 17 hdu@apache.org 2009-02-23 16:12:32 UTC
And what does gconf-editor report for desktop->gnome->font_rendering->dpi?
Comment 18 yuko 2009-02-24 04:42:30 UTC
desktop->gnome->font_rendering->dpi is 96 dpi.
Comment 19 naoyuki 2009-02-24 07:54:08 UTC
Tools->Options->View->UIScaling actually scales UI font, but it also scales
other items which we do not change like default Calc cell size or start center's
message label. So I'm afraid it can be reasonable workaround for this issue.
Comment 20 naoyuki 2009-02-24 07:56:17 UTC
Sorry typo : 
So I'm afraid it can be reasonable workaround for this issue.
--->
So I'm afraid it can NOT be a reasonable workaround for this issue.
Comment 21 hdu@apache.org 2009-02-24 09:13:28 UTC
> [it] scales UI font, but it also scales other items which we do not change like default Calc cell size

Indeed, the UI changes with the UI-font size. Just compare the screenshots above of 3.0.x vs. pre-3.1 the 
dialogs and cell sizes in 3.0.x were bigger.

I cannot believe that SAL_USE_VCLPLUGIN doesn't make a difference. Can you please check again? 
Alternatively you could set the environment variable OOO_FORCE_DESKTOP to "none", "gnome" or "kde" 
before starting OOo.
Comment 22 naoyuki 2009-02-24 10:12:58 UTC
Created attachment 60432 [details]
OOo3.0 preferred image
Comment 23 naoyuki 2009-02-24 10:13:43 UTC
Created attachment 60433 [details]
DEV300m40 too small UI font image
Comment 24 naoyuki 2009-02-24 10:14:28 UTC
Created attachment 60434 [details]
DEV300m40 scale 120% UI image with bigger cell size
Comment 25 naoyuki 2009-02-24 10:24:18 UTC
Unfortunately, I also can not see the difference by env valialbe
SAL_USE_VCLPLUGIN (gen, gtk, kde) or OOO_FORCE_DESKTOP (none, gnome or kde) as
Yuko said.
And regarding cell size, please see additional attached images.

1. SS9_GOOD.png (OOo3.0 situation)
This has "good" UI font size and "good" Cell size. 
2. m40_default_BAD.png (DEV300m40 default)
This has "too small" UI font size and "good" Cell size.
3. m40_scale_BAD.png (DEV300m40 with 120% UIScale)
This has "good" UI font size and "too big" Cell size.

We want to have the same image with 1, but can not do it with UIScaling option
of m40.
Comment 26 hdu@apache.org 2009-02-26 16:08:00 UTC
One of the problems is identified now: on systems where gtk do not yet contain a pango_font_description_get_size_is_absolute() function the GTK-plugin defaulted to "fontsize-is-
absolute" instead of "fontsize-is-in-points".
Comment 27 hdu@apache.org 2009-02-26 16:21:40 UTC
*** Issue 99420 has been marked as a duplicate of this issue. ***
Comment 28 hdu@apache.org 2009-02-26 16:36:02 UTC
For the two platforms where this is reported please run
    fgrep pango_font_description_get_size_is_absolute /usr/lib*/libpango*
Either that symbol is not found or the GTK-libs link to an older version of pango that doesn't export it yet.

CWS ooo31gsl3 got the fix to handle old pangos where the symbol is missing.
Comment 29 hdu@apache.org 2009-02-27 06:43:13 UTC
@es: please verify in CWS
Comment 30 eric.savary 2009-03-02 08:54:01 UTC
@HDU: without jp install set, I can't verify this fix...
Comment 31 eric.savary 2009-03-02 08:55:05 UTC
Reassigned
Comment 32 hdu@apache.org 2009-03-02 09:21:10 UTC
@es: the same effect is also visible for all other languages on some systems. Probably since DEV300_m33. 
Just play with the gconf-editor setting for desktop->gnome->font_rendering->dpi
Comment 33 eric.savary 2009-03-02 09:54:50 UTC
Verified in CWS ooo31gsl3.

In the master, changing the font dpi has no effect on the UI font. In the CWS it
does.
Comment 34 yuko 2009-03-13 03:33:01 UTC
I verified that this was fixed in OOO310m5 on Solaris SPARC.
Comment 35 eric.savary 2009-03-17 14:46:40 UTC
Ok in OOO310m5
Comment 36 hdu@apache.org 2009-03-23 16:24:41 UTC
*** Issue 100478 has been marked as a duplicate of this issue. ***