Next Previous Up Top Contents Index

4.3 DUIM-DCs Module

make-text-style

Function

Summary

Returns an instance of <text-style>.

Signature

make-text-style family weight slant size #key underline? strikeout? => text-style

Arguments

family
An instance of type one-of(#"fix", #"serif", #"sans-serif", #f).

weight
An instance of type one-of(#"normal", #"condensed", #"thin", #"extra-light", #"light", #"medium", #"demibold", #"bold", #"extra-bold", #"black", #f).

slant
An instance of type one-of(#"roman", #"italic", #"oblique", #f).

size
An instance of <integer>, or an instance of type one-of(#"normal", #"tiny", #"very-small", #"small", #"large", #"very-large:", #"huge", #"smaller", #"larger", #f).

underline?
An instance of type <boolean>.

strikeout?
An instance of type <boolean>.

Values

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

Library

duim-dcs

Module

duim-dcs

Description

Returns an instance of <text-style>.

Text style objects have components for family, face, and size. Not all of these attributes need be supplied for a given text style object. Text styles can be merged in much the same way as pathnames are merged; unspecified components in the style object (that is, components that have #f in them) may be filled in by the components of a default style object. A text style object is called fully specified if none of its components is #f, and the size component is not a relative size (that is, neither #"smaller" nor #"larger").

If size is an integer, it represents the size of the font in printer's points.

Implementations are permitted to extend legal values for family, face, and size.

See also

$solid-pen, page 183.


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index