All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

create-dummy-graphics-port Function

Summary

Creates a graphics port object that can be used for querying fonts and measuring text or images.

Package

capi

Signature

create-dummy-graphics-port &optional screen => graphics-port

Arguments
screen
A value suitable as the argument to convert-to-screen.
Values
graphics-port
A graphics port.
Description

The function create-dummy-graphics-port creates a graphics port object that can be used for font queries, measuring text and images.

graphics-port is a graphics port object associated with screen. graphics-port is never visible on the screen, but can be used to query fonts, measure text and load images to obtain their width and height. Drawing functions are not supported.

See also

convert-to-screen


CAPI User Guide and Reference Manual (Windows version) - 01 Dec 2021 19:33:57