diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-10-29 19:05:34 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-01-28 09:03:03 -0500 |
commit | 21b49362400f8b6b011e38e0e1058447300546c0 (patch) | |
tree | 10c3c3bad0ffaee601abbba9091b0929c4e56cfd /pango/pango-hbfamily-private.h | |
parent | 6dd34c914fc15b6a931b0ec494f8b8908d679475 (diff) | |
download | pango-21b49362400f8b6b011e38e0e1058447300546c0.tar.gz |
Add PangoHbFamily
This is a straightforward implementation of
PangoFontFamily for use with PangoHbFace.
Diffstat (limited to 'pango/pango-hbfamily-private.h')
-rw-r--r-- | pango/pango-hbfamily-private.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pango/pango-hbfamily-private.h b/pango/pango-hbfamily-private.h new file mode 100644 index 00000000..7b1dfa9a --- /dev/null +++ b/pango/pango-hbfamily-private.h @@ -0,0 +1,55 @@ +/* Pango + * + * Copyright (C) 2021 Matthias Clasen + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library 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 + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#pragma once + +#include "pango-font.h" +#include "pango-hbface.h" + +#define PANGO_TYPE_HB_FAMILY (pango_hb_family_get_type ()) + +PANGO_AVAILABLE_IN_1_52 +G_DECLARE_FINAL_TYPE (PangoHbFamily, pango_hb_family, PANGO, HB_FAMILY, PangoFontFamily) + +struct _PangoHbFamily +{ + PangoFontFamily parent_instance; + + PangoFontMap *map; + char *name; + GPtrArray *faces; +}; + +PANGO_AVAILABLE_IN_1_52 +PangoHbFamily * pango_hb_family_new (const char *name); + +void pango_hb_family_set_font_map (PangoHbFamily *self, + PangoFontMap *map); + +void pango_hb_family_add_face (PangoHbFamily *self, + PangoHbFace *face); + +void pango_hb_family_remove_face (PangoHbFamily *self, + PangoHbFace *face); + +PangoHbFace * pango_hb_family_find_face (PangoHbFamily *self, + PangoFontDescription *description, + PangoLanguage *language, + gunichar wc); |