From: handa Date: Fri, 2 Dec 2005 04:34:14 +0000 (+0000) Subject: (struct MFontDriver): New member check_capability. X-Git-Tag: REL-1-3-0~49 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38e1c0bb1616809399b2722ec92871366d3e4c0a;p=m17n%2Fm17n-lib.git (struct MFontDriver): New member check_capability. (MFontCapability): Delete ifdef HAVE_OTF. (mfont__check_capability): Extern it. --- 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,