egd_font (egd v0.11.0)

View Source

egd_font

Summary

Functions

Returns glyph rendering data for a character code, or undefined.

Loads a serialized EGD font from a file and returns its font handle.

Loads a serialized EGD font binary and returns its font handle.

Returns the width and height of a loaded font in pixels.

Functions

glyph(Font, Code)

Returns glyph rendering data for a character code, or undefined.

The returned data is used internally by egd:text/5.

load(Filename)

Loads a serialized EGD font from a file and returns its font handle.

load_binary(Bin)

Loads a serialized EGD font binary and returns its font handle.

size(Font)

Returns the width and height of a loaded font in pixels.