Mercurial > octave-nkf
comparison libinterp/corefcn/txt-eng-ft.cc @ 20506:25caa0deaabb
Fix multi-line text bounding box when using subscripts (bug #45508)
* txt_eng_ft.cc (ft_render::update_line_bbox): use the bounding box of the current line, not the first line.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Sun, 23 Aug 2015 14:55:01 +0200 |
parents | 1a22083b5929 |
children |
comparison
equal
deleted
inserted
replaced
20505:784ed55fdde8 | 20506:25caa0deaabb |
---|---|
436 if (mode == MODE_BBOX) | 436 if (mode == MODE_BBOX) |
437 { | 437 { |
438 int asc = font.get_face ()->size->metrics.ascender >> 6; | 438 int asc = font.get_face ()->size->metrics.ascender >> 6; |
439 int desc = font.get_face ()->size->metrics.descender >> 6; | 439 int desc = font.get_face ()->size->metrics.descender >> 6; |
440 | 440 |
441 Matrix& bb = line_bbox.front (); | 441 Matrix& bb = line_bbox.back (); |
442 | 442 |
443 if ((yoffset + desc) < bb(1)) | 443 if ((yoffset + desc) < bb(1)) |
444 { | 444 { |
445 // The new font goes below the bottom of the current bbox. | 445 // The new font goes below the bottom of the current bbox. |
446 | 446 |