From: handa Date: Fri, 14 Jul 2006 06:56:25 +0000 (+0000) Subject: (struct MRealizedFont): New member encapsulating. X-Git-Tag: REL-1-3-4~119 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d11bfa4b9bdeea1dc87100cdd49b6209b5246e1;p=m17n%2Fm17n-lib.git (struct MRealizedFont): New member encapsulating. (struct MFontDriver): New members encapsulate and close. --- diff --git a/src/font.h b/src/font.h index 19cbade..0c5747a 100644 --- a/src/font.h +++ b/src/font.h @@ -148,6 +148,9 @@ struct MRealizedFont carry the infomation. */ MSymbol layouter; + /* 1 iff the font is opend by encapsulating client-side font data. */ + int encapsulating; + /* Extra information set by MRealizedFont::driver->open. If non-NULL, it must be a pointer to a managed object. */ void *info; @@ -215,6 +218,11 @@ struct MFontDriver /** Check if RFONT support CAPABILITY. */ int (*check_capability) (MRealizedFont *rfont, MSymbol capability); + + /** Open a font by encapsulating DATA. */ + MRealizedFont *(*encapsulate) (MFrame *frame, MSymbol source, void *data); + + void (*close) (MRealizedFont *rfont); }; /** Initialize the members of FONT. */