- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem with Font...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2001 02:26 AM
02-27-2001 02:26 AM
Problem with Font...
I made a C-program on my HP-UX, in this program i print some special character on the screen and all is ok. But when i send the program to my client the special character was not the same on its own screen.
So i think it is a problem of Font.
But i don t know how to see the font i use and how i can modify it.
Moreover, how can i see the content of a font to get the correspondance between the character i want to display and its ascii code
in my client font.
Thanks to help me.
Jerome GIL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2001 03:22 AM
02-27-2001 03:22 AM
Re: Problem with Font...
This is a 'character-only' program? And the character you are trying to print has ascii value over 127? (ie special character)
Then the cause will probably be a difference in terminal settings.
Do 'stty -a' where it works and where it doesn't work, and locate the differences. I bet the one is in 7bit mode while the other is in 8bit mode.
To rectify the problem, modify the profiles (or do the settings from within your program using ioctl(2) -- see also termio(7)).
Hope this helps,
Rik.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2001 04:10 AM
02-27-2001 04:10 AM
Re: Problem with Font...
I made stty -a on the two machin and it is exactly the same result.
All the characters before 127 are the same, but those after are different.
But strange thing: when i use my printer to print the file in whitch i wrote the characters, the are the same than the other machin. So my printer have the same font than the machin of my client.
What to do now?
Thanks
Jerome GIL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2001 04:46 AM
02-27-2001 04:46 AM
Re: Problem with Font...
You did seem to be right about the font used. There is for instance a difference when using a hp-roman8 font and a iso8859-1 font.
You can use xfd to show all printable characters of a font.
How to determine what font is being used?
You can use xrdb -query to query the X resource database. Check for resources for the terminal you are using (xterm/dtterm/hpterm/...) and check the font string specified there. Then, do
xlsfonts -fn '-the-font-you-found-*-*-...'
This should give you alist of fonts. Is this the same on both locations? Especially the first one is improtant, since that is the one that will be server first when a font is requested.
If there is a difference, check the fontserver configuration. Is the fontserver being used? Maybe some font directories are not present on the file system or not present in the xfs configuration file or in a different order.
Hope this helps,
Rik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2001 02:22 AM
02-28-2001 02:22 AM
Re: Problem with Font...
I type xrdb -query, on the two machins and i saw that my machin is on iso88591
and the other on hp-roman8.
I try to do xlsfonts -fn 'hp-roman8-*-*-*'
but it says that it doesn t match....
so now i am lookink to set my machin on hp-roman8
But i don t know which file i had to modify to set it.
Because i am loosing myself in all the file...
Thanks ...
Jerome GIL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2001 02:48 AM
02-28-2001 02:48 AM
Re: Problem with Font...
compare the font paths .... any difference ?
i'd be looking at what comes at the font path head .... if you are after roman8 fonts make sure /usr/lib/X11/fonts/hp_roman8 is listed before any iso fonts see man xset on the syntax.
Also try using hpterm*roman8 resource see man hpterm ....any improvement ?
Also worth checking is : what the locale is set to .... avoid setting it to an iso locale for the moment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2001 05:40 AM
02-28-2001 05:40 AM
Re: Problem with Font...
I try xset -q on the two machins,
and the /usr/lib/x11/fonts/hp_roman8 path is in thirst in the two machins.
I try to do hpterm -fn 'hp_roman8' but i doesn t work
I see if it work because in iso88591 the 189 char is ? and in hp_roman8 it is "1/2"
but where is the file in which i choose the font of my HP
HELP