1748227 Members
4498 Online
108759 Solutions
New Discussion

Font size and style

 
Yaroki
Super Advisor

Font size and style

Hello,

 

How can I know the current font size and style on HP-UX, B.11.11?

How can I set these parameters?

 

Thanks,

Yali

9 REPLIES 9
Dennis Handly
Acclaimed Contributor

Re: Font size and style

Are you using CDE?

Yaroki
Super Advisor

Re: Font size and style

Yes, I do.

Matti_Kurkela
Honored Contributor

Re: Font size and style

Any X11 display can show multiple font sizes and style simultaneously. The selection of the font and text size mostly depends on the application you're using. However, there are two default settings provided by CDE to all Motif-aware applications:

  • default system font, for window titles, buttons, labels and such
  • default user font, for textboxes and similar editable fields.

These are settable with the Style Manager, which can be found in the Front Panel of the CDE. It's the icon that has a picture of several things: the top-left corner of a CDE-style window, a mouse, an artist's color palette, and three letter 'T's, each in a different size.

 

If that is not what you're looking for, the question is no longer "simple". In some traditional X applications, you can change many things, including fonts, using X Resources.

 

You might want to read this (at least chapters 2 and 15):

http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V40F_HTML/SYSADMIN/TITLE.HTM

(It seems to be for Tru64, but apparently the HP-UX-specific version of this document cannot be found by Google. Anyway, CDE is not very different between HP-UX and Tru64.)

MK
Yaroki
Super Advisor

Re: Font size and style

Thank you for your reply!

 

I found the language definition on env:

 

# env | grerp -i lang

 

# lang = C

 

Then I "played" with the pre login CDE main screen and found that it can be set from there.

 

Option -> Language -> C to DK.iso885915@euro -> C

 

The next session will accept the change. but only till the next login...

 

Is there any administrative way to set such "env" parameters, Like file setting, permanently?

 

BR,

 

Yali

Dennis Handly
Acclaimed Contributor

Re: Font size and style (environ)

>Is there any way to set such "env" parameters permanently?

 

You can set your environment in your ~/.profile.

Yaroki
Super Advisor

Re: Font size and style

Where are the env parameters come from? (I mean when I type "env" and all the parameters display on the screen)

 

Dennis Handly
Acclaimed Contributor

Re: Font size and style (environ)

>Where are the env parameters come from?

 

They come from shell export commands, similar too:

export foo=bar

Yaroki
Super Advisor

Re: Font size and style

That means they don't appear at any configuration file?

As much as I understand these parameters red from the shell script when a terminal is opened.

If so, it can't be changed.

Can you please specify?

 

Dennis Handly
Acclaimed Contributor

Re: Font size and style (environ)

>That means they don't appear at any configuration file?

 

They can, if they are sourced by a script.

 

>As much as I understand these parameters read from the shell script when a terminal is opened.

 

From ~/.dtprofile, yes, that could do it.