在本页中:
with-size
with-scale
big
small
with-font
with-style
bold
italic
subscript
superscript
caps
blank-line
7.0.0.18

2.7 Text Formatting Helpers

 (require slideshow/text) package: slideshow-lib

This module provides conveniences functions for formatting text.

语法

(with-size size expr)

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

添加于package slideshow-lib的1.2版本。

语法

(with-scale scale expr)

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

添加于package slideshow-lib的1.2版本。

语法

(big text)

语法

(small text)

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

添加于package slideshow-lib的1.2版本。

语法

(with-font font expr)

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

添加于package slideshow-lib的1.2版本。

语法

(with-style style expr)

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

添加于package slideshow-lib的1.2版本。

语法

(bold text)

语法

(italic text)

语法

(subscript text)

语法

(superscript text)

语法

(caps text)

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

添加于package slideshow-lib的1.2版本。

函数

(blank-line)  pict?

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

添加于package slideshow-lib的1.2版本。