Hi Takao, > Personally I'd like to see this kind of discussion on > desktop-discuss at opensolaris.org instead of the closed alias. Thanks for your suggestion! I'll FW further discuss to desktop-discuss at opensolaris.org. > > 0110.fonts is copied from /usr/dt/bin/Xsession . > If you like to load all XLFD fonts, the order will be very important > likes GTK1.x + pango. > Do you know where I can get a guide for the load order?
Regards, William > fujiwara > > Xue Wei-san wrote (06/18/09 11:51 PM): >> Hi All, >> >> Thanks for your discussed information! >> >> I did some test and let me summary questions and report for current >> status. >> >> What I want to do? >> Make Opensolaris could load locale specific X fonts. It will extend >> common fonts. >> >> >> Why do this? >> X applications still have been support in Opensolaris. They need X >> fonts(bitmap fonts) . >> >> For Ubuntu, the X11/bitmap fonts are put in /usr/share/fonts/X11. >> They do not >> support locale specific. These fonts will be load for all locales. >> >> Let's see benefit if we have this feature in Opensolaris: >> 1. User could customize more locale specific X fonts if they want. >> >> 2. Do not need load a specific fonts(such like Chinese fonts only >> for Chinese locale) >> for very locale. >> >> 3. Sun have many bitmap fonts which we bought, but they have been >> remove with /usr/openwin. >> (Most of them have been put under /usr/openwin/lib/locale/${locale}/...) >> Opensolaris closed net repository is building up. If it done, we >> could put these fonts for download. >> Then, they could be used by specific locale. It will do not need >> load a fonts for all locale. >> I believe this should be a new feature, and there is no doubt it >> would improve user experience >> on looking fonts feeling. >> >> (I guess Takao-San was also aware this issue, so he add >> xinitrc.d/0110.fonts on Nevada.) >> >> >> How to do it? >> There are tow optional script to add fonts path according locale: >> /etc/X11/gdm/Init/Default >> /etc/X11/xinit/xinitrc.d/0110.fonts >> >> I tested these two script for several login situation. From the result, >> I found the issue for each of above two script. >> >> /etc/X11/xinit/xinitrc.d/0110.fonts can not run in case : >> Choose failsafe terminal, when you login and launch xterm. xinitrc.d >> have not run. >> >> /etc/X11/gdm/Init/Default >can not run in case: If you user choose a >> new language, but do not restart greeter, login to desktop directly. >> >If you set a language which is not system default language as user >> default language. It could run, but get wrong >> locale value. for example: system default language is English >> (greeter display in English), but user set Chinese >> as user desktop default locale. When user start PC, the Init/Default >> will get system default locale English, but >> actually when user login to desktop, it is in Chinese locale. >> >> Suggest solution: >> > Create a X fonts path locale script like 0110.fonts, it could get >> locale and set locale specific X fonts path. >> > Create a evn variable in XFONT_LOCALE to record the specific locale. >> > Let Init/Default call set_fonts_path script, and set current >> locale to XFONT_LOCALE. >> > In xinit/xinitrc.d/0110.fonts, Check XFONT_LOCALE, if it is NULL, >> or not same with current >> locale value, cleanup current locale specific X fonts path. and >> re-set it according to current locale. >> >> >> Btw, gdm greeter is gtk app, it seems use truetype fonts which config >> by fontconfig. Set X locale specific fonts >> when greeter startup is for user who launch X terminal session. >> >> >> Could anyone please give any comment/question/suggestion? >> Thank you very much! >> >> Regards, >> William >> >> >> >> Alan Coopersmith ??: >>> Mike Oliver wrote: >>> >>>> Takao Fujiwara - Tokyo S/W Center wrote: >>>> >>>>> Updating Init file would be wrong as it's used in community. We have >>>>> xinitrc.d/0110.fonts >>>>> Your contact should be harry.fu at sun.com >>>>> >>>> If you need to set the font path that will be available to the greeter >>>> then Init is your only option. xinitrc.d/* scripts don't get executed >>>> until after the login has succeeded, and AFAIK the GDM greeter has no >>>> built-in support for locale-dependent font management. >>>> >>>> It's true that the Init/Default script in OpenSolaris (and in Solaris) >>>> is derived from the community version. That doesn't necessarily mean >>>> that we can't change it, but it would be a good idea to first check >>>> with Brian Cameron to see whether he knows of a better way to handle >>>> locale-related font issues and whether he is aware of any effort in >>>> the community to deal with this issue. >>>> >>>> It seems to me that this would be a problem that all distros must >>>> face, so if there's no existing solution I wouldn't be at all >>>> surprised if the community was willing (even eager) to accept a >>>> contribution from Sun to address the issue. >>>> >>> >>> Or they'd ask why we're still wasting time supporting Motif & Xaw apps, >>> (especially in the limited set of apps that can be run before the user >>> session starts), since GTK+ & Qt apps don't use the X font path, just >>> fontconfig. >>> >>> >> >> >