From 6d11bfa4b9bdeea1dc87100cdd49b6209b5246e1 Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 14 Jul 2006 06:56:25 +0000 Subject: [PATCH] (struct MRealizedFont): New member encapsulating. (struct MFontDriver): New members encapsulate and close. --- src/font.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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. */ -- 1.7.10.4