HyperView User's Guide

Using Scalable Fonts under Linux to Render Text

Using Scalable Fonts under Linux to Render Text

Previous topic Next topic Expand/collapse all hidden text  

Using Scalable Fonts under Linux to Render Text

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

HyperView uses scalable fonts for Linux to render text in the 3D window.

To use scalable fonts, they must be installed and properly configured under X Windows.  The X Window server must also be configured for the correct display resolution - dots per inch (dpi) - to render fonts at the correct size.

Installing and Configuring Scalable Fonts

It’s important that the correct fonts are installed for your operating system.  Issue the command xlsfonts | grep 0-0 | grep iso8859-1 to list the fonts.  By default, HyperView uses Helvetica and Times.  Under RHEL6 and RHEL 5, the fonts list should include b&h luxi sans, b&h luxi serif as well as several other typeface families.  On SuSE 11, the font list should include b&h luxi sans, b&h luxi serif, bitstream vera sans, and bitstream vera serif.

How do I....

hmtoggle_plus1Configure missing scalable fonts on Linux for SuSE 11:
1.Verify that XFree86-fonts-scalable and xfs are installed.
2.Use chkconfig as the root user to ensure xfs is configured to run under run level 5.
3.You may have to add the following under the Files section of /etc/X11/XF86Config:

FontPath "unix/:7100".

hmtoggle_plus1Configure missing scalable fonts on Linux for RHEL6 and RHEL 5:
1.Verify that the following packages are installed:

fonts-xorg-100dpi

fonts-xorg-base

urw-fonts

bitstream-vera-fonts

fonts-xorg-75dpi

xorg-x11-xfs

2.Use chkconfig as the root user to verify that xfs is configured to run under run level 5.
3.You may have to add the following under the Files section of /etc/X11/xorg.conf:

FontPath "unix/:7100"

hmtoggle_plus1Verify that the X Window server is properly configured for the correct display DPI setting:
1.Run the command xdpyinfo and examine the section starting with "screen #0".  It should look like this:

screen #0:

 dimensions:    1280x1024 pixels (361x271 millimeters)

 resolution:    90x96 dots per inch

If the reported resolution is 75x75 dpi, it's likely the X server and video driver cannot determine the physical dimensions of the monitor in order to calculate the resolution.  This can happen when the video driver fails to obtain EDID information from the connected display.  It can also happen if the computer is connected to a KVM switch, or when Nvidia TwinView is being used.  In these instances, you should calculate the vertical DPI manually, using the number of pixels wide divided by the display width (in inches).  96 dpi is typical on a 19" monitor with a resolution set to 1280x1024.  100 dpi is typical for a 21" monitor with a resolution set to 1600x1200.

hmtoggle_plus1Manually set the display resolution on Linux systems with NVidia drivers:
1.As the root user, edit /etc/X11/xorg.conf or XF86Config.
2.Under the Device section, add the following lines:

Option "UseEdidDpi" "false"

Option "DPI" "96x96"

hmtoggle_plus1Manually set the display resolution on Linux systems with ATI FireGL drivers:
1.For RHEL with Gnome and the gdm display manager:

Edit /etc/gdm/custom.conf and add a section that reads:

[server-Standard]

name=Standard server

flexible=true

command=/usr/bin/Xorg :0 -br -dpi 96

2.For RHEL 6:

The gdm configuration appears to currently be broken in terms of accepting custom parameters for the X server.  You can install kdm, and specify that kdm be the default login display manager by editing /etc/sysconfig/ desktop to read: DISPLAYMANAGER="KDE".

Edit /etc/kde/kdm/kdmrc and append "-dpi 96" to the line beginning with "ServerArgsLocal" so that it reads:

ServerArgsLocal= -nr -dpi 96

5.For SuSE 11 with KDE:

Edit /etc/sysconfig/displaymanager and append "-dpi 96" to the line beginning with "DISPLAY_MANAGER_KDM_LOCALARGC=" so that it reads:

DISPLAY_MANAGER_KDM_LOCALARGC="-dpi 96"