diff options
| author | Kenichi Handa | 2007-12-06 07:25:56 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2007-12-06 07:25:56 +0000 |
| commit | 14065d35173fe7206397cf139227f8763c44c753 (patch) | |
| tree | 5b582335a8413f514babfae9dfe8d326ce016f61 /src | |
| parent | 7eb5d3d7a2e2824c136fd6c8ae3a1baadd1dd88c (diff) | |
| download | emacs-14065d35173fe7206397cf139227f8763c44c753.tar.gz emacs-14065d35173fe7206397cf139227f8763c44c753.zip | |
(Ffont_shape_text): Fix the return value.
Diffstat (limited to 'src')
| -rw-r--r-- | src/font.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/font.c b/src/font.c index 34987713cb2..7390a978162 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -3453,18 +3453,15 @@ The value is the end position of the shaped text. */) | |||
| 3453 | LGSTRING_SET_DESCENT (gstr, metrics.descent); | 3453 | LGSTRING_SET_DESCENT (gstr, metrics.descent); |
| 3454 | for (k = i; i < j; i++) | 3454 | for (k = i; i < j; i++) |
| 3455 | LGSTRING_SET_GLYPH (gstr, i - k, LGSTRING_GLYPH (gstring, i)); | 3455 | LGSTRING_SET_GLYPH (gstr, i - k, LGSTRING_GLYPH (gstring, i)); |
| 3456 | from = make_number (start + this_from); | ||
| 3457 | to = make_number (start + this_to); | ||
| 3456 | if (NILP (string)) | 3458 | if (NILP (string)) |
| 3457 | Fcompose_region_internal (make_number (start + this_from), | 3459 | Fcompose_region_internal (from, to, gstr, Qnil); |
| 3458 | make_number (start + this_to), | ||
| 3459 | gstr, Qnil); | ||
| 3460 | else | 3460 | else |
| 3461 | Fcompose_string_internal (string, | 3461 | Fcompose_string_internal (string, from, to, gstr, Qnil); |
| 3462 | make_number (start + this_from), | ||
| 3463 | make_number (start + this_to), | ||
| 3464 | gstr, Qnil); | ||
| 3465 | } | 3462 | } |
| 3466 | 3463 | ||
| 3467 | return make_number (start + XINT (n)); | 3464 | return to; |
| 3468 | } | 3465 | } |
| 3469 | 3466 | ||
| 3470 | DEFUN ("font-drive-otf", Ffont_drive_otf, Sfont_drive_otf, 6, 6, 0, | 3467 | DEFUN ("font-drive-otf", Ffont_drive_otf, Sfont_drive_otf, 6, 6, 0, |