Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fontswap_term0(3w)

,fontreplaceall(3w)

,basefont_term0(3w)

,altfont_term0(3w)

fontgetid_term0(3w)

FONTLOAD_TERM0(3W)

Series 300 and 500 Only

NAME

fontload_term0 − load a Term0 font

SYNOPSIS

int fontload_term0(fd,fontpath);
int fd;
char *fontpath;

DESCRIPTION

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

fontpath
a pointer to a path name for the font to be loaded.

DISCUSSION

This routine causes a font file to be loaded from the file system into Term0’s font cache.  This action prepares the font to be used by Term0 later, by means of the basefont_term0 or altfont_term0 routines or via escape code sequences.  The id of the newly loaded font is returned.  The values returned for id have no meaning as font manager parameters. 
 
It is possible to load the same font path name more than once, in which case fontload_term0 returns a unique id each time. 

HARDWARE DEPENDENCIES

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

SEE ALSO

fontswap_term0(3w),fontreplaceall(3w),basefont_term0(3w),altfont_term0(3w)
fontgetid_term0(3w).

DIAGNOSTICS

A return of -1 indicates and error; otherwise the font id is returned.  Errors include attempting to load when there is not enough space in the font cache, and attempting to load a font which is not the same cell size as the other font(s) currently in use.  See errno(2) for more information.
 

Hewlett-Packard Company  —  May 11, 2021

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