On this page:
with-size
with-scale
big
small
with-font
with-style
bold
italic
subscript
superscript
caps
blank-line
6.2.900.17

2.7 Text Formatting Helpers

 (require slideshow/text) package: slideshow-lib

This module provides conveniences functions for formatting text.

syntax

(with-size size expr)

Sets current-font-size to size while running expr.

syntax

(with-scale scale expr)

Multiplies current-font-size by scale while running expr.

syntax

(big text)

syntax

(small text)

Scale current-font-size by 3/2 or 2/3, respectively, while running text.

syntax

(with-font font expr)

Sets current-main-font to font while running expr.

syntax

(with-style style expr)

Adds style to current-main-font (via cons) while running expr.

syntax

(bold text)

syntax

(italic text)

syntax

(subscript text)

syntax

(superscript text)

syntax

(caps text)

Adds the attributes for bold, italic, superscript, subscript, or small caps text, respectively, to current-main-font while running text.

procedure

(blank-line)  pict?

Adds a blank line of the current font size’s height.