X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/75c8741afba2321add3ad52c5143b4fdb1d63e18..9a8edcd9aba1650f68d7aea373bab65322585337:/src/ftcrfont.c
diff --git a/src/ftcrfont.c b/src/ftcrfont.c
index fc4e6dae87..2676502705 100644
--- a/src/ftcrfont.c
+++ b/src/ftcrfont.c
@@ -1,12 +1,12 @@
/* ftcrfont.c -- FreeType font driver on cairo.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of GNU Emacs.
GNU Emacs 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.
+the Free Software Foundation, either version 3 of the License, or (at
+your option) any later version.
GNU Emacs is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -22,20 +22,15 @@ along with GNU Emacs. If not, see . */
#include
#include "lisp.h"
-#include "dispextern.h"
#include "xterm.h"
-#include "frame.h"
#include "blockinput.h"
-#include "character.h"
-#include "charset.h"
-#include "fontset.h"
#include "font.h"
#include "ftfont.h"
/* FTCR font driver. */
-/* The actual structure for ftcr font that can be casted to struct
- font. */
+/* The actual structure for FTCR font. A pointer to this structure
+ can be cast to struct font *. */
struct ftcrfont_info
{
@@ -70,19 +65,6 @@ enum metrics_status
#define METRICS_SET_STATUS(metrics, status) \
((metrics)->ascent = 0, (metrics)->descent = (status))
-/* Prototypes for helper function. */
-static int ftcrfont_glyph_extents (struct font *, unsigned,
- struct font_metrics *);
-
-/* Prototypes for font-driver methods. */
-static Lisp_Object ftcrfont_list (struct frame*, Lisp_Object);
-static Lisp_Object ftcrfont_match (struct frame*, Lisp_Object);
-static Lisp_Object ftcrfont_open (struct frame*, Lisp_Object, int);
-static void ftcrfont_close (struct font *);
-static void ftcrfont_text_extents (struct font *, unsigned *, int,
- struct font_metrics *);
-static int ftcrfont_draw (struct glyph_string *, int, int, int, int, bool);
-
struct font_driver ftcrfont_driver;
static int