string->bitmap

Synopsis

(string->bitmap string)

Parameters

  • string

Description

A string containing characters is textually converted into a bitmap by applying a simple 8x16 font. There’s no processing of any control characters.

Side Effects

Return Value

The resulting bitmap is returned.

Example

> (define x (string->bitmap "Hello world!"))
x
> (bitmap-writepng x "string_to_bitmap_example.png")
ok
>

The resulting file string_to_bitmap_example.png displays as follows:

string_to_bitmap_example.png