diff options
Diffstat (limited to 'src/libs/libdriver/printer.cc')
-rw-r--r-- | src/libs/libdriver/printer.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/libs/libdriver/printer.cc b/src/libs/libdriver/printer.cc index 770aa507..f7c20384 100644 --- a/src/libs/libdriver/printer.cc +++ b/src/libs/libdriver/printer.cc @@ -1,5 +1,5 @@ // -*- C++ -*- -/* Copyright (C) 1989, 1990, 1991, 1992 Free Software Foundation, Inc. +/* Copyright (C) 1989, 1990, 1991, 1992, 2001 Free Software Foundation, Inc. Written by James Clark (jjc@jclark.com) This file is part of groff. @@ -192,6 +192,14 @@ void printer::set_numbered_char(int num, const environment *env, int *widthp) set_char(i, f, env, w, 0); } +font *printer::get_font_from_index(int fontno) +{ + if ((fontno >= 0) && (fontno < nfonts)) + return(font_table[fontno]); + else + return(0); +} + // This utility function adjusts the specified center of the // arc so that it is equidistant between the specified start // and end points. (p[0], p[1]) is a vector from the current |