diff options
| author | Kenichi Handa | 2006-07-28 12:52:14 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2006-07-28 12:52:14 +0000 |
| commit | e2873d1377643f9814f6620941f1b3e2e5d2c791 (patch) | |
| tree | bbcbcc1df15d9fdfff175d0366c922b4ff985fdb | |
| parent | e80e09b416a0f44a4af75aeb7952df807bb3d235 (diff) | |
| download | emacs-e2873d1377643f9814f6620941f1b3e2e5d2c791.tar.gz emacs-e2873d1377643f9814f6620941f1b3e2e5d2c791.zip | |
(struct font): New member scalable.
(struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
(font_otf_gsub): Prototype adjusted.
| -rw-r--r-- | src/font.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/font.h b/src/font.h index 895b8bb3a9e..264dd2b815b 100644 --- a/src/font.h +++ b/src/font.h | |||
| @@ -172,6 +172,9 @@ struct font | |||
| 172 | /* Ascent and descent of the font (in pixels). */ | 172 | /* Ascent and descent of the font (in pixels). */ |
| 173 | int ascent, descent; | 173 | int ascent, descent; |
| 174 | 174 | ||
| 175 | /* 1 iff the font is scalable. */ | ||
| 176 | int scalable; | ||
| 177 | |||
| 175 | /* There will be more to this structure, but they are private to a | 178 | /* There will be more to this structure, but they are private to a |
| 176 | font-driver. */ | 179 | font-driver. */ |
| 177 | }; | 180 | }; |
| @@ -401,7 +404,7 @@ struct font_driver | |||
| 401 | short, return -1. */ | 404 | short, return -1. */ |
| 402 | int (*otf_gsub) P_ ((struct font *font, Lisp_Object gsub_spec, | 405 | int (*otf_gsub) P_ ((struct font *font, Lisp_Object gsub_spec, |
| 403 | Lisp_Object gstring_in, int from, int to, | 406 | Lisp_Object gstring_in, int from, int to, |
| 404 | Lisp_Object gstring_out, int idx)); | 407 | Lisp_Object gstring_out, int idx, int alternate_subst)); |
| 405 | 408 | ||
| 406 | /* Optional. | 409 | /* Optional. |
| 407 | Drive FONT's OTF GPOS features according to GPOS_SPEC. | 410 | Drive FONT's OTF GPOS features according to GPOS_SPEC. |
| @@ -491,7 +494,8 @@ extern Lisp_Object font_otf_capability P_ ((struct font *font)); | |||
| 491 | /* This can be used as `otf_gsub' method of a font-driver. */ | 494 | /* This can be used as `otf_gsub' method of a font-driver. */ |
| 492 | extern int font_otf_gsub P_ ((struct font *font, Lisp_Object gsub_spec, | 495 | extern int font_otf_gsub P_ ((struct font *font, Lisp_Object gsub_spec, |
| 493 | Lisp_Object gstring_in, int from, int to, | 496 | Lisp_Object gstring_in, int from, int to, |
| 494 | Lisp_Object gstring_out, int idx)); | 497 | Lisp_Object gstring_out, int idx, |
| 498 | int alternate_subst)); | ||
| 495 | /* This can be used as `otf_gpos' method of a font-driver. */ | 499 | /* This can be used as `otf_gpos' method of a font-driver. */ |
| 496 | extern int font_otf_gpos P_ ((struct font *font, Lisp_Object gpos_spec, | 500 | extern int font_otf_gpos P_ ((struct font *font, Lisp_Object gpos_spec, |
| 497 | Lisp_Object gstring, int from, int to)); | 501 | Lisp_Object gstring, int from, int to)); |