Mercurial > octave-nkf
diff libinterp/corefcn/txt-eng-ft.h @ 17274:0a09d4b40767
Combine successive TeX super- and subscript elements.
* libinterp/corefcn/oct-tex-parser.yy (combined_script_element): New
rule. Add %nonassoc statements to control precedence and resolve
shoft/reduce conflicts.
* libinterp/corefcn/txt-eng.h (class text_element_combined): New class.
(text_processor::visit(text_element_combined)): New method.
* libinterp/corefcn/txt-eng-ft.h
(ft_render::visit(text_element_combined)): Likewise.
* libinterp/corefcn/txt-eng-ft.cc (ft_render::push_new_line): Reset
xoffset/yoffset in MODE_BBOX mode.
(ft_render::process_character): Use xoffset as the current X
advancement and update the line bbox accordingly.
(ft_render::visit(text_element_combined)): New method.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Sun, 18 Aug 2013 21:39:27 -0400 |
parents | 8ce6cdd272eb |
children | 219552139c18 |
line wrap: on
line diff
--- a/libinterp/corefcn/txt-eng-ft.h Sun Aug 18 18:19:48 2013 -0400 +++ b/libinterp/corefcn/txt-eng-ft.h Sun Aug 18 21:39:27 2013 -0400 @@ -75,6 +75,8 @@ void visit (text_element_symbol& e); + void visit (text_element_combined& e); + void reset (void); uint8NDArray get_pixels (void) const { return pixels; }