|
Packit |
ff063f |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
|
|
Packit |
ff063f |
/*
|
|
Packit |
ff063f |
* ezfc-font-private.h
|
|
Packit |
ff063f |
* Copyright (C) 2011-2013 Akira TAGOH
|
|
Packit |
ff063f |
*
|
|
Packit |
ff063f |
* Authors:
|
|
Packit |
ff063f |
* Akira TAGOH <akira@tagoh.org>
|
|
Packit |
ff063f |
*
|
|
Packit |
ff063f |
* This library is free software: you can redistribute it and/or
|
|
Packit |
ff063f |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
ff063f |
* License as published by the Free Software Foundation, either
|
|
Packit |
ff063f |
* version 3 of the License, or (at your option) any later version.
|
|
Packit |
ff063f |
*
|
|
Packit |
ff063f |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
ff063f |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
ff063f |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
ff063f |
* GNU General Public License for more details.
|
|
Packit |
ff063f |
*
|
|
Packit |
ff063f |
* You should have received a copy of the GNU General Public License
|
|
Packit |
ff063f |
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
ff063f |
*/
|
|
Packit |
ff063f |
#ifndef __EZFC_FONT_PRIVATE_H__
|
|
Packit |
ff063f |
#define __EZFC_FONT_PRIVATE_H__
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
#include <glib.h>
|
|
Packit |
ff063f |
#include "ezfc-mem.h"
|
|
Packit |
ff063f |
#include <fontconfig/fontconfig.h>
|
|
Packit |
ff063f |
#include "ezfc-font.h"
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
G_BEGIN_DECLS
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
typedef struct _ezfc_font_private_t {
|
|
Packit |
ff063f |
ezfc_mem_t parent;
|
|
Packit |
ff063f |
FcPattern *pattern;
|
|
Packit |
ff063f |
gboolean check_font_existence;
|
|
Packit |
ff063f |
gint masks;
|
|
Packit |
ff063f |
gint rgba;
|
|
Packit |
ff063f |
ezfc_font_hintstyle_t hintstyle;
|
|
Packit |
ff063f |
gboolean hinting;
|
|
Packit |
ff063f |
gboolean autohinting;
|
|
Packit |
ff063f |
gboolean antialiasing;
|
|
Packit |
ff063f |
gboolean embedded_bitmap;
|
|
Packit |
ff063f |
} ezfc_font_private_t;
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
typedef enum _ezfc_font_mask_t {
|
|
Packit |
ff063f |
EZFC_FONT_MASK_HINTING = 1 << 0,
|
|
Packit |
ff063f |
EZFC_FONT_MASK_AUTOHINT = 1 << 1,
|
|
Packit |
ff063f |
EZFC_FONT_MASK_ANTIALIAS = 1 << 2,
|
|
Packit |
ff063f |
EZFC_FONT_MASK_EMBEDDED_BITMAP = 1 << 3,
|
|
Packit |
ff063f |
EZFC_FONT_MASK_RGBA = 1 << 4,
|
|
Packit |
ff063f |
EZFC_FONT_MASK_HINTSTYLE = 1 << 5,
|
|
Packit |
ff063f |
EZFC_FONT_MASK_END
|
|
Packit |
ff063f |
} ezfc_font_mask_t;
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
void ezfc_font_init (ezfc_font_t *font);
|
|
Packit |
ff063f |
gint ezfc_font_get_boolean_masks(ezfc_font_t *font);
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
G_END_DECLS
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
#endif /* __EZFC_FONT_PRIVATE_H__ */
|