Mercurial > octave-nkf
view libinterp/corefcn/module.mk @ 17272:8ce6cdd272eb
Support TeX elements in FreeType renderer.
* libinterp/corefcn/txt-eng.cc: New file. Contains mapping from symbol
name to character code, in Unicode and MS symbol.
* libinterp/corefcn/modules.mk (COREFCN_SRC): Add txt-eng.cc.
* libinterp/corefcn/oct-tex-lexer.ll: Add "\n" to rules applicable to
".", as
the latter does not include new line characters.
* libinterp/corefcn/oct-tex-parser.yy: Remove debug statements.
* libinterp/corefcn/txt-eng.ft.cc (gripe_missing_glyph,
gripe_glyph_render): Change signature from char to FT_ULong.
(ft_render::ft_render): Adapt to new/removed members.
(ft_render::~ft_render): Remove use of fonts member.
(ft_render::set_font): Likewise. Use font instead.
(ft_render::push_new_line): Likewise. Change meaning of yoffset and
initialize line_yoffset.
(ft_render::update_line_bbox): New method.
(ft_render::set_mode): Change meaning of yoffset and initialize
line_yoffset.
(ft_render::process_character): New method.
(ft_render::visit(text_element_string)): Use it.
(ft_render::visit(text_element_list),
ft_render::visit(text_element_subscript),
ft_render::visit(text_element_superscript),
ft_render::visit(text_element_color),
ft_render::visit(text_element_fontsize),
ft_render::visit(text_element_fontname),
ft_render::visit(text_element_fontstyle),
ft_render::visit(text_element_symbol)): New methods.
(ft_render::set_color): Use color member instead of red/green/blue.
* libinterp/corefcn/txt-eng-ft.h (ft_render::visit(text_element_list),
ft_render::visit(text_element_subscript),
ft_render::visit(text_element_superscript),
ft_render::visit(text_element_color),
ft_render::visit(text_element_fontsize),
ft_render::visit(text_element_fontname),
ft_render::visit(text_element_fontstyle),
ft_render::visit(text_element_symbol)): New methods.
(ft_render::update_line_bbox, ft_render::process_character): New
methods.
(ft_render::current_face): Removed method.i
(ft_render::font): New member, replaces obsolete ft_render::fonts.
(ft_render::line_yoffset): New member.
(ft_render::color): New member, replaces obsolete red, green and blue.
(ft_render::ft_font::ft_font()): Implement default constructor.
(ft_render::ft_font::operator=): Fix incorrect use of FT_Reference_Face
return value.
(ft_render::ft_font::is_valid): New method.
* libinterp/corefcn/txt-eng.h (class text_element_symbol, class
text_element_fontname, class text_element_fontsize, class
text_element_fontname, class text_element_fontstyle, class
text_element_color): Add forward definition.
(text_element_symbol::invalid_code): New enum.
(text_element_symbol::code): New member.
(text_element_symbol::text_element_symbol): Initialize it.
(text_element_symbol::get_symbol_code): New method.
(text_element_fontstyle::get_fontstyle): New method.
(text_element_fontname::get_fontname): Renamed from fontname.
(text_element_fontsize::get_fontsize): Renamed from fontsize.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Sun, 18 Aug 2013 16:36:46 -0400 |
parents | 5b088598df1d |
children | fe6518a1d87c |
line wrap: on
line source
EXTRA_DIST += \ corefcn/module.mk \ corefcn/defaults.in.h \ corefcn/gl2ps.c \ corefcn/graphics.in.h \ corefcn/mxarray.in.h \ corefcn/oct-errno.in.cc ## Options functions for Fortran packages like LSODE, DASPK. ## These are generated automagically by configure and Perl. OPT_HANDLERS = \ corefcn/DASPK-opts.cc \ corefcn/DASRT-opts.cc \ corefcn/DASSL-opts.cc \ corefcn/LSODE-opts.cc \ corefcn/Quad-opts.cc OPT_INC = \ $(top_builddir)/liboctave/numeric/DASPK-opts.h \ $(top_builddir)/liboctave/numeric/DASRT-opts.h \ $(top_builddir)/liboctave/numeric/DASSL-opts.h \ $(top_builddir)/liboctave/numeric/LSODE-opts.h \ $(top_builddir)/liboctave/numeric/Quad-opts.h $(OPT_HANDLERS): corefcn/%.cc : $(top_builddir)/liboctave/numeric/%.in $(PERL) $(top_srcdir)/build-aux/mk-opts.pl --opt-handler-fcns $< > $@-t mv $@-t $@ $(OPT_INC) : %.h : %.in $(MAKE) -C $(top_builddir)/liboctave/numeric $(@F) JIT_INC = \ corefcn/jit-util.h \ corefcn/jit-typeinfo.h \ corefcn/jit-ir.h \ corefcn/pt-jit.h COREFCN_INC = \ corefcn/Cell.h \ corefcn/action-container.h \ corefcn/c-file-ptr-stream.h \ corefcn/comment-list.h \ corefcn/cutils.h \ corefcn/data.h \ corefcn/debug.h \ corefcn/defun-dld.h \ corefcn/defun-int.h \ corefcn/defun.h \ corefcn/dirfns.h \ corefcn/display.h \ corefcn/dynamic-ld.h \ corefcn/error.h \ corefcn/event-queue.h \ corefcn/file-io.h \ corefcn/gl-render.h \ corefcn/gl2ps-renderer.h \ corefcn/gl2ps.h \ corefcn/gripes.h \ corefcn/help.h \ corefcn/hook-fcn.h \ corefcn/input.h \ corefcn/load-path.h \ corefcn/load-save.h \ corefcn/ls-ascii-helper.h \ corefcn/ls-hdf5.h \ corefcn/ls-mat-ascii.h \ corefcn/ls-mat4.h \ corefcn/ls-mat5.h \ corefcn/ls-oct-ascii.h \ corefcn/ls-oct-binary.h \ corefcn/ls-utils.h \ corefcn/mex.h \ corefcn/mexproto.h \ corefcn/mxarray.in.h \ corefcn/oct-errno.h \ corefcn/oct-fstrm.h \ corefcn/oct-hdf5.h \ corefcn/oct-hist.h \ corefcn/oct-iostrm.h \ corefcn/oct-lvalue.h \ corefcn/oct-map.h \ corefcn/oct-obj.h \ corefcn/oct-prcstrm.h \ corefcn/oct-procbuf.h \ corefcn/oct-stdstrm.h \ corefcn/oct-stream.h \ corefcn/oct-strstrm.h \ corefcn/oct.h \ corefcn/octave-link.h \ corefcn/pager.h \ corefcn/pr-output.h \ corefcn/procstream.h \ corefcn/profiler.h \ corefcn/sighandlers.h \ corefcn/siglist.h \ corefcn/sparse-xdiv.h \ corefcn/sparse-xpow.h \ corefcn/symtab.h \ corefcn/sysdep.h \ corefcn/toplev.h \ corefcn/txt-eng-ft.h \ corefcn/txt-eng.h \ corefcn/unwind-prot.h \ corefcn/utils.h \ corefcn/variables.h \ corefcn/workspace-element.h \ corefcn/xdiv.h \ corefcn/xnorm.h \ corefcn/xpow.h \ corefcn/zfstream.h \ $(JIT_INC) JIT_SRC = \ corefcn/jit-util.cc \ corefcn/jit-typeinfo.cc \ corefcn/jit-ir.cc \ corefcn/pt-jit.cc C_COREFCN_SRC = \ corefcn/cutils.c \ corefcn/matherr.c \ corefcn/siglist.c \ corefcn/xgl2ps.c COREFCN_SRC = \ corefcn/Cell.cc \ corefcn/__contourc__.cc \ corefcn/__dispatch__.cc \ corefcn/__lin_interpn__.cc \ corefcn/__pchip_deriv__.cc \ corefcn/__qp__.cc \ corefcn/balance.cc \ corefcn/besselj.cc \ corefcn/betainc.cc \ corefcn/bitfcns.cc \ corefcn/bsxfun.cc \ corefcn/c-file-ptr-stream.cc \ corefcn/cellfun.cc \ corefcn/colloc.cc \ corefcn/comment-list.cc \ corefcn/conv2.cc \ corefcn/daspk.cc \ corefcn/dasrt.cc \ corefcn/dassl.cc \ corefcn/data.cc \ corefcn/debug.cc \ corefcn/defaults.cc \ corefcn/defun.cc \ corefcn/det.cc \ corefcn/dirfns.cc \ corefcn/display.cc \ corefcn/dlmread.cc \ corefcn/dot.cc \ corefcn/dynamic-ld.cc \ corefcn/eig.cc \ corefcn/ellipj.cc \ corefcn/error.cc \ corefcn/fft.cc \ corefcn/fft2.cc \ corefcn/fftn.cc \ corefcn/file-io.cc \ corefcn/filter.cc \ corefcn/find.cc \ corefcn/gammainc.cc \ corefcn/gcd.cc \ corefcn/getgrent.cc \ corefcn/getpwent.cc \ corefcn/getrusage.cc \ corefcn/givens.cc \ corefcn/gl-render.cc \ corefcn/gl2ps-renderer.cc \ corefcn/graphics.cc \ corefcn/gripes.cc \ corefcn/help.cc \ corefcn/hess.cc \ corefcn/hex2num.cc \ corefcn/hook-fcn.cc \ corefcn/input.cc \ corefcn/inv.cc \ corefcn/kron.cc \ corefcn/load-path.cc \ corefcn/load-save.cc \ corefcn/lookup.cc \ corefcn/ls-ascii-helper.cc \ corefcn/ls-hdf5.cc \ corefcn/ls-mat-ascii.cc \ corefcn/ls-mat4.cc \ corefcn/ls-mat5.cc \ corefcn/ls-oct-ascii.cc \ corefcn/ls-oct-binary.cc \ corefcn/ls-utils.cc \ corefcn/lsode.cc \ corefcn/lu.cc \ corefcn/luinc.cc \ corefcn/mappers.cc \ corefcn/matrix_type.cc \ corefcn/max.cc \ corefcn/md5sum.cc \ corefcn/mex.cc \ corefcn/mgorth.cc \ corefcn/nproc.cc \ corefcn/oct-fstrm.cc \ corefcn/oct-hist.cc \ corefcn/oct-iostrm.cc \ corefcn/oct-lvalue.cc \ corefcn/oct-map.cc \ corefcn/oct-obj.cc \ corefcn/oct-prcstrm.cc \ corefcn/oct-procbuf.cc \ corefcn/oct-stream.cc \ corefcn/oct-strstrm.cc \ corefcn/oct-tex-lexer.ll \ corefcn/oct-tex-parser.yy \ corefcn/octave-link.cc \ corefcn/pager.cc \ corefcn/pinv.cc \ corefcn/pr-output.cc \ corefcn/procstream.cc \ corefcn/profiler.cc \ corefcn/quad.cc \ corefcn/quadcc.cc \ corefcn/qz.cc \ corefcn/rand.cc \ corefcn/rcond.cc \ corefcn/regexp.cc \ corefcn/schur.cc \ corefcn/sighandlers.cc \ corefcn/sparse-xdiv.cc \ corefcn/sparse-xpow.cc \ corefcn/sparse.cc \ corefcn/spparms.cc \ corefcn/sqrtm.cc \ corefcn/str2double.cc \ corefcn/strfind.cc \ corefcn/strfns.cc \ corefcn/sub2ind.cc \ corefcn/svd.cc \ corefcn/syl.cc \ corefcn/symtab.cc \ corefcn/syscalls.cc \ corefcn/sysdep.cc \ corefcn/time.cc \ corefcn/toplev.cc \ corefcn/tril.cc \ corefcn/txt-eng.cc \ corefcn/txt-eng-ft.cc \ corefcn/typecast.cc \ corefcn/unwind-prot.cc \ corefcn/utils.cc \ corefcn/variables.cc \ corefcn/xdiv.cc \ corefcn/xnorm.cc \ corefcn/xpow.cc \ corefcn/zfstream.cc \ $(JIT_SRC) \ $(C_COREFCN_SRC) ## FIXME: Automake does not support per-object rules. ## These rules could be emulated by creating a new convenience ## library and using per-library rules. Or we can just live ## without the rule since there haven't been any problems. (09/18/2012) #display.df display.lo: CPPFLAGS += $(X11_FLAGS) ## Special rules for sources which must be built before rest of compilation. ## defaults.h and graphics.h must depend on Makefile. Calling configure ## may change default/config values. However, calling configure will also ## regenerate the Makefiles from Makefile.am and trigger the rules below. corefcn/defaults.h: corefcn/defaults.in.h Makefile @$(do_subst_default_vals) corefcn/graphics.h: corefcn/graphics.in.h genprops.awk Makefile $(AWK) -f $(srcdir)/genprops.awk $< > $@-t mv $@-t $@ corefcn/graphics-props.cc: corefcn/graphics.in.h genprops.awk Makefile $(AWK) -v emit_graphics_props=1 -f $(srcdir)/genprops.awk $< > $@-t mv $@-t $@ corefcn/oct-errno.cc: corefcn/oct-errno.in.cc Makefile if test -n "$(PERL)"; then \ $(srcdir)/mk-errno-list --perl "$(PERL)" < $< > $@-t; \ elif test -n "$(PYTHON)"; then \ $(srcdir)/mk-errno-list --python "$(PYTHON)" < $< > $@-t; \ else \ $(SED) '/@SYSDEP_ERRNO_LIST@/D' $< > $@-t; \ fi mv $@-t $@ corefcn/mxarray.h: corefcn/mxarray.in.h Makefile $(SED) < $< \ -e "s|%NO_EDIT_WARNING%|DO NOT EDIT! Generated automatically from $(<F) by Make.|" \ -e "s|%OCTAVE_IDX_TYPE%|${OCTAVE_IDX_TYPE}|" > $@-t mv $@-t $@ noinst_LTLIBRARIES += corefcn/libcorefcn.la corefcn_libcorefcn_la_SOURCES = $(COREFCN_SRC) corefcn_libcorefcn_la_CPPFLAGS = $(liboctinterp_la_CPPFLAGS) $(FFTW_XCPPFLAGS) corefcn/oct-tex-lexer.cc: LEX_OUTPUT_ROOT := lex.octave_tex_ corefcn/oct-tex-parser.h: corefcn/oct-tex-parser.yy