- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: JAVA: Font size and font shown differently in ...
Operating System - HP-UX
1754253
Members
3447
Online
108812
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
06-16-2004 03:35 AM
06-16-2004 03:35 AM
JAVA: Font size and font shown differently in HP UX OS versions
Hi,
I have a java application (Java Client) is running on two servers. The java client has a GUI to input some test parameters.
Regarding Servers :
Both setvers are HP Unix servers with the following OS versions.
1) HP-UX B.11.00 A 9000/800 , java version "HP-UX Java C.01.17.00 99/02/08"
2) HP-UX B.10.20 A 9000/777, java version "1.3.1.02"
Problem with font size display :
When our application is launched on these two servers the GUI is showing differently.
We can see there are differences in the font size and also on the font type for text displayed on the GUI.
Also the buttons look different.
I read that AWT uses OS specific code to display AWT components and so is that the reason why the fonts are shown differently?
Could you please explain why the font size problem appearing and why is application taking a different font from the one which is specified in the java code for
the window , Font used is "Helvetica" with font size 10 and 14. (Please see the code snippet for the font from our code)
--->>
if (Toolkit.getDefaultToolkit().getFontMetrics
(new Font("Helvetica", 0, 14)).getHeight() > 17)
{
setAllFonts(10);
}
else
{
setAllFonts(14);
}
}
<<---
Request your comments on this behaviour.
Thanks in advance
Kripal
I have a java application (Java Client) is running on two servers. The java client has a GUI to input some test parameters.
Regarding Servers :
Both setvers are HP Unix servers with the following OS versions.
1) HP-UX B.11.00 A 9000/800 , java version "HP-UX Java C.01.17.00 99/02/08"
2) HP-UX B.10.20 A 9000/777, java version "1.3.1.02"
Problem with font size display :
When our application is launched on these two servers the GUI is showing differently.
We can see there are differences in the font size and also on the font type for text displayed on the GUI.
Also the buttons look different.
I read that AWT uses OS specific code to display AWT components and so is that the reason why the fonts are shown differently?
Could you please explain why the font size problem appearing and why is application taking a different font from the one which is specified in the java code for
the window , Font used is "Helvetica" with font size 10 and 14. (Please see the code snippet for the font from our code)
--->>
if (Toolkit.getDefaultToolkit().getFontMetrics
(new Font("Helvetica", 0, 14)).getHeight() > 17)
{
setAllFonts(10);
}
else
{
setAllFonts(14);
}
}
<<---
Request your comments on this behaviour.
Thanks in advance
Kripal
- Tags:
- Java
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 03:41 AM
06-16-2004 03:41 AM
Re: JAVA: Font size and font shown differently in HP UX OS versions
You may wish to update that 11.00 server to a more current version of java.
If both machines are on the same version there can be an expectation of similar behavior.
SEP
If both machines are on the same version there can be an expectation of similar behavior.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP