From 38e1c0bb1616809399b2722ec92871366d3e4c0a Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 2 Dec 2005 04:34:14 +0000 Subject: [PATCH] (struct MFontDriver): New member check_capability. (MFontCapability): Delete ifdef HAVE_OTF. (mfont__check_capability): Extern it. --- src/font.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/font.h b/src/font.h index e47d91f..985aedd 100644 --- a/src/font.h +++ b/src/font.h @@ -209,6 +209,9 @@ struct MFontDriver 0 limits the number of listed fonts. Return the number of fonts listed. */ int (*list) (MFrame *frame, MPlist *plist, MFont *font, int maxnum); + + /** Check if RFONT support CAPABILITY. */ + int (*check_capability) (MRealizedFont *rfont, MSymbol capability); }; /** Initialize the members of FONT. */ @@ -250,14 +253,12 @@ typedef struct MSymbol *lang; MSymbol script; OTF_Tag script_tag; -#ifdef HAVE_OTF OTF_Tag langsys_tag; struct { char *str; int nfeatures; OTF_Tag *tags; } features[MFONT_OTT_MAX]; -#endif } MFontCapability; extern MFontDriver mfont__ft_driver; @@ -320,6 +321,8 @@ extern MPlist *mfont__encoding_list (void); extern MFontCapability *mfont__get_capability (MSymbol sym); +extern int mfont__check_capability (MRealizedFont *rfont, MSymbol capability); + extern unsigned mfont__flt_encode_char (MSymbol layouter_name, int c); extern int mfont__flt_run (MGlyphString *gstring, int from, int to, -- 1.7.10.4