Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fontswap_term0(3W)

,fontload_term0(3W)

FONTREPLACEALL_TERM0(3W)

NAME

fontreplaceall_term0 − replace the current base font and alternate font

SYNOPSIS

int fontreplaceall_term0(fd,bfpath,afpath);
int fd;
char *bfpath,*afpath;

DESCRIPTION

fd is an integer file descriptor for an opened Term0 window type device interface. 

bfpath
path name to the new base font.

afpath
path name to the new alternate font, or NULL.

DISCUSSION

This routine causes all of the fonts currently being used to be removed and replaced by the specified base font and alternate font.  If the alternate font pathname parameter is not supplied, the font designated by bfpath is used for both the base font and the alternate font.  HP-15 (2-byte) fonts are not allowed to be alternate fonts.  If afpath is a HP-15 font or if afpath is set to NULL and bfpath is a HP-15 font, an error will be returned and no fonts will have changed. 

All characters printed in the old alternate font are changed to use the new alternate font, named afpath.  Then all other characters are changed to use the new base font, named bfpath.  The screen is repainted, using the new font or fonts. 

HARDWARE DEPENDENCIES

Series 500:
Term0 routines do not support HP-15 (2-byte) fonts on Series 500.

SEE ALSO

fontswap_term0(3W),fontload_term0(3W). 

DIAGNOSTICS

A return of -1 indicates failure, see errno(2) for further information.  Otherwise, 0 is returned. It is an error for bfpath to be NULL.  See errno(2) for more information.

Hewlett-Packard Company  —  May 11, 2021

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026