diff options
author | Owen Taylor <otaylor@redhat.com> | 2005-07-21 06:52:13 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@redhat.com> | 2005-07-21 06:52:13 +0000 |
commit | 075cf23cdc071b170e591fd07ff6c272d561d3ee (patch) | |
tree | 6a0700fc4c19c94d7bf9acc2c6be6dabe628d569 /src/cairo-xlib-private.h | |
parent | a43c9eb7b0b73493735ffa176154073604da33e6 (diff) | |
download | cairo-075cf23cdc071b170e591fd07ff6c272d561d3ee.tar.gz |
src/cairo-font-options.c src/cairo.h src/cairoint.h src/Makefile.am: Add an opaque cairo_font_options_t structure.
src/cairo-font.c src/cairo.h src/cairoint.h: Add a cairo_font_options_t object to cairo_scaled_font_create().
src/cairo-surface.c src/cairoint.h: Add virtualized cairo_surface_get_font_options() to get the font options for a surface.
Adapt to cairo_scaled_font_create() change.
Add an implementation of get_font_options() that turns off metrics hinting.
src/cairo-xlib-screen.c src/cairo-xlib-private.h: Add a "screen info" structure that holds (for now) information about the default font options for the screen.
Implement get_font_options()
src/cairo-ft-font.c src/cairo-ft.h: Add functions to apply a cairo_font_options_t to a FcPattern or get the load flags for a cairo_font_options_t.
Adapt to font options additions. Add support for non-antialiased rendering of scalable fonts. Add support for turning off metrics hinting.
Adapt to font options additions.
doc/public/Makefile.am doc/public/cairo-sections.txt: Update.
reviewed by: cworth
Diffstat (limited to 'src/cairo-xlib-private.h')
-rw-r--r-- | src/cairo-xlib-private.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/cairo-xlib-private.h b/src/cairo-xlib-private.h new file mode 100644 index 000000000..ad8af4338 --- /dev/null +++ b/src/cairo-xlib-private.h @@ -0,0 +1,54 @@ +/* Cairo - a vector graphics library with display and print output + * + * Copyright © 2005 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it either under the terms of the GNU Lesser General Public + * License version 2.1 as published by the Free Software Foundation + * (the "LGPL") or, at your option, under the terms of the Mozilla + * Public License Version 1.1 (the "MPL"). If you do not alter this + * notice, a recipient may use your version of this file under either + * the MPL or the LGPL. + * + * You should have received a copy of the LGPL along with this library + * in the file COPYING-LGPL-2.1; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * You should have received a copy of the MPL along with this library + * in the file COPYING-MPL-1.1 + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY + * OF ANY KIND, either express or implied. See the LGPL or the MPL for + * the specific language governing rights and limitations. + * + * The Original Code is the cairo graphics library. + * + * The Initial Developer of the Original Code is Red Hat, Inc. + */ + +#ifndef CAIRO_XLIB_PRIVATE_H +#define CAIRO_XLIB_PRIVATE_H + +#include "cairoint.h" +#include "cairo-xlib.h" + +typedef struct _cairo_xlib_screen_info cairo_xlib_screen_info_t; + +struct _cairo_xlib_screen_info { + cairo_xlib_screen_info_t *next; + + Display *display; + int screen; + cairo_bool_t has_render; + + cairo_font_options_t font_options; +}; + +cairo_private cairo_xlib_screen_info_t * +_cairo_xlib_screen_info_get (Display *display, int screen); + +#endif /* CAIRO_XLIB_PRIVATE_H */ |