[screen]
The [screen] section of the initialization file defines the fonts used in the GUI user interface and additional settings for screen display.
[screen]
{Setting {=
} Value}
LogicalFont {=
} TypeFace,
{CharacterSet,
} FontSize,
FontStyles
Settings
Logical Fonts
- LogicalFont—name of a font
definition. The following logical names are reserved by Uniface, but you can also define your own:
ButtonFont
buttons
combo
debug
DiagramFont
font0
—system font definition.EditFont
FormText
GFP
IDEOutputBox
IDFButtonText
IDFButtonTextLarge
IDFCategories
Label
ListFont
messagefont
ProcboxFont
- TypeFace—type face of a
font that is available on the system; for example,
Courier New
orArial
. The TypeFace definition is sensitive to spaces. - CharacterSet—optional
character set, for example,
Western
,Symbol
, orCyrllic
. If not specified, the installed character set is used. The CharacterSet definition is sensitive to spaces. - FontSize—point size of the
font; for example,
10
- FontStyles—one or more of
the following styles, separated by spaces:
regular
bold
italic
underline
The
bold
,italic
, andunderline
styles take precedence overregular
. Thus, if bothbold
andregular
are listed in the definition,bold
is used in the representation.
Description
There are separate sections for screen and printer fonts, because a font that is suitable for the screen can print very slowly if it does not match exactly with a built-in printer font. By default, Uniface uses the same logical fonts for displaying and printing. However, these logical fonts are mapped to different physical fonts.
If you want true WYSIWYG (what you see is what you get), you should make font definition in both sections identical.
Changing Font Definitions
Changing the physical font or font size can result
in unattractive form layouts that are too small for the data. This can occur if you change the
font0
definition, or if you specify large font sizes.
The font0
definition is used to
display the Font 0 meta character set and it determines the size of character cells in form and
report layouts, menus, buttons, and panels. Changing the font0
definition can
result in form layouts that do not fit the designed layout. For example, if you change the font
size there may not be enough space available on the form to accommodate the larger character cells.
Specifying very large fonts can also produce
unattractive results because all characters are positioned and clipped in a fixed-size grid
determined by the character cell, as defined by font0
.
Font Definitions
- Multiple font styles:
Label=Arial,Western,8,bold italic
- No character set specified:
SerifMedium=Times New Roman,10,regular
- Example Western Font:
font0=Courier New,Western,9,regular
- Example Unicode font:
UnicodeFont=Arial Unicode MS,Western,10,regular
- Example Barcode font
BarcodeFont=Code 2 of 5 interleaved,Symbol,24,regular