Mercurial > emacs
changeset 100791:1dc21862170d
(struct font_driver): New member get_variation_glyphs.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 30 Dec 2008 23:36:56 +0000 |
parents | 87e10f023c3d |
children | e829a2083df5 |
files | src/font.h |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/font.h Tue Dec 30 23:34:54 2008 +0000 +++ b/src/font.h Tue Dec 30 23:36:56 2008 +0000 @@ -653,8 +653,18 @@ /* Optional. If FONT is usable on frame F, return 0. Otherwise return -1. - */ + This method is used only for debugging. If this method is NULL, + Emacs assumes that the font is usable on any frame. */ int (*check) P_ ((FRAME_PTR F, struct font *font)); + + /* Optional. + + Return the number of variation glyphs of character C supported by + FONT. VARIATIONS is an array of 256 elements. If the variation + selector N (1..256) defines a glyph, that glyph code is stored in + the (N-1)th element of VARIATIONS. */ + int (*get_variation_glyphs) P_ ((struct font *font, + int c, unsigned variations[256])); };