summaryrefslogtreecommitdiff
path: root/include/font.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/font.h')
-rw-r--r--include/font.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/include/font.h b/include/font.h
index 5355177..3008000 100644
--- a/include/font.h
+++ b/include/font.h
@@ -1,20 +1,21 @@
-/* font.h: operations on fonts independent of a particular file format.
+# font.h: operations on fonts independent of a particular file format.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef FONT_LIBRARY_H
#define FONT_LIBRARY_H
@@ -25,7 +26,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "types.h"
-
/* A font is a collection of characters, generally at a particular point
size and resolution. The `bitmap_font_type' structure holds
information that comes entirely from a bitmap file. */
@@ -62,7 +62,7 @@ typedef struct
extern bitmap_font_type get_bitmap_font (string font_name, unsigned dpi);
/* `close_font', below, works for bitmap fonts, too. */
-
+
/* The `font_info_type' holds a `bitmap_font_type', and additional
information that we get from a font metric file. */
typedef struct
@@ -100,7 +100,7 @@ extern font_info_type get_font (string font_name, unsigned dpi);
/* Close any open files associated with FONT_NAME, whether it was opened
with `get_bitmap_font' or `get_font'. */
extern void close_font (string font_name);
-
+
/* A character is a bitmap image, and is therefore at a particular size
and resolution. It is also at a particular position in a font.
Generally, characters also have `side bearings'---extra space at the
@@ -182,7 +182,7 @@ extern void print_char (FILE *f, char_info_type c);
/* Typeset the TEXT in the font FONT_NAME, at a resolution of DPI. */
extern bitmap_type string_to_bitmap (string text,
string font_name, unsigned dpi);
-
+
/* A raw character is the byte string that defines the character in the
font file, in some format. */
@@ -229,7 +229,7 @@ extern raw_char_type *get_raw_char (string font_name,
/* Free all allocated storage in the raw character RAW_CHAR, including
the character itself. */
extern void free_raw_char (raw_char_type *raw_char);
-
+
/* Miscellanous constants. */
/* We will only deal with fonts that have at most this many characters,