Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Changing fonts with the style manager

8 views
Skip to first unread message

Charles Lindsey

unread,
Jul 19, 2007, 4:05:23 PM7/19/07
to
I use the CDE style manager to change the size of the fonts used by
default in windows.

It brings up a nice window, which shows that I am using the Default Font
Group, with size medium. So I change that to size small and click OK. And
indeed the next application I start come up with smaller fonts (and hence
with smaller windows).

That is fine, but the next time I start XSun (i.e. the next time I log
in), it has forgotten all about my new setting, and has gone back to size
medium.

When I pressed that OK, it seems that nothing whatsoever in my '.dt'
directory was changed (and indeed truss shows that the style manager has
never even opened anything in my '.dt' directory that looks in the least
relevant, so how did it even know that the previous size was medium?) And
what is the point of having a Style Manager if it will not manage styles?

I have looked all over the place, and cannot find anywhere where that
information is supposed to be stored (presumably as some resource). I have
a directory .dt/stdfonts/en_GB, but there is nothing in it.

Help!

--
Charles H. Lindsey ---------At Home, doing my own thing------------------------
Tel: +44 161 436 6131 Fax: +44 161 436 6133 Web: http://www.cs.man.ac.uk/~chl
Email: c...@clerew.man.ac.uk Snail: 5 Clerewood Ave, CHEADLE, SK8 3JU, U.K.
PGP: 2C15F1A9 Fingerprint: 73 6D C2 51 93 A0 01 E7 65 E8 64 7E 14 A4 AB A5

Andrew ``Bass'' Shcheglov1164362415

unread,
Jul 19, 2007, 10:23:57 PM7/19/07
to
Charles Lindsey wrote:
> I use the CDE style manager to change the size of the fonts used by
> default in windows.
>
> It brings up a nice window, which shows that I am using the Default Font
> Group, with size medium. So I change that to size small and click OK. And
> indeed the next application I start come up with smaller fonts (and hence
> with smaller windows).
>
> That is fine, but the next time I start XSun (i.e. the next time I log
> in), it has forgotten all about my new setting, and has gone back to size
> medium.
>
> When I pressed that OK, it seems that nothing whatsoever in my '.dt'
> directory was changed (and indeed truss shows that the style manager has
> never even opened anything in my '.dt' directory that looks in the least
> relevant, so how did it even know that the previous size was medium?) And
> what is the point of having a Style Manager if it will not manage styles?
>
> I have looked all over the place, and cannot find anywhere where that
> information is supposed to be stored (presumably as some resource). I have
> a directory .dt/stdfonts/en_GB, but there is nothing in it.
>
> Help!
>

Hi!

1. I don't currently have a box with CDE handy,
so this is just a guess.

Maybe DtStyle doesn't modify any of your client-side settings, but
rather a couple of server-side X resources (just like xrdb(1) does). If
so, this is of course an odd behaviour, but can be worked around by
modifying your client-side X resources file and/or setting XAPPLRESDIR
env. variable.


2. This one is more realistic. If you're under Solaris, try to use a
'truss' utility to trace system calls DtStyle makes. Together with grep,
this can show you which files in your home directory it tries to access
and where fails doing so.


3. Back up your ~/.dt directory, log out of CDE and then back in, and
check whether the issue is present in case of a clean CDE configuration.


Good luck.

--
Andrew ``Bass'' Shcheglov
http://www.2ka.mipt.ru/~bass/
http://www.softlogic.ru/

Charles Lindsey

unread,
Jul 20, 2007, 12:39:58 PM7/20/07
to
In <f7p6bu$h7e$1...@news.rtcomm.ru> Andrew ``Bass'' Shcheglov1164362415 <andrew.s...@softlogic.ru> writes:

>Charles Lindsey wrote:
>> I use the CDE style manager to change the size of the fonts used by
>> default in windows.
>>
>> It brings up a nice window, which shows that I am using the Default Font
>> Group, with size medium. So I change that to size small and click OK. And
>> indeed the next application I start come up with smaller fonts (and hence
>> with smaller windows).
>>
>> That is fine, but the next time I start XSun (i.e. the next time I log
>> in), it has forgotten all about my new setting, and has gone back to size
>> medium.
>>
>> When I pressed that OK, it seems that nothing whatsoever in my '.dt'
>> directory was changed (and indeed truss shows that the style manager has
>> never even opened anything in my '.dt' directory that looks in the least
>> relevant, so how did it even know that the previous size was medium?) And
>> what is the point of having a Style Manager if it will not manage styles?

>> Help!
>>

>2. This one is more realistic. If you're under Solaris, try to use a
>'truss' utility to trace system calls DtStyle makes. Together with grep,
>this can show you which files in your home directory it tries to access
>and where fails doing so.

Already did that. It doesn't inspect anything interesting in .dt, and it
changes nothing in .dt.

However, I think I have now cracked it (well, I cracked it on my old
Solaris 7 machine, so this one should be the same).

It seems you have to save your Home Session after you have made the
change. Then it puts it all in .dt/sessions/home/dt.resources, and it also
creates a brand new directory .dt/sessions/home.font.

But it is still not clear where it got its setting from before that,
because there is no trace of the old setup in the old dt.resources, and I
cannont find any resources looking remotely like these anywhere under
/ust/dt :-( .

0 new messages