Mercurial > octave-nkf
diff libinterp/interp-core/txt-eng-ft.cc @ 16201:2338a92e9782
Fix spacing between ylabel and y-axis (bug #38461)
* libinterp/interp-core/txt-eng-ft.cc: Add comment about
how get_extent calculates the x and y extents differently.
* libinterp/interpfcn/graphics.cc(update_ylabel_position):
Add padding to x-extent because it is caluclated differently than y-extent
which already includes some padding.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 06 Mar 2013 10:56:12 -0800 |
parents | 049e8bbff782 |
children | 9ba5c5ed3aeb |
line wrap: on
line diff
--- a/libinterp/interp-core/txt-eng-ft.cc Tue Mar 05 18:01:24 2013 -0500 +++ b/libinterp/interp-core/txt-eng-ft.cc Wed Mar 06 10:56:12 2013 -0800 @@ -564,6 +564,11 @@ return pixels; } +// Note: +// x-extent accurately measures width of glyphs. +// y-extent is overly large because it is measured from baseline-to-baseline. +// Calling routines, such as ylabel, may need to account for this mismatch. + Matrix ft_render::get_extent (text_element *elt, double rotation) {