Next Previous Up Top Contents Index

4.3 DUIM-DCs Module

merge-text-styles

Generic function

Summary

Merges two text styles and returns a new text style that is the same as the first, except that unspecified components in are filled in from the second.

Signature

merge-text-styles text-style default-style => text-style

Arguments

text-style
An instance of type <text-style>.

default-style
An instance of type <text-style>.

Values

text-style
An instance of type <text-style>.

Library

duim-dcs

Module

duim-dcs

Description

Merges the text styles text-style with default-style, that is, returns a new text style that is the same as text-style, except that unspecified components in style1 are filled in from default-style. For convenience, the two arguments may be also be style specs. Note that default-style must be a fully specified text style.

When merging the sizes of two text styles, if the size from the first style is a relative size, the resulting size is either the next smaller or next larger size than is specified by default-style. The ordering of sizes, from smallest to largest, is #"tiny", #"very-small", #"small", #"normal", #"large", #"very-large", and #"huge".

See also

default-background-setter, page 144.


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index