/*- * Copyright (c) 1985, 1993 * The Regents of the University of California. All rights reserved. * * This module is believed to contain source code proprietary to AT&T. * Use and redistribution is subject to the Berkeley Software License * Agreement and your Software Agreement with AT&T (Western Electric). */ #ifndef lint static char sccsid[] = "@(#)linemod.c 8.1 (Berkeley) 6/4/93"; #endif /* not lint */ #include "imp.h" /* * Hack to set font. */ linemod(s) char *s; { register char *tit; register char *nam; int siz = 0; nam = s; for(tit = "charset="; *tit; ) if (*tit++ != *nam++) return; s = nam; while(*nam) switch(*nam++) { case ',': case '\n': *--nam = 0; } siz = atoi(++nam); if (siz == 0) { while (*--nam >= '0' && *nam <= '9') ; siz = (atoi(++nam)*4)/3; } if (siz == 0) siz = imPcsize; setfont(s, siz); }