Font Mapping
\The Sandbox \PB History & Future \New In PB6 \Multiplatform Support \Font Mapping
Font Mapping
PowerBuilder
Units

Description

PowerBuilder lets you define how fonts are mapped in an initialization file. When PowerBuilder is first started, it reads and saves information about the available fonts on the system, then reads any font mapping specifications from initialization files and maps fonts as specified.

Purpose

When you build applications for multiple platforms, you have more control over how objects in your applications display for users.

Usage

Font mapping files are provided in the following locations:

Platform

Name

Location

Windows

PBFNT60x.INI

Powersoft SHARED directory

Macintosh

Powersoft Font Preferences

System Folder:Preferences

UNIX

.pbfnt60.ini

PowerBuilder install directory. The file should be copied to each user's home directory

The font mapping file has a [FontSubstitutes] section containing lines like the following (the default mappings are different on each platform):

    Times=Times New Roman

This line specifies that if the Times font is used in an application and is not available on the deployment machine, the Times New Roman font should be used instead. You can modify or add to the default mappings to meet your own needs.

On Windows, if a font is not available and you don't provide a mapping for it in PBFNT60.INI, Windows tries to find a font that matches the characteristics of the missing font.

On Macintosh and UNIX, the font mapping file supplements or overrides the existing mechanisms (an internal table on the Macintosh and the .WindU file on UNIX).

PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

Google
 
Web www.techno-kitten.com
www.sybase.com